Forum: Ruby on Rails how to open a pop-up page in rails 3 and load data from database

Posted by Manish Nautiyal (manish_n)
on 2012-11-19 13:40
I am using ruby-on-rails + psql

I have list of pages. On some page click I have to open page in pop-up.

How I'll load data in that pop-up for specific page.
Posted by Colin Law (Guest)
on 2012-11-19 14:36
(Received via mailing list)
On 19 November 2012 12:40, Manish Nautiyal <lists@ruby-forum.com> wrote:
> I am using ruby-on-rails + psql
>
> I have list of pages. On some page click I have to open page in pop-up.
>
> How I'll load data in that pop-up for specific page.

Are you opening it using javascript, without contacting the server, or 
ajax?

If javascript then you will have to provide all the data it needs to
the view from which it pops, if ajax then provide the data in the
normal way in the ajax action.

Colin
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.