Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfwindow

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Hey folks. I just discovered <cfwindow> (yeah, yeah I know, I know...)

I think it's great, but I am having an odd issue.

This is what the link looks like: abc.com/page1.cfm?myID=12355431

In page1.cfm, I am using a <cfwindow> tag via an href link. This is how I compiled that piece of code:
Code:
<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>

Now what happens is when I click the link "Text" the first time, nothing happens, but the second time I click the link the <cfwindow> executes. After spending an hour and countless tries, I realized that the only thing each instance had in common was the URL.

Initially the URL looks like this: 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#


_____________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top