• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nimish Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic