*
The moose likes HTML, CSS and JavaScript and the fly likes call one jsp's java script function to another jsp's javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "call one jsp Watch "call one jsp New topic
Author

call one jsp's java script function to another jsp's javascript function

Nimish Patel
Ranch Hand

Joined: Jun 29, 2005
Posts: 84
hi,
have a good day friends.......

now i have one jsp page. in this jsp page i have a java script function name
like "addrows()".

in this jsp page one radio button, when click on radio button, pop child window(another jsp page).

in this child window, one add row button.
when i click on this button, addrows()(parent jsp's java script function) should be called.

parent window jsp page addrows() is working fine.
no problem with this function.

so how can i called parent jsp's javascript from child window jsp ?

please give some advise.

thanks in advance.

rgds,
nimish
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

When you say 'child window', do you mean a frame/iframe or a popup window.

If the child window is a frame or iframe, you would use:


If by 'child window' you mean a popup window, you would use:


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call one jsp's java script function to another jsp's javascript function