CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Making image visible or invisible not working in php

Print topic Send  topic

Author Message
mindarch

Posts: 30
Posted: 08/11/2005, 6:02 AM

I have this code in before show of an image

if($area_links->area_image->Value == ""){
$area_links->area_image->Visible = false;
$area_links->area_image->Show = false;
};

The image still shows. I thought it might make more sense to do it afterwards, but no option.

How can I get this image box to not show if there isn't a value to show?

Thanks

_________________
Mind Architecture
stephen@mindarch.com
View profile  Send private message
peterr


Posts: 5971
Posted: 08/11/2005, 9:03 AM

Please try right clicking on your image component in CCS design mode and select "Edit Image Layout...", then set the "Extended HTML" option.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mindarch

Posts: 30
Posted: 08/11/2005, 9:45 AM

Sorry, is that only in 2? I was using 3 and don't see that. I will go into 2 and see if it is there.

If it's only in 2, how do I achieve the same with 3?

Stephen

_________________
Mind Architecture
stephen@mindarch.com
View profile  Send private message
peterr


Posts: 5971
Posted: 08/11/2005, 9:49 AM

It's only 2.
This functionality was supposed to be redesigned in CCS3, but I have to check if it was done already in the latest Beta version. Will let you know shortly.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 08/11/2005, 9:54 AM

OK, in the latest CCS3 Beta 3.0.0.40 try selecting "Dynamic" in the "Visible" property of the Image. This should change the HTML around the image as well.

BTW, in CCS3 you can also use the Panel for this, which was created specifically for hiding components, especially when you want to hide multiple components or larger HTML section - place the component(s) within a Panel and then your code should work.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mindarch

Posts: 30
Posted: 08/12/2005, 2:40 AM

I can't find the visible property, I don't see it listed. I am looking in properties/format. I have usemap, vspace, width. Is it somewhere else to look? I tried righ-clicking and choosing <img> properties and still nothing.

Thanks

_________________
Mind Architecture
stephen@mindarch.com
View profile  Send private message
peterr


Posts: 5971
Posted: 08/12/2005, 2:50 AM

Possibly you haven't used the dynamic image control, just static HTML image. Static images are embedded directly into HTML therefore cannot be hidden.
If you need to hide something you'd need to use a dynamic control. The Visible property is on the Data tab in the Properties panel.

Otherwise use the Panel as described above, then hide the Panel dynamically.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

Web Database

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.