Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Pass variable values from HTML to CGI using "onclick"

by sundialsvc4 (Monsignor)
on Jul 07, 2013 at 15:31 UTC ( #1042985=note: print w/ replies, xml ) Need Help??


in reply to Pass variable values from HTML to CGI using "onclick"

I suggest that you start the page in a browser while running a debugger such as FireBug.   This will allow you to do two very useful things:

  1. You can set breakpoints in the JavaScript code, to see what it is doing and where/when it is being called.
  2. When the page finally submits something to the host, you can see the actual GET/POST that it sent.   Never Assume.™

You don’t say whether the JavaScript code is known-good, so let’s assume, until demonstrated otherwise, that it is the actual source of the bug.   Let’s assume that the real problem is that the JavaScript either isn’t passing mysample, or that its value is empty.   Exercise the code and use FireBug to find the actual POST.   If you can see the correct value being passed, only then do you know (but now, you know), that the error is in the Perl software.


Comment on Re: Pass variable values from HTML to CGI using "onclick"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (23)
As of 2014-07-30 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (236 votes), past polls