Perhaps you were missing the single quotes around the variable?:
function set aler (aler:String):Void {
if (aler) {
__aler = aler;
getURL ("javascript:myFrame.myTest ('" + aler + "');");
}
}
}
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of digital_eyezed
Sent: Friday, August 05, 2005 11:57 AM
To: [email protected]
Subject: [flexcoders] My Head is in a bin, getUrl with javascript.
Hi,
I'm working with an IFrame in html and I am passing info from an
mxml custom component to an IFrame which contains a javascript
function called 'myTest', when I use getUrl with static text in my
mxml to call the javascript function in the IFrame it works, this is
the function in the mxml page:
function set aler(aler:String):Void {
if (aler) {
__aler = aler;
getURL("javascript:myFrame.myTest
('hrjhgjhfhkgfhgfh')");
}
}
This works fine, but I really want to send the value of 'aler', how
do I do this, I have tried everything from quotes to concatenation.
Thanks in advance.
Iain
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hnh925r/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123265363/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/