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

Re^3: CGI/OpenThought array/hash handling

by ksublondie (Pilgrim)
on Jan 01, 2011 at 00:30 UTC ( #879964=note: print w/ replies, xml ) Need Help??


in reply to Re^2: CGI/OpenThought array/hash handling
in thread CGI/OpenThought array/hash handling

At the following line:

OpenThought.CallUrl(url, data);
"url" is the url that calls the server function editShares_save(). I'm able to retrieve all my other variables just fine, but not the share variable as an array.


Comment on Re^3: CGI/OpenThought array/hash handling
Download Code
Re^4: CGI/OpenThought array/hash handling
by Anonymous Monk on Jan 01, 2011 at 00:58 UTC
    So is it a perl question or a javascript question? I see no share variable in the javascript. You attempt to retrieve some @share in your perl program, but that can't be what you're talking about
      I'm not sure if my problem is in the javascript or the perl. Currently, I'm passing "Share*" via an array in CallUrl() (according to OpenThought documentation, I should be able to use a * wildcard), but I've also tried passing "Share". Either way, when I try to retrieve it at the server, I'm not getting any data. So I'm not sure if my problem is the javascript code, my html tags, or my perl script.

      Sorry if my explanation isn't clear. Perhaps I've been too close to this problem for too long, but I thought the code itself was clear.

      I've been able to retrieve all my parameters just fine except now I'm wanting to retrieve an array of my multiple "Share" inputs.

        To see what gets sent and received, for javascript, turn on debugging log_level = "debug"; and watch the debug window in the browser

        For perl, use $q->Dump or use Data::Dumper;warn Dumper($q); and watch the log (or wherever you print to)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-21 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls