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 Quote 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]); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.