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_
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

ASKER

Great Thank you
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

ASKER

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.

Avatar of _agx_
_agx_
Flag of United States of America image

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

Avatar of erikTsomik
erikTsomik
Flag of United States of America image

ASKER

I tried using cfwindow but was always getting an error that cold Fusion function does not exist
Avatar of _agx_
_agx_
Flag of United States of America image

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)
Web Servers
Web Servers

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.

33K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo