mtran
10-12-2009, 07:14 PM
I've just learned that we can load external file with javascript/ajax. I'm very new to this and have a very beginner's question.
If I have a from with 2 radio: US, and Global. Depending on what was selected, a longer sub-form will be loaded and displayed.
I used to do this with javascript toggling, but now exploring the option of using external loading. My question is, if say someone clicks "US," the US sub-form will be loaded and display, then that person fills out the form, but then at the end, he changes his mind and clicks "Global." My understanding is that the Global sub-form will be loaded, but how about the US sub-form, is it unloaded at the same time? How about the values of the fields that already filled out in the US sub-form, are they lingering somewhere, or they're completely gone?
Thanks!
If I have a from with 2 radio: US, and Global. Depending on what was selected, a longer sub-form will be loaded and displayed.
I used to do this with javascript toggling, but now exploring the option of using external loading. My question is, if say someone clicks "US," the US sub-form will be loaded and display, then that person fills out the form, but then at the end, he changes his mind and clicks "Global." My understanding is that the Global sub-form will be loaded, but how about the US sub-form, is it unloaded at the same time? How about the values of the fields that already filled out in the US sub-form, are they lingering somewhere, or they're completely gone?
Thanks!