Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How to refresh a page and retain the same selection

by ghosh123 (Monk)
on Jun 01, 2012 at 09:14 UTC ( #973711=perlquestion: print w/replies, xml ) Need Help??
ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monk,
I am developing a webpage using LAMP where the programming language is PERL.
My page has a table in it and above the table columns there is drop-down which filters the table data. This filter is implemented by Javascript. If I choose 'all' from the drop-down it shows the entire table data and if other values are selected then only those relevant data it shows. By default if not selected anything from drop-down, it shows all the data of the table.

The problem is , if I refresh the page then irrespective of what value was selected from drop-down, it shows the default data only. How can I implement the feature so that even if I refresh it will bring the table-data depending on the last selected value from the drop-down.

Please help.

Thanks.

  • Comment on How to refresh a page and retain the same selection

Replies are listed 'Best First'.
Re: How to refresh a page and retain the same selection
by Corion (Pope) on Jun 01, 2012 at 09:20 UTC

    You need to communicate back the state of your page to Perl for reloading or you could store the current state in the URL or in a cookie. All of this belongs in Javascript land, not in Perl land, unless you are asking how to accept CGI parameters in a Perl script.

Re: How to refresh a page and retain the same selection
by Anonymous Monk on Jun 01, 2012 at 09:18 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://973711]
Approved by GrandFather
help
Chatterbox?
[ambrus]: But either of these is a big problem in practice, so I'd need to spend like thirty years of my life to solve (a) and five more years to solve (b)
[ambrus]: Corion: yes, CURRENTLY the blackboard is more convenient
[ambrus]: and it's not like I want to ban blackboards anyway
[ambrus]: you already have blackboards and a canvas for projector or overhead transparencies (or positive film slide projector, not used for maths) canvas in the same lecture halls today, and switch in a few minutes between presentations,
[ambrus]: they're only difficult to use together.
[ambrus]: overhead transparencies are a nice convenience by the way that mix the two slides, because you can write them in advance and edit them during the presentation easily. but they're not very much in fasion these days.
[ambrus]: you can even print them.
[Discipulus]: ambrus i'm trying out MremoteNG which wrap putty and rdp and many other things..
[Corion]: ambrus: Yes, ideally you would have the ease of overhead projection transparencies and pens drawing on them, combined with the computer generated slide text...
[Corion]: Maybe the solution would be a tablet (with pens), like the Wacom tablets, but you still need good software and need to know how to operate it well in an interactive setting ;)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-09-26 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?