paulmason411
Posts: 127
|
Posted: 06/01/2008, 11:00 PM |
|
Hi Guys,
I have tried adding the 'Hide / Show Component' action on an image when the control is equal to ''.
This works however the img tag is still printed in the html and therefore internet explorer 6 shows an image icon with a red cross.
Any ideas would be appreciated. Cheers.
_________________
http://paulmason.name - Web Development Blog
|
|
|
mrachow
Posts: 509
|
Posted: 06/02/2008, 12:18 AM |
|
Done this before panels where available I had placed a label with content type html and assign the "whole" image tag or nothing to it.
In these days it should be possible to place a panel first, the image on it and make the panel visible or not.
_________________
Best regards,
Michael |
|
|
wkempees
Posts: 1679
|
Posted: 06/02/2008, 3:01 AM |
|
I would also check to see that in the Database the value of the field holding the imagefile name is indeed '' as opposed to '<Null>'
The first being a blank, wher Null actually is a non value.
The way to avoid this fast in MySql is to change the SQL to replace any NULL with a ''.
SELECT ifnull(imagefield,'') FROM..........
That way you are sure to receive ''.
Another would be to change the Hide/Show to cater for NULL values.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
paulmason411
Posts: 127
|
Posted: 06/02/2008, 5:03 PM |
|
Thanks mrachow I used your panel idea and it worked. I think that with php and mysql '' == NULL because the values in the database say null but i use '' in my equation and it works.
_________________
http://paulmason.name - Web Development Blog
|
|
|
wkempees
Posts: 1679
|
Posted: 06/02/2008, 5:11 PM |
|
Please change topic title to [RESOLVED]...
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
alfonso
Posts: 121
|
Posted: 06/05/2008, 9:59 PM |
|
Can you explain better your solution, please?. I have the same problem (5 fields of possible photos). I don't understand very well your solution.
|
|
|
|