Avatar of erikTsomik
erikTsomikFlag for United States of America asked on

PAss cfgrid selected item tp the url variable

I am trying to pass selected cfgrid item as a URL variable . I am using cfform type flash. But can not pass thart variable
Please help

function showNewPage(msg)
	 window.open ("UpdateAccess.cfm?menu={myGrid.selectedIndex.menuID}","mywindow");
<cfsavecontent variable="doPopUp">
	getURL("javascript:showNewPage("+ "'{myGrid.selectedItem.menuID}'"+ ")");
<cfinput type="button" name="btn" value="Add Access"  onClick="#doPopUp#">

Open in new window

Web ServersColdFusion Language

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Great Thank you

Also _agx:
I want to do the following. Once the pop up is clicked. I want to block the main screen so the user can not click on it until the pop up is closed . I tried to use Ext but it does not work.


Unfortnately, I highly doubt you can do that easily using a javascript popup.  For one thing, the window closing would be a javascript event (not flash) so you would have to communicate between javascript and flash.  While that is possible in later versions, IIRC it is not simple.  

The other option would be to try using a flash popup window so you could control the interaction and know when to return control to the main flash window.  Which a) is also more complicated and b) also  makes the assumption that flash supports the "modal window" concept, which I am not entirely certain it does ..  


Your help has saved me hundreds of hours of internet surfing.

I tried using cfwindow but was always getting an error that cold Fusion function does not exist

It works for me with IE, but 1) the window appears behind the flash form and 2) it does not disable the flash form.  We may be trying to mix apples and oranges here (ie javascript and flash)