Session in client side

Hello,

I have a page. In that I am showing dropdown list. According to the
values
I am viewing the tables.
When I am selecting values from the dropdown, it renders a table & views
it.
Everything is happening on client side. When I refresh the page, it goes
to
the fist value in the dropdown (rather I should be in the last selected
dropdown value).
How can I manage this in client side session ?

Thanks

On 12 September 2012 10:15, Avi [email protected] wrote:

Hello,

I have a page. In that I am showing dropdown list. According to the values I
am viewing the tables.
When I am selecting values from the dropdown, it renders a table & views it.
Everything is happening on client side. When I refresh the page, it goes to
the fist value in the dropdown (rather I should be in the last selected
dropdown value).
How can I manage this in client side session ?

I don’t understand what you mean by client side session. If you mean
how to use the session variable in rails then have a look at the Rails
Guide on Active Controller, it has a section of the use of the session
variable.

While you are at it work through all the other guides, they will
answer many of your questions.

Also work right through a tutorial such as railstutorial.org which
will introduce you to the basics of Rails.

Colin

Here is my code :-

User Registration File Download User Activation
I have here my Table 1
I have here my Table 2
I have here my Table 3

So, if Iam in 2nd value in the dropdown. & I do a refresh page. It comes
to
the first.

On Wed, Sep 12, 2012 at 3:03 AM, Avi [email protected] wrote:

$("#user_registration").show();
// Default I am setting to this on coming to this page. How can I change this
?

  1. set the value on the server on select and get it back on page reload
  2. save it to a cookie
  3. save it to HTML5 Local Storage


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs