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!
|
|
|
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!!
|
|
|
gproulx
Posts: 68
|
Posted: 02/12/2009, 7:33 AM |
|
Anybody???
|
|
|
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.... :)
|
|
|
|