Where is your script location in the document? Is the source page reloaded (or loaded) when the condition of qryCaseID.recordcount EQ 1 is true?
Maybe you need an event handler to fire that script. Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -----Original Message----- From: Phillip Vector [mailto:[email protected]] Sent: Tuesday, June 11, 2013 2:49 PM To: cf-talk Subject: Re: Script not firing?? dojo messing things up? Tried it. Didn't work still. The numbers were just for tracking. After some additional test, I found dojo screwing things up. Thanks anyway. :) On Jun 11, 2013 11:39 AM, "Dave Watts" <[email protected]> wrote: > > > <cfif qryCaseID.recordcount EQ 1>2 > > <cfoutput>3 > > <script>4 > > > window.open=('#cgi.HTTP_HOST##myself#caseDetails.editCaseInfo&caseId=# > qryCaseID.caseId#','_self'); > > </script>5 > > </cfoutput>6 > > <cfelse>7 > > ====================== > > I've tried cflocation, I've tried window.location.href and nothing... > > > > I verified that qryCaseID.Recordcount is indeed 1.. In fact, the > > output > I get is 1 2 3 5 6 > > > > So for some reason, the script is not firing.. > > The command "4 window.open(...)" is not valid JavaScript. You can't > just drop a literal value in a JavaScript block and expect it to run. > > Get rid of your numbers, and run it with Firebug or Chrome Developer > Tools and see what you get. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA > Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355899 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

