Author Topic: Confirmation  (Read 2371 times)

Nuker_Viper

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 456
  • I'll Kill You!
    • View Profile
    • Global Moderator
Confirmation
« on: November 30, 2012, 12:25:49 pm »
is there a confirmation version of the success box script?
Bluethrust
Rank: Global Moderator
Website: www.bluethrust.com

LadyWildLife's Endangered Wildlife Website
Rank: Website php/html5 coder
Website: www.ladywildlife.org (R&D)
Website: www.ladywildlife.com (current)

Nuker_Viper

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 456
  • I'll Kill You!
    • View Profile
    • Global Moderator
Re: Confirmation
« Reply #1 on: November 30, 2012, 01:21:12 pm »
 
I am trying out this code to see if it works. Plz note i am not using 4.0 at this time but rather 3.0 with modifcations.
Code: [Select]
function popupConfirmDialog(strTitle, strLink, strLink2, strDivId) {
 
 $(document).ready(function() {
 
  divId = "#"+strDivId;
  $(divId).dialog({
   title: strTitle,
   modal: true,
   zIndex: 99999,
   width: 400,
   resizable: false,
   show: "scale",
   buttons: {
    "Close": function() {
     $(this).dialog("close");
    }
    "Cancel Request": function() {
     window.location = strLink2;
   },
   beforeClose: function() {
    window.location = strLink;
   }
   
  });
  $('.ui-dialog :button').blur();
 });
 
}
Bluethrust
Rank: Global Moderator
Website: www.bluethrust.com

LadyWildLife's Endangered Wildlife Website
Rank: Website php/html5 coder
Website: www.ladywildlife.org (R&D)
Website: www.ladywildlife.com (current)

Bluethrust

  • Administrator
  • Hero Member
  • *****
  • Posts: 1110
    • View Profile
Re: Confirmation
« Reply #2 on: December 04, 2012, 02:39:59 pm »
Yes, you can make the popup be a confirmation.  Im at work right now so cant go into detail be in the meantime check out jqueryui.com and look up dialog box.  They have an example there

Bluethrust

  • Administrator
  • Hero Member
  • *****
  • Posts: 1110
    • View Profile
Re: Confirmation
« Reply #3 on: December 04, 2012, 02:48:55 pm »
Quick glance, remove the before close part.  Its always going to go to your link when you close it

caso

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Confirmation
« Reply #4 on: January 27, 2016, 09:43:11 pm »
thanks  guys   :)





gclub