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}'"+ ")");
</cfsavecontent>
<cfinput type="button" name="btn" value="Add Access"  onClick="#doPopUp#">

Open in new window

Web ServersColdFusion Language

Avatar of undefined
Last Comment
_agx_

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
_agx_

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
or
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
ASKER
erikTsomik

Great Thank you
ASKER
erikTsomik

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.

_agx_

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 ..  

http://ruby.sys-con.com/node/296224

Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER
erikTsomik

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

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)