Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Using CGI (Perl) and javascript at the same time

by arden (Curate)
on Apr 06, 2004 at 18:13 UTC ( #343051=note: print w/replies, xml ) Need Help??


in reply to Using CGI (Perl) and javascript at the same time

krt6, have your javascript assign the hostname value to a hidden FORM field, then either wait until the user submits the form requesting the next page from your CGI or have the javascript auto-submit the form.

Then you just have to handle that field on the server side in your Perl script. Be sure to handle not getting any hostname if the user is going through anonymizer.com or has some other protection in place to prevent your javascript from running.

- - arden.

  • Comment on Re: Using CGI (Perl) and javascript at the same time

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343051]
help
Chatterbox?
[marto]: clever stuff
[Corion]: marto: Thanks for pointing me to Tinc - I found at least some article that suggests that what I want would be possible with Tinc. Now I can try that out :)
[marto]: I think you can do what you want without too much hassle, but yeah, please try and let me know if it works well :)
[marto]: sadly I've still not remembered the name of that x86 all in one we discussed

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2018-01-17 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (201 votes). Check out past polls.

    Notices?