{"id":129,"date":"2010-05-25T08:19:28","date_gmt":"2010-05-25T12:19:28","guid":{"rendered":"http:\/\/erics-test-lab.com\/?p=129"},"modified":"2010-05-25T08:19:28","modified_gmt":"2010-05-25T12:19:28","slug":"jquery-confirm","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2010\/05\/jquery-confirm\/","title":{"rendered":"JQuery Confirm"},"content":{"rendered":"<p>The standard JavaScript confirm prompt allows you to ask a question and the user can respond with ok or cancel. But suppose you want them to have the choice of sign-up  and non-now? This allows you to guide the user to more selling or information gathering pages. JQuery has a plug-in for confirm that allows you the ability to change the buttons. What is even more interesting is that no pop-up is necessary. You can change the value of a link, button, and even text to the options you want to offer. There may be times when one is more appropriate than the other. For a full demo visit <a href=\"http:\/\/nadiana.com\/jquery-confirm-plugin\">http:\/\/nadiana.com\/jquery-confirm-plugin<\/a><\/p>\n<p><code><strong>Standard Javascript confirm usage:<\/strong><br \/>\nvar answer = confirm('Are you ready to take action?'){<br \/>\nif (!answer) {<br \/>\n   \/\/if cancel<br \/>\n   do something<br \/>\n}else{<br \/>\n   do something<br \/>\n}<br \/>\nvs. <strong>Confirm Plugin<\/strong><br \/>\n\/\/ The action.<br \/>\n$('span').mouseover(function() {<br \/>\n  $(this).html('Here is the offer');<br \/>\n});<br \/>\n\/\/<br \/>\n$('span').confirm({<br \/>\n  msg:'See my interesting offer?',<br \/>\n  stopAfter:'ok',<br \/>\n  eventType:'mouseover',<br \/>\n  timeout:3000,<br \/>\n  buttons: {<br \/>\n    ok:'Sure',<br \/>\n    cancel:'No thanks',<br \/>\n    separator:'  '<br \/>\n  }<br \/>\n});<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The standard JavaScript confirm prompt allows you to ask a question and the user can respond with ok or cancel. But suppose you want them to have the choice of sign-up and non-now? This allows you to guide the user &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2010\/05\/jquery-confirm\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,13],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-code","category-jquery"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}