rashmisherawat has asked for the wisdom of the Perl Monks concerning the following question:

Thanks for your replies. I got selected values of dropdown in comma seperated form in a jquery variable. Now i want to take these values in a perl variable.Can you give some example/code where you can show how to pass jquery variable value to perl variable.

  • Comment on Multiple selected dropdown box in perl cgi

Replies are listed 'Best First'.
Re: Multiple selected dropdown box in perl cgi
by NetWallah (Canon) on Jun 15, 2014 at 15:58 UTC
    "... without refreshing page" seems to indicate that you are looking for information on how to do Ajax Programming. Perl can help with that : CGI::Ajax.

            What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
                  -Larry Wall, 1992

Re: Multiple selected dropdown box in perl cgi
by marto (Cardinal) on Jun 16, 2014 at 08:35 UTC

    If you're talking about using CGI don't use it to create HTML/JS, use a templating system (HTML::Template/Template). A small step up would be to use a framework like Dancer or CGI::Application.

    If you need to look up the values of the drop down boxes based on some server side operation (get values from a database) use AJAX, otherwise use plain JavaScript.

Re: Multiple selected dropdown box in perl cgi
by fishmonger (Chaplain) on Jun 15, 2014 at 15:49 UTC

    I've read your question several times and I can't figure out what you're wanting to accomplish.

    Please post your code and explain what you expect it to do and how it's failing to meet your expectations.

    Before your next posting, you should read and follow the advice given here. How do I post a question effectively?

Re: Multiple selected dropdown box in perl cgi
by rashmisherawat (Initiate) on Jun 17, 2014 at 08:04 UTC

    Thanks for your replies. I got selected values of dropdown in comma seperated form in a jquery variable. Now i want to take these values in a perl variable.Can you give some example/code where you can show how to pass jquery variable value to perl variable.