CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Clientside Javascript not working if Checkbox not visible

Print topic Send  topic

Author Message
lbarrow

Posts: 8
Posted: 05/13/2008, 7:32 AM

I have a checkbox that I don't want to show on the webpage. I have clientside javascript code that uses the checkbox value to set the value of another textbox. If I set the visible property to false on the checkbox, the javascript doesn't work. If I set it to true, it does. Does anyone know how I can accomplish this?
View profile  Send private message
ttflyer

Posts: 11
Posted: 05/13/2008, 9:56 AM

If you are using the visible property inside CodeCharge, the control simply won't be rendered out to the browser. Check the source of the page out and you should see this. If this is the case you might want to leave the CodeCharge visibility out of it and use CSS styles to hide from browser.

Instead go to the Style property and type: visibility: hidden; this will hide but reserve the space or you can use display: none; to take it out of the document flow all together.

Hope this helps.
~Andy
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.

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.