{"id":930,"date":"2013-01-11T01:34:51","date_gmt":"2013-01-10T20:34:51","guid":{"rendered":"http:\/\/www.esearing.com\/v2010\/?p=930"},"modified":"2013-01-11T01:34:51","modified_gmt":"2013-01-10T20:34:51","slug":"coldfusion-bug-dialog-box-redirects-on-ok","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2013\/01\/coldfusion-bug-dialog-box-redirects-on-ok\/","title":{"rendered":"Coldfusion bug &#8211; dialog box redirects on ok"},"content":{"rendered":"<p>I had an interesting problem to figure out today. On one of my forms I had a Help icon which the user could click and it would display a dialog box with help. Sometimes the box would just close, other times it would revert to the Directory INDEX.CFM page. It took a bit of sleuthing but I discovered I had used two different syntaxes for the HELP button. If the A HREF attribute was missing the # sign the page reverted to the Index.cfm page. If the HREF attibute contained the # sign it merely closed the dialog box. Had the CFOUTPUT been on the outside of the A tag I might have need to use HREF=&#8221;##&#8221;.<\/p>\n<p><code>A HREF with the pound sign<br \/>\n&lt;div class=\"helpbox\"&gt;&lt;a href=\"#\" onclick=\"get_help('&lt;cfoutput&gt;#help_item_name#&lt;\/cfoutput&gt;');\"&gt;&lt;img src=\"images\/help_icon.jpg\" \/&gt;&lt;\/a&gt;&lt;\/div&gt;<br \/>\nvs<br \/>\nA HREF without the pound sign<br \/>\n&lt;div class=\"helpbox\"&gt;&lt;a href=\"\" onclick=\"get_help('&lt;cfoutput&gt;#help_item_name#&lt;\/cfoutput&gt;');\"&gt;&lt;img src=\"images\/help_icon.jpg\" \/&gt;&lt;\/a&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p>Issue occurs using CF9 and MSIE8. This may be normal behavior.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had an interesting problem to figure out today. On one of my forms I had a Help icon which the user could click and it would display a dialog box with help. Sometimes the box would just close, other &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2013\/01\/coldfusion-bug-dialog-box-redirects-on-ok\/\">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":[16,21,24],"tags":[],"class_list":["post-930","post","type-post","status-publish","format-standard","hentry","category-coldfusion","category-problems-fixes","category-snippets-quick-code-tips-for-single-elements-attributes-or-details"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/930","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=930"}],"version-history":[{"count":3,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":933,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/930\/revisions\/933"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}