NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
icon or picture in browse
« previous
next »
Print
Pages: [
1
]
Author
Topic: icon or picture in browse (Read 3984 times)
rjolda
Sr. Member
Posts: 329
icon or picture in browse
«
on:
March 28, 2009, 01:48:52 PM »
Hi,
I have a True/False field in my browse . If it is True, I want to display a checkmark.ico. If it is false, I want to display a cancel type icon.
How does one get these into the browse templates?
TIA,
Ron Jolda
Logged
bshields
Sr. Member
Posts: 392
Re: icon or picture in browse
«
Reply #1 on:
March 28, 2009, 10:34:35 PM »
Hi Ron,
Add a String field to your browse, give it any old equate that makes sense, but nothing else. Then go to the "conditional" section. Add a condition for true and place the true picture in the image field. You can either add another condition for false or just set the default "image" section to your false picture.
Don't forget to make the fields you are using for the condition to be hot fields.
Regards
Bill Shields
Logged
rjolda
Sr. Member
Posts: 329
Re: icon or picture in browse
«
Reply #2 on:
March 29, 2009, 02:59:10 PM »
Hi,
It looks like we have to use a variable to hold the name of the image file - is that correct?
Do the sizes have to be set here?
Thanks,
R Jolda
Logged
bshields
Sr. Member
Posts: 392
Re: icon or picture in browse
«
Reply #3 on:
March 29, 2009, 04:23:47 PM »
Hi Ron,
You can use a variable or literal ('images/mypic.png'). Just remember it all starts at the web folder within your programs folder. You can either set the width and height or ignore it and the browser will decide. Just depends upon what you want.
Oh, but you can't use .ICO files. Browsers don't like them. I convert the ones i use in my web apps to PNGs.
Regards
Bill Shields
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
icon or picture in browse