all groups > macromedia flash flash remoting > june 2005 >
You're in the

macromedia flash flash remoting

group:

Please.... help just small thing


Please.... help just small thing Kryss2099
6/13/2005 9:28:16 PM
macromedia flash flash remoting:
Hi,

My application is close from completion, actually I just miss one little
thing, I've searched the forum and Macromedia site for days,

When my datagrid displays the result I would like the user to choose a data in
the column "CERNO" and append it to the URL so as to open the target page
filtered (using this data as filter).
The html/cfm part of it is already taken care of the only I'm having a problem
with is with the actionscript side of it, I've been using this code:

on (click) {
var cn = new LoadVars();
cn.cn = #CERNO#
cn.send("http://Localhost:8500/test/cfctests/CTcerts.cfm","_self","POST");
}

Everything works fine there except that what is appended to the url is #CERNO#
and the value it's supposed to be sent.
Can anybody tell how to declare a specific record as a variable?

Thanks a lot


Re: Please.... help just small thing Kryss2099
6/22/2005 1:59:59 PM
Hi,
Well, never mind I found how to solve this out. Since I've seen a couple of
thread like mine still unanswered, I hope this can help.

I still haven't managed to get the data I clicked on so instead I've created a
layer where I put a text input that I link to the data I wanted to send via URL.

Then on the first frame I attached the following code:

function send () {
myval = new LoadVars ();
myval.myval2 = _parent.myform.mytextinput.text;
myval.send ("myURL", "GET");
}
Report.onRelease = function () {
send ();
}
That's it.



AddThis Social Bookmark Button