Jump to content

How can I add ajaxRequest button's onclick in toastr ?


Freeman35

Recommended Posts

Hello,

This is command for toastr ( https://github.com/CodeSeven/toastr )

Command: toastr["success"]("<div><button type="button" id="okBtn" class="btn btn-primary">Close me</button><button type="button" id="surpriseBtn" class="btn" style="margin: 0 8px 0 8px">Surprise me</button></div>")

This command add two more button on toastr, I wanna add ajaxRequest command on onclick event for each one. I'm try this command but not work.

And I'm trying in "TmyToaststr = class(TUniComponent)" for my useage. JSName for this component.

onclick:function(){ajaxRequest('+JSName+',''clicked'',[''clickedOn=btn_1'']); }

regards

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...