Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: jQuery issue with Dancer2 (a problem summary)

by stevieb (Canon)
on Sep 23, 2016 at 01:09 UTC ( #1172397=note: print w/replies, xml ) Need Help??


in reply to Re: jQuery issue with Dancer2 (a problem summary)
in thread jQuery issue with Dancer2

Thank you.

I think I stated the problem clearly... that state is returned from the Perl Dancer2 call here: $.get(host +'/get_aux/' + aux, function(state){ as you said, but as soon as I leave that function (and get to its outer, surrounding called function), the return is undef. I'm sure it's just that I'm not explaining/understanding the JS language properly. In other words... FFS, it should be like Perl ;)

I'll have a read-through of the docs you supplied.

Cheers,

-stevieb

Replies are listed 'Best First'.
Re^3: jQuery issue with Dancer2 (question?)
by Anonymous Monk on Sep 23, 2016 at 08:09 UTC

    I think I stated the problem clearly....

    :) I didn't see any question marks or any sentence in the form of a question :D

    Consider this format

    Title: question here?
    question here again?
    setup
    data
    code
    diagnostics
    details 
    question here again?
    signature
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2022-05-27 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?