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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...