Jump to content

ajax event in MainmForm


robinhodemorais

Recommended Posts

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

 

image.png.749e39539eb821050e9d56893a68f024.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...