Bookmark Topic Watch Topic
  • New Topic

Refreshing a particular form  RSS feed

 
Jeraldine Sheeba
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I have a .jsp page where I have two forms.
I fetch data from the first form and display it in the second form by onSubmit from the first.
For a particular onclick event of the second form, I have to pass values only from the second form and get the second from refreshed.
i.e., The first form should hold all the values(ex . in the textbox ) remaining the same.
Can someone suggest me how to do it using Javascript ASAP?
Thanks,
sheeba
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Jeraldine Sheeba:
Hi,

Can someone suggest me how to do it using Javascript ASAP?


Not a very good idea to use that four letter word .
See this
http://www.coderanch.com/t/2431/Ranch-Office/forum-have-moderate-Moderators

Anyway, you will either have to refresh the whole page, building it dynamically to show whatever changes you want to show.
Otherwise, you have to have two frames or an iframe on your page, which you can refresh using javascript. Since a frame is a JS window object, you can use window methods such as reload to refresh it, or get a reference to its Document object and write HTML directly to it.

cheers
Sonny
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic here.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!