robinhodemorais Posted February 5, 2021 Share Posted February 5, 2021 I have a function in javascript where I wanted to trigger the return of it to mainmForm, but I'm not getting it, how to do it? I'm trying that way function hashPagSeguro() { PagSeguroDirectPayment.onSenderHashReady(function (response) { if (response.status == 'error') { console.log(response.message); return false; } var hash = response.senderHash; ajaxRequest(MainmForm,'senderHash', ['hash='+hash]); console.log(hash); }); } but I am having this error Link to comment Share on other sites More sharing options...
robinhodemorais Posted February 5, 2021 Author Share Posted February 5, 2021 got it top.ajaxRequest(top.MainmForm.form,'senderHash', ['hash='+hash]); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now