CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Images

Print topic Send  topic

Author Message
kmc
Posted: 02/04/2001, 9:08 PM

Clues needed:

Suppose field in table has (thumbnail) image location, like
"x:\electric\tv\color17"
How to have CC generate the correct html to pull and display image in grid?

TIA

kmc



guest
Posted: 02/05/2001, 5:24 AM

Hello kmc,

I advice you to generate code with html templtes in codecharge.
edit your template that will disply your records with their images.
add there template variable in braces , smth. like <img src= {image}>
Now you must write code in codecharge that will substitute this {image} with
your location.
For this ,
1) run CodeCharge ,
2) go to a form that will display your information with image ,
3) click "Form Properties" icon
4) there you must select "Event tab"
5) Select "Show" type of event.
6) insert your code for substitution of this template's varibale {image}
with image location , in ASP
it must be something like :

SetVar "name", ToHTML(fldimagelocation)

or if your DB field containing imge location is name differently , say it's
named iloc , then write

SetVar "name", ToHTML(fldiloc)

Happy coding !

Regards,
Alexey
CodeCharge support


kmc <kmcook@tasmail.com> wrote in message
news:95lcg2$fmo$1@news.codecharge.com...
> Clues needed:
>
> Suppose field in table has (thumbnail) image location, like
> "x:\electric\tv\color17"
> How to have CC generate the correct html to pull and display image in
grid?
>
> TIA
>
> kmc
>
>
>
>

Joachim Uersfeld
Posted: 02/05/2001, 11:39 AM

Why not a new Fieldtype in CC to insert a html template?

Joachim


"Alexey Alexapo
lsky" <alexa@codecharge.com
news:95m9ih$3ve$1@news.codecharge.com...
> Hello kmc,
>
> I advice you to generate code with html templtes in codecharge.
> edit your template that will disply your records with their images.
> add there template variable in braces , smth. like <img src= {image}>
> Now you must write code in codecharge that will substitute this {image}
with
> your location.
> For this ,
> 1) run CodeCharge ,
> 2) go to a form that will display your information with image ,
> 3) click "Form Properties" icon
> 4) there you must select "Event tab"
> 5) Select "Show" type of event.
> 6) insert your code for substitution of this template's varibale {image}
> with image location , in ASP
> it must be something like :
>
> SetVar "name", ToHTML(fldimagelocation)
>
> or if your DB field containing imge location is name differently , say
it's
> named iloc , then write
>
> SetVar "name", ToHTML(fldiloc)
>
> Happy coding !
>
> Regards,
> Alexey
> CodeCharge support
>
>
> kmc <kmcook@tasmail.com> wrote in message
>news:95lcg2$fmo$1@news.codecharge.com...
> > Clues needed:
> >
> > Suppose field in table has (thumbnail) image location, like
> > "x:\electric\tv\color17"
> > How to have CC generate the correct html to pull and display image in
> grid?
> >
> > TIA
> >
> > kmc
> >
> >
> >
> >
>
>

CodeCharge
Posted: 02/06/2001, 3:47 AM

You may also try referring to BookStore example, included with CodeCharge.
We show how you may use field Type "URL" to display an image, whose URL is
in the database.
At the same time, you'd need to add a Show Event in Form Properties, like
this:

fldimage_url="<img border=0 src=" & fldimage_url & ">"

In this example "image_url" is the name of the field containing the images
in your database.


kmc <kmcook@tasmail.com> wrote in message
news:95lcg2$fmo$1@news.codecharge.com...
> Clues needed:
>
> Suppose field in table has (thumbnail) image location, like
> "x:\electric\tv\color17"
> How to have CC generate the correct html to pull and display image in
grid?
>
> TIA
>
> kmc
>
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.