<!--- this is just the temp query I built to populate a grid --->
<cfset p = querynew("staff,staffid") />
<cfloop from="1" to="10" index="i">
<cfset queryaddrow(p) />
<cfset querysetcell(p, "staff", "Record#i#") />
</cfloop>
<!--- build the action script --->
<cfsavecontent variable="popupAS">
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin =
window.open('profile.cfm','Title','width=400,height=300,toolbar=0,location=0
,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=100,left=100'
)}else{myWin.focus();};void(0);");
</cfsavecontent>
<!--- set the grid to use the action script --->
<cfform format="flash" action="cfgrid2.cfm" method="post" name="myForm">
<cfgrid name="showprostaff"
query="p"
rowheaders="no"
format="flash"
height="200"
onchange="#popupAS#" />
</cfform>
Give that a shot :)
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 17, 2005 5:59 PM
To: CF-Talk
Subject: RE: cfform popup
I know, I been trying everything, js, .as, this would make a canidate for a
new feature since it would be widely used and being that you cant go to a
new page and then backspace and get your results back.....
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
----------------------------------------
From: "Bobby Hartsfield" <[EMAIL PROTECTED]>
Sent: Thursday, November 17, 2005 9:53 AM
To: CF-Talk <[email protected]>
Subject: RE: cfform popup
Ok, sorry. I should have know this one but...
onchange="getUrl(""javascript:NewWindow=window.open('profile.cfm','Title','w
idth=400,height=400,left=0,top=0,toolbar=No,location=No,scrollbars=No,status
=No,resizable=No,fullscreen=No');"", ""_blank"")"
The , ""_blank"" will open it the javascript: string in a new window. I'm
having an issue with the new window self closing though before it opens the
popup though....sigh.
I'm not giving up though. Now it's personal. I'll play with it some more
tonight.
....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 17, 2005 9:23 AM
To: CF-Talk
Subject: RE: cfform popup
It appears to (somewhat) work from what I see. It opens the new window sized
and everything, it just takes the parent window to the getUrl() string. I'm
digging trying to figure out how to stop the parent window from redirecting.
I'll let you know if I find anything.
ps, yeah, I think it is getURL()
.....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 8:02 PM
To: CF-Talk
Subject: RE: cfform popup
thanks again for your time and efforts Bobby.
However I still get the error, Laura at asfusion noted that get Url Needs to
be getURL but that still doesnt work.
http://65.36.226.10/testimonials/pro/search.cfm
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
----------------------------------------
From: "Bobby Hartsfield"
Sent: Wednesday, November 16, 2005 7:51 PM
To: CF-Talk
Subject: RE: cfform popup
Well, I finally got access to a server that didn't tell me that 'onchange'
was a bad attribute of cfgrid but it will only display a Java applet grid...
yay...
But I did have to clean up the syntax to get that far. This worked....
Onchange="getUrl(""javascript:NewWindow=window.open('profile.cfm','Title','w
idth=400,height=400,left=0,top=0,toolbar=No,location=No,scrollbars=No,status
=No,resizable=No,fullscreen=No');"")"
notice its just double-double quotes to escape them inside the onchange=""
That should get you past the syntax error I see when I hit that url now.
I really didn't feel like building an elaborate query for it so I just made
a quick small one ... querynew("staff,staffed") and looped some junk inot
it 10 times.
When you get past the syntax errors, let me know if something else catches
you. Maybe Ill have a server straightened out by then (hell... maybe ill set
up 7 on my laptop)
.......:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 12:34 PM
To: CF-Talk
Subject: RE: cfform popup
I'll have to try it out later tonight when I have access to a different
server with cfgrid and can actually see it working (or not working). Until
then... try a simpler window to track down any syntax errors
getUrl("javascript:NewWindow=window.open('somepage.cfm','Title','width=400,h
eight=400,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resiza
ble=No,fullscreen=No');")
You might also try jsstringformatting everything in the geturl() and see
what that yields.
........:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 12:21 AM
To: CF-Talk
Subject: RE: cfform popup
thanks for taking the time Bobby
here is url http://65.36.226.10/testimonials/pro/search2.cfm
no matter what I try on any of these the error is here
window.open(<---------- that bracket is always the cause
I did find an open brack and a misspelling but i cant get the damn thing!
current code
query="prostaff"
rowheaders="no"
height="200"
--->
onchange="getUrl("javascript:NewWindow=window.open('profile.cfm?ProStaffID='
+
'showprostaff.dataProvider[showprostaff.selectedIndex]['ProStaffID']','Title
','width=400,height=400,left=0,top=0,toolbar=No,location=No,scrollbars=No,st
atus=No,resizable=No,fullscreen=No');")">
this is what its supposed to be
http://65.36.226.10/testimonials/pro/search.cfm
but when u select a grid row I want a popup so the user doesnt have to go
back and do the whole thing over everytime.
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
----------------------------------------
From: "Bobby Hartsfield"
Sent: Wednesday, November 16, 2005 12:02 AM
To: CF-Talk
Subject: RE: cfform popup
At a glance continued....
['ProStaffID']
Try escaping those single quotes if that's where line 93 col 68 is
..........:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 6:08 PM
To: CF-Talk
Subject: RE: cfform popup
Thanks Bobby but that throws an error.
Invalid token ''' found on line 93 at column 68.
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
----------------------------------------
From: "Bobby Hartsfield"
Sent: Tuesday, November 15, 2005 8:51 AM
To: CF-Talk
Subject: RE: cfform popup
Try something like...
getUrl("javascript:NewWindow=window.open('profile.cfm?ProStaffID=' +
showprofstaff.dataProvider[showprostaff.selectedIndex]['ProStaffID']','Title
','width=400,height=400,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
")
............:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 1:19 AM
To: CF-Talk
Subject: cfform popup
anyone know how to make this able to pop up a sizes pop up window out of a
cfgrid in a flash form?
in the cfgrid code:
onchange="getUrl('profile.cfm?ProStaffID=' +
showprostaff.dataProvider[showprostaff.selectedIndex]['ProStaffID']);"
basically want it to pop up a sized pop up window
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224588
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54