This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript in ROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript in ROR" Watch "Javascript in ROR" New topic

Javascript in ROR

Raju Aralikatti

Joined: Nov 08, 2007
Posts: 4
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

Joined: Dec 11, 2004
Posts: 13410

Moving to HTML/Javascript

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
when the popup returns after processing the data, add this code to the page

Raju Aralikatti

Joined: Nov 08, 2007
Posts: 4
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
I agree. Here's the link:
subject: Javascript in ROR
It's not a secret anymore!