onionpatch
March 15th, 2003, 07:52 PM
I want to be able to revalidate/reload a single form on a frame with multiple forms, i.e. not refresh the values in other forms which have already been entered. All the searching I've done seems to indicate you can only revalidate an entire frame. i.e.
onChange="document.myform.value = 'refresh'; submit()
The idea is to alter the value of a select drop down, and based on the new option, reload a related select drop down.
Is it possible?
Thanks,
Adam
nategrover
March 17th, 2003, 01:15 AM
Adam, it sounds like all you really want to do is repopulate the
select menu dynamically. There's no need to return to the server
for that.
For example, if you want to reload the select menu based on
what the user select in another menu, you can load all the lists
into a javascript array ahead of time, and then your event handler
can just grab those values to repopulate the select menu.
If you actually need to go to the server, then I would avoid
reloading the frame you're in. I would create an invisible frame
and post a request to that. Your request should return a blank
html page with nothing in it but javascript or xml that contains
the new values, then you can grab them from the frame with the
form and begin repopulating the select menu.
If your question is actually about HOW to repopulate a select
menu, that part is pretty easy. If you don't know, respond again and I'll give you an example.
hope this helps.
Nate Grover
http://www.nategrover.com
onionpatch
March 19th, 2003, 08:10 PM
Thanks for the help. I'll have to think your answer over, but it sounds very good ;)