in reply to Re: Ajax function from js pop up
in thread Ajax function from js pop up

Sorry for the typo , just fixed it. Although I ended up taking the code from exported_func2_code and putting it in a separate perl script which I redirect from the button's onClick function .. although I'd like to know what the issue is by using perl ajax.
<input type="Button" onClick="window.open('exported_func2.pl?param1=$var');">

Replies are listed 'Best First'.
Re^3: Ajax function from js pop up
by Anonymous Monk on Nov 02, 2012 at 07:55 UTC

    although I'd like to know what the issue is by using perl ajax.

    What does that mean?

    One issue I see is about style/maintainability, using "\"" where you could have saved yourself considerable typing effort by using alternate delimiter qq{"} , or using a template

    The more important issue, is you're trying to debug html/javascript inlined in a perl program -- get rid of all non-html non-javascript parts, get a copy of Firebug, and figure out the html/js separately before inserting it someplace else

    Also, trying to debug javascript through perlmonks isn't likely to succeed