It doesn’t look like the other email is going to make it so here's the whole
thing pieced together in a working example. Mind the case sensitivity... it
drove me nuts!


<!--- 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#") /> 
        <cfset querysetcell(p, "staffid", "#i#") /> 
</cfloop>


<!--- build the action script --->
<cfsavecontent variable="popupAS">
var thisid =
showprostaff.dataProvider[showprostaff.selectedIndex]['staffid']; getURL
("javascript:var myWin; if(!myWin || myWin.closed){myWin =
window.open('profile.cfm?id=" + thisid +
"','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>



 
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224593
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to