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

Re^2: How to store the value of a Javascript function as a Perl variable

by tobyink (Canon)
on Jun 23, 2014 at 23:37 UTC ( [id://1090996]=note: print w/replies, xml ) Need Help??


in reply to Re: How to store the value of a Javascript function as a Perl variable
in thread How to store the value of a Javascript function as a Perl variable

"This is the only way that the two sides can share data."

No it isn't. If the data being shared is very simple (a few strings or numbers) there's a somewhat easier method: cookies. Javascript is able to manipulate cookies; so are server-side scripts.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
  • Comment on Re^2: How to store the value of a Javascript function as a Perl variable

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1090996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found