• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript in ROR

 
Raju Aralikatti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have a problem,
first, I open a pop up window, in that I update in the database. after updating in the database I want to close the popup and also update a div in the parent window. Please can anyone help me.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when the popup returns after processing the data, add this code to the page



Eric
 
Raju Aralikatti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code which you have sent refreshes the whole page.

I am using Ajax in that page. I there any possibility of calling the same Ajax function from the javascript function.

I am using ruby on rails
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic