in reply to Ajax function from js pop up

ut I'm not able to call the "exported_func2_code" from inside the pop up, any ideas?

Where do you try to call exported_func2?

Replies are listed 'Best First'.
Re^2: Ajax function from js pop up
by falpizar91 (Initiate) on Nov 01, 2012 at 14:23 UTC
    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');">

      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