Don’t forget to scape “ ‘ “.

 

Try this:

 

function set aler(aler:String):Void {
              if (aler) {
                    __aler = aler;
                    getURL("_javascript_:myFrame.myTest(\' ’ + __alert + ‘ \')");

                    }
          }

 

 

João Fernandes

Secção de Desenvolvimento

Departamento de Informática


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
Sent: sexta-feira, 5 de Agosto de 2005 16:57
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




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS




Reply via email to