CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Hide/show controls depending of listbox selection / Browser back button

Print topic Send  topic

Author Message
gproulx


Posts: 68
Posted: 02/06/2009, 11:40 AM

Hi,

In my website, i have a Multi-Step User Registration.
In one of the page, I have a listbox filled with a listOfValues.
ex.: 1=american 2=canadian 3=other
under this listbox, i have several textboxes in a panel that i want to show only if 'american' is selected from the listbox. If possible, without page refresh.

I'm working with CCS 4.1.00.032 with php/mysql.

By the way, i have another little problem. In this Multi-Step User Registration, how can i avoid the user to press the browser back button. The problem is that if a user return to the previous page with the browser back button, the form is not in mode 'update' but in mode 'insert' so when they click the submit button, another record was created instead of modifying the existing one. Each page have its own table.

Thanks!
View profile  Send private message
gproulx


Posts: 68
Posted: 02/10/2009, 6:01 AM

anybody got some solutions?
:-(

looks like the problem are that i can't show/hide a panel with ajax or javascript...

What i'm working with:
Panel name: PanelPasse
Listbox name: TCitizenship
Form name: R_Traveler_info

In ajax i have put a HideShow feature on the listbox (TCitizenship) with the following parameters:
Enabled: Yes
Name: HideShow
Control Id: PanelPasse (the panel i want to show/hide)
Show event: R_Traveler_infoTCitizenshipCondition.onfalse; (show panel if TCitizenship!=1)
Hide event: R_Traveler_infoTCitizenshipCondition.ontrue; (hide panel if TCitizenship=1)

and a Condition with the following parameters:
Condition: equals (=)
Name: TCitizenship (the listbox)
Source Type: Control
Name: 1
Source Type: Expression
Start Event :R_Traveler_infoTCitizenship.onchange;

It is supposed to work? In the control id of the hide/show feature, i put the listbox and it work (hide/show) but not working for a panel??


Help please!!
View profile  Send private message
gproulx


Posts: 68
Posted: 02/12/2009, 7:33 AM

Anybody???
View profile  Send private message
datadoit
Posted: 02/12/2009, 10:54 AM

No offense, but I think you may be in the -not really a CodeCharge
problem- category. You're really asking for general programming support
for your project. Many in this forum do that kind of support for pay (I
do not).

However, to get you started on your first issue of listbox and
auto-filling other textboxes in your form, do a search of the forum for
keywords like 'listbox' or 'javascript' and you may find your answers.

Your second question requires rethinking your project design (ie: save
your data to a table as you go).
damian

Posts: 838
Posted: 02/12/2009, 12:22 PM

if using ajax i think you show/hide a div layer
that could still work depending on values in the hidden controls?
_________________
if you found this post useful take the time to help someone else.... :)
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.