Click to See Complete Forum and Search --> : Set form target to a layer in the same page. (The other elements dont' change)


jsper
07-25-2003, 11:18 AM
Hi there,,

Been in javascript world for a couple of months, so far it's been fun, except when I have problems.. ;-)

I don't know if what I'm trying to do is possible, but I think i saw some script doing something similar (using layer, but i couldn't find it). Here's what I try to do:

- My page has a table with two columns, left and right. The form is on the right hand side col.
- When I submit the form, I would like the result to get back to the specific area on the left hand side col without reloading the page.
- I use jsp/servlet and need to support only IE5+.


Thanks a lot.

Khalid Ali
07-25-2003, 12:39 PM
thats almost funny...the purpose of submit is to send the form data to a processing application where ever that may be.
coming back to answer for your question.
What you want is can be done using the following aproach.

when submit button is pressed make sure the to return false in the onsubmit event call in the form element and get all the values from the form elements and populate the left column.

jsper
07-25-2003, 01:22 PM
Ah, I wasn't clear. :(

I would like to submit the data to the backend, and make the left hand side column get updated based on the submitted/calculated data.

Also, I would like the rest of the page remains unchanged.

Thanks so much,