Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: CGI/OpenThought array/hash handling

by ksublondie (Friar)
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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://879964]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2018-01-18 10:22 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (211 votes). Check out past polls.