[flexcoders] Re: JavaScript MXML component
Abdul, Your component works fine (as expected) in Safari and FireFox for MacOSX. In my component, I use ExternalInterface.call( eval, jscode ) to inject the javascript code into the wrapper and it has problems when in the jsocde variable there are \n, \r and so on (i have had to replace them) However, your component does not have these problems and I have found that navigateToURL( javascript:eval('var a;\n\rvar b;') ) behave different than ExernalInterface.call( eval, 'var a;\n\rvar b; ); Weird, isn't. Should the behave identically? --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone n.php You can use this component to write JavaScript code within MXML document, when application is initialized all JavaScript code would be exported to container HTML document's context. I just wanted to do, infact had filed an ECR so that compiler team can do it. But it was easy to do with ActionScript. I have only tested on Firefox-windows and it works. Let me know, if you like it :) -abdul Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- 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/
Re: [flexcoders] Re: JavaScript MXML component
Thanks for testing in Safari/Firefox on MacOSX.I tried ExternalInterface and faced similar problem. Then I realized, I don't really need ExternalInterface because it converts things to XML which is further deserialized in _javascript_. That is the reason of all \r \n problems. In this case, I just wanted to eval () some script in browser's context and don't expect any return in ActionScript. navigateToURL (..) made sense to me.-abdulOn 6/16/06, drome.dario [EMAIL PROTECTED] wrote: Abdul, Your component works fine (as expected) in Safari and FireFox for MacOSX. In my component, I use ExternalInterface.call( eval, jscode ) to inject the _javascript_ code into the wrapper and it has problems when in the jsocde variable there are \n, \r and so on (i have had to replace them) However, your component does not have these problems and I have found that navigateToURL( _javascript_:eval('var a;\n\rvar b;') ) behave different than ExernalInterface.call( eval, 'var a;\n\rvar b; ); Weird, isn't. Should the behave identically? --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone n.php You can use this component to write _javascript_ code within MXML document, when application is initialized all _javascript_ code would be exported to container HTML document's context. I just wanted to do, infact had filed an ECR so that compiler team can do it. But it was easy to do with ActionScript. I have only tested on Firefox-windows and it works. Let me know, if you like it :) -abdul __._,_.___ -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: JavaScript MXML component
Abdul, Great!... Today, during my work day, I have finished a component to do the same: to inject javascript code into the flash wrapper. My final goal is to centralize all javascript, html and the flex app itself into a single SWF and thus, minimize the initial html wrapper to a simple boot strap mechanism. Your post has put in front of my eyes the idea for embed the html code...Thank you. Tomorrow I will test your component under MSIE, Safari and FireFox on Mac... I will post back the results. P.S.- What is amazing for me is to see what human being is able to achieve: giving a problem, to think in the same solution regarless the distance, culture, believings and so on. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone n.php You can use this component to write JavaScript code within MXML document, when application is initialized all JavaScript code would be exported to container HTML document's context. I just wanted to do, infact had filed an ECR so that compiler team can do it. But it was easy to do with ActionScript. I have only tested on Firefox-windows and it works. Let me know, if you like it :) -abdul Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- 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/
Re: [flexcoders] Re: JavaScript MXML component
Interesting.I agree, there is good probablity that same idea hits to many people at same time. Injecting _javascript_ is interesting idea, you can get _javascript_ code from a server-side request and inject it when required. -abdulOn 6/16/06, drome.dario [EMAIL PROTECTED] wrote: Abdul, Great!... Today, during my work day, I have finished a component to do the same: to inject _javascript_ code into the flash wrapper. My final goal is to centralize all _javascript_, html and the flex app itself into a single SWF and thus, minimize the initial html wrapper to a simple boot strap mechanism. Your post has put in front of my eyes the idea for embed the html code...Thank you. Tomorrow I will test your component under MSIE, Safari and FireFox on Mac... I will post back the results. P.S.- What is amazing for me is to see what human being is able to achieve: giving a problem, to think in the same solution regarless the distance, culture, believings and so on. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone n.php You can use this component to write _javascript_ code within MXML document, when application is initialized all _javascript_ code would be exported to container HTML document's context. I just wanted to do, infact had filed an ECR so that compiler team can do it. But it was easy to do with ActionScript. I have only tested on Firefox-windows and it works. Let me know, if you like it :) -abdul __._,_.___ -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___