Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Mark Forsberg #1
getURL in Flash Form
I'm trying to use getURL to pass a value to another template. I'm having no
luck. the URL variable cfgridkey is "undefined".
<cfsavecontent variable="getRecord">
getURL('comment.cfm?cfgridkey=' +
searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'],'_self');
</cfsavecontent>
<cfgrid format="flash" name="searchResults" colheaderfontsize="10"
colheaderalign="center" colheaderbold="yes" height="210" onchange="#getRecord#">
<cfgridcolumn name="comment_key" header="Comment ID" dataalign="center"/ >
<cfgridcolumn name="lastname" header="Last Name"/>
<cfgridcolumn name="firstname" header="First Name"/>
<cfgridcolumn name="comment_date" header="Comment Date"
dataalign="center"/>
<cfgridcolumn name="comment" header="Comment Preview" width="400"/>
</cfgrid>
The grid is being populated with remoting. Would that make any difference as
to whether the dataProvider can be viewed by the application?
Thanks.
Mark Forsberg Guest
-
getURL flash in a Command, doesnt work.
I am trying to get a flash file displaying in a Command (or a floater, either would be preferable at this point!) and for the most part its working,... -
geturl in flash mx 2004
Hello, I try to use a button as a email but with the version mx 04 it doesn't work. In the Actions window a write geturl ("email") but nothing -
getURL Links are appearing behind my Flash piece?
Please help. Does anyone know of a way to ensure that a web browser window popping-up from a fullscreen flash projector (*.EXE), using the getURL... -
putting a variable into getURL in flash
Hi, I am sure this is a quick fix. But could use some help. I am pulling a bunch of variables from a php page. from those vairables i want to... -
geturl command in flash-html combo site
Hi, I'm doing a site that has a flash intro. (To make it simpler, the flash intro site is www.website.com) Buttons in the intro should open up... -
The ScareCrow #2
Re: getURL in Flash Form
I'm fairly sure that as is case sensative, so
COMMENT_KEY is not the same as comment_key
Ken
The ScareCrow Guest
-
Mark Forsberg #3
Re: getURL in Flash Form
Scarecrow,
I changed the COMMENT_KEY to comment_key and it is still undefined.
comment_key works fine in populating the grid with the remote. I thought that
comment_key would also be the proper case for using the cfgrid value in a url.
I appreciate the help in this. It's got me stumped.
Mark
Mark Forsberg Guest
-
The ScareCrow #4
Re: getURL in Flash Form
I would say the problem has to be that the value is not being added to the url.
Is there a reason your still using cfsavecontent ?
To debug, I would do the following:
1. Put in an
Alert(searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'])
To see if the value is being returned
2. Put in a hard coded value and see if this works
Let's assume a valid comment_key is "search", then
getURL('comment.cfm?cfgridkey=' + 'search';
How are you trying to access the value in the comment.cfm page ?
I think by default it is URL.cfgridkey
You can also include the attribute of "post" or "url" in the geturl function
call.
On reading the doc's about geturl, I can't see anything about a default value.
So I would suggest putting it in
getURL('comment.cfm?cfgridkey=' +
searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY'],'_self',
'GET');
Ken
The ScareCrow Guest
-
Mark Forsberg #5
Re: getURL in Flash Form
Scarecrow,
I ran numerous tests like you suggested. For grins I populated the grid
with a cfquery and I was able to attach the index in the getURL function. When
I populate the grid with remoting it's as though the function called by the
button click cannot see the grid. I thought that by declaring the name of the
grid in my remoting call that it would be recognized as _root. Perhaps not.
For now it's just going to run like an html form. Not what I want but
I've got other things to finish.
Thanks for all of your help.
Mark F.
Mark Forsberg Guest
-
The ScareCrow #6
Re: getURL in Flash Form
Instead of the following
searchResults.dataProvider[searchResults.selectedIndex]['COMMENT_KEY']
Try
searchResults.selectedIndex.comment_key
Ken
The ScareCrow Guest
-
mcadle #7
Re: getURL in Flash Form
Your problem is you are not passing all of the items into your grid with
remoting. You need to use this:
responseHandler.onResult = function( results: Object ):Void {
data.dataProvider = results._items;
}
This should solve your problem. You can use either method to bind to the
selected item in the grid and pass it in the getURL clause.
mcadle Guest
-
Mark Forsberg #8
Re: getURL in Flash Form
mcadle,
Sorry for the slow response. It's been hectic.
I'll give this a try and see how it goes.
Everyone, thanks for the help. Remoting is cool, but I haven't done it
enough to get good at debugging.
Again, thanks.
Mark
Mark Forsberg Guest



Reply With Quote

