CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge -> General/Other

 [RESOLVED] hiding images with a value of null

Print topic Send  topic

Author Message
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

View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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

View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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