This is what the link looks like:
abc.com/page1.cfm?myID=12355431
In page1.cfm, I'm using <cfwindow> via href:
<cfoutput query="">
...
<a href="##"
onclick="javascript:ColdFusion.Window.show('MyWindow');">Text</a>
</cfquery>
...
<cfwindow
name="MyWindow"
center="true"
closable="true"
draggable="true"
height="200"
resizable="true"
title="#myQuery.ID#"
width="400">
<form name="te" action="yahoo.com" method="post">
<input type="text" name="name" value=""> <br/>
<input type="hidden" name="name"
value="<cfoutput>#myQuery.ID#</cfoutput>">
<br/>
<input type="submit" name="submit"
value="submit"><br/>
</form>
</cfwindow>
When I click "Text" link the first time, nothing happens, but
the second time the <cfwindow> executes. After spending an
hour and countless tries, I realized the only thing each instance
had in common was the URL.
Initially the URL was: abc.com/page1.cfm?myID=12355431
After I click on the link the first time (when nothing
happens), the URL looks like this: abc.com/page1.cfm?myID=12355431#
When I click the link again, the <cfwindow> works.
Does passing a var in the URL make <cfwindow> act odd?
Why would it work if the URL was:
abc.com/page1.cfm#
abc.com/page1.cfm?myID=12355431#
But when the URL is:
abc.com/page1.cfm?myID=12355431