<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A MXML component that embeds JavaScript in html</title>
	<atom:link href="http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/</link>
	<description>a developer and entrepreneur on web technologies, adobe flash platform (flex, flash, air), web, opensource, linux, free software, usability, startups, India...</description>
	<lastBuildDate>Mon, 15 Mar 2010 12:09:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sandyxxx</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-6845</link>
		<dc:creator>sandyxxx</dc:creator>
		<pubDate>Sat, 19 Dec 2009 11:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-6845</guid>
		<description>It&#039;s good to know your stand towards this comment thing going on. I&#039;ve visited some design sites before that I find have &lt;br&gt;&lt;br&gt;repetitive comments from visitors, might be one of those you were pertaining to.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.dealshunt.com&quot; rel=&quot;dofollow&quot;  rel=&quot;nofollow&quot;&gt;good deals&lt;/a&gt;--</description>
		<content:encoded><![CDATA[<p>It&#39;s good to know your stand towards this comment thing going on. I&#39;ve visited some design sites before that I find have </p>
<p>repetitive comments from visitors, might be one of those you were pertaining to.</p>
<p><a href="http://www.dealshunt.com" rel="dofollow"  rel="nofollow">good deals</a>&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-6748</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Tue, 15 Sep 2009 15:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-6748</guid>
		<description>I tested my work with IE6, but yeah I might have missed this particulare use-case. You can modify the code to send a long string in chunks and then run the js code?</description>
		<content:encoded><![CDATA[<p>I tested my work with IE6, but yeah I might have missed this particulare use-case. You can modify the code to send a long string in chunks and then run the js code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Arch</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-6747</link>
		<dc:creator>Gareth Arch</dc:creator>
		<pubDate>Mon, 14 Sep 2009 02:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-6747</guid>
		<description>Arg!  Came across this same issue this weekend (figured I&#039;d give this a try with my latest project at work).  We&#039;re currently using IE6 so I&#039;m running across the URL length limitation.  I&#039;ve been trying trim down everything that&#039;s unnecessary, but IE6 still keeps catching me with too much junk in the URL.  Maybe I&#039;ll try some kind of trimming function for my JS.  I&#039;m trying to contain the JS within the Flex project, but in IE6, that&#039;s been proving difficult.</description>
		<content:encoded><![CDATA[<p>Arg!  Came across this same issue this weekend (figured I&#39;d give this a try with my latest project at work).  We&#39;re currently using IE6 so I&#39;m running across the URL length limitation.  I&#39;ve been trying trim down everything that&#39;s unnecessary, but IE6 still keeps catching me with too much junk in the URL.  Maybe I&#39;ll try some kind of trimming function for my JS.  I&#39;m trying to contain the JS within the Flex project, but in IE6, that&#39;s been proving difficult.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-3603</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Thu, 25 Jun 2009 04:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-3603</guid>
		<description>@syeddiwan: Sorry for late response, I believe, you can capture events (from browser) when it&#039;s going to close and then let flex know about it. Now browser-unload event doesn&#039;t work consistenly in all browsers, in my opinion, hence I would rather rely on different approach.

1) Capture browser&#039;s unload event and do the cleanup (saving data, closing session, etc).
2) Warn user when he tries to close the browser, request him to save, exit or logoff using provided control in user-interface?
3) Maintain a persistent connection using sockets or xmlsocket, now that might be some work and requires server-side infrastructure.

#1 might not work in all browsers and #3 might be little too much for simple things. I see, #2 can be used to and it&#039;s safe and sound.

BTW! What you plan to do? I mean, a lot of people are generally confused with things &quot;sessions&quot; and &quot;flex&quot;. 

-abdul

I believe, you can</description>
		<content:encoded><![CDATA[<p>@syeddiwan: Sorry for late response, I believe, you can capture events (from browser) when it&#8217;s going to close and then let flex know about it. Now browser-unload event doesn&#8217;t work consistenly in all browsers, in my opinion, hence I would rather rely on different approach.</p>
<p>1) Capture browser&#8217;s unload event and do the cleanup (saving data, closing session, etc).<br />
2) Warn user when he tries to close the browser, request him to save, exit or logoff using provided control in user-interface?<br />
3) Maintain a persistent connection using sockets or xmlsocket, now that might be some work and requires server-side infrastructure.</p>
<p>#1 might not work in all browsers and #3 might be little too much for simple things. I see, #2 can be used to and it&#8217;s safe and sound.</p>
<p>BTW! What you plan to do? I mean, a lot of people are generally confused with things &#8220;sessions&#8221; and &#8220;flex&#8221;. </p>
<p>-abdul</p>
<p>I believe, you can</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: syeddiwan</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-3303</link>
		<dc:creator>syeddiwan</dc:creator>
		<pubDate>Sat, 20 Jun 2009 06:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-3303</guid>
		<description>Hai Abdul :-
  
  it&#039;s very nice one,Right now i am doing session  based flex application,so while closing the browser i need to pass the flex event,can u please guide me,  
thanks in advance</description>
		<content:encoded><![CDATA[<p>Hai Abdul :-</p>
<p>  it&#8217;s very nice one,Right now i am doing session  based flex application,so while closing the browser i need to pass the flex event,can u please guide me,<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrice</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-736</link>
		<dc:creator>Patrice</dc:creator>
		<pubDate>Fri, 21 Nov 2008 02:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-736</guid>
		<description>hi,
nevermind. i had just named the file differently from the class. it&#039;s all fixed now. thanks for the code!
</description>
		<content:encoded><![CDATA[<p>hi,<br />
nevermind. i had just named the file differently from the class. it&#8217;s all fixed now. thanks for the code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrice</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-735</link>
		<dc:creator>Patrice</dc:creator>
		<pubDate>Fri, 21 Nov 2008 02:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-735</guid>
		<description>hi,
so i fixed the problem that said it could not resolve  to a component implementation (i think), by using  but now it has a problem with  &quot;packages cannot be nested&quot; in javascript.as
do you know what i could be doing wrong?
thanks!
</description>
		<content:encoded><![CDATA[<p>hi,<br />
so i fixed the problem that said it could not resolve  to a component implementation (i think), by using  but now it has a problem with  &#8220;packages cannot be nested&#8221; in javascript.as<br />
do you know what i could be doing wrong?<br />
thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrice</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-734</link>
		<dc:creator>Patrice</dc:creator>
		<pubDate>Fri, 21 Nov 2008 00:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-734</guid>
		<description>hi,
thanks for this code. i&#039;m trying to integrate multiple javascript files into a flex application. i copied the code from your javascript.as file and tried to use the javascript tag in a separate mxml component file but it didn&#039;t work. it says that it could not resolve  to a component implementation.
do you know what i could be doing wrong?
hopefully you&#039;re still getting messages about comments from this post!
thanks!
</description>
		<content:encoded><![CDATA[<p>hi,<br />
thanks for this code. i&#8217;m trying to integrate multiple javascript files into a flex application. i copied the code from your javascript.as file and tried to use the javascript tag in a separate mxml component file but it didn&#8217;t work. it says that it could not resolve  to a component implementation.<br />
do you know what i could be doing wrong?<br />
hopefully you&#8217;re still getting messages about comments from this post!<br />
thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-733</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 10 Nov 2008 00:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-733</guid>
		<description>Would this work with the moteDaemon (http://sourceforge.net/projects/motedaemon/)?
I keep getting:
SecurityError: Error #2051: Security sandbox violation:
errors with this example.
</description>
		<content:encoded><![CDATA[<p>Would this work with the moteDaemon (<a href="http://sourceforge.net/projects/motedaemon/)?" rel="nofollow">http://sourceforge.net/projects/motedaemon/)?</a><br />
I keep getting:<br />
SecurityError: Error #2051: Security sandbox violation:<br />
errors with this example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-732</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 14 Jun 2007 02:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-732</guid>
		<description>Hi,
I noticed this very peculiar behaviour:
try putting this in a javascript function and execute it as you said:
alert (&quot;aaaaaaaabbaaaaasdddddddddddd2aaaaaaaaaaaaaaa1sasaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1&quot;);
I got differing results in different browsers. It basically does not work in IE6. All other javascript functions don&#039;t work also if on the same flex app or html page.
However this works in IE7 and Firefox. It only works in IE6 if the piece of code above is put into a normal html page and not executed through Flex.
wondering what&#039;s going on and if there is a workaround to the limit of characters in a string
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I noticed this very peculiar behaviour:<br />
try putting this in a javascript function and execute it as you said:<br />
alert (&#8221;aaaaaaaabbaaaaasdddddddddddd2aaaaaaaaaaaaaaa1sasaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1&#8243;);<br />
I got differing results in different browsers. It basically does not work in IE6. All other javascript functions don&#8217;t work also if on the same flex app or html page.<br />
However this works in IE7 and Firefox. It only works in IE6 if the piece of code above is put into a normal html page and not executed through Flex.<br />
wondering what&#8217;s going on and if there is a workaround to the limit of characters in a string</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: judah</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-731</link>
		<dc:creator>judah</dc:creator>
		<pubDate>Fri, 08 Jun 2007 09:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-731</guid>
		<description>This is sweet! Do you know what browsers this works in?
</description>
		<content:encoded><![CDATA[<p>This is sweet! Do you know what browsers this works in?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-730</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Tue, 05 Jun 2007 16:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-730</guid>
		<description>@Aneesh: Put JavaScript.as in com/abdulqabiz/utils folder inside your project. Then you need import it or declare it in xml namespace
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; xmlns:utils=&quot;com.abdulqabiz.utils.*&quot; ....
If you are using JavaScript in ActionScript, import it:-
import com.abdulqabiz.utils.JavaScript;
</description>
		<content:encoded><![CDATA[<p>@Aneesh: Put JavaScript.as in com/abdulqabiz/utils folder inside your project. Then you need import it or declare it in xml namespace<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; xmlns:utils=&#8221;com.abdulqabiz.utils.*&#8221; &#8230;.<br />
If you are using JavaScript in ActionScript, import it:-<br />
import com.abdulqabiz.utils.JavaScript;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneesh</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-729</link>
		<dc:creator>Aneesh</dc:creator>
		<pubDate>Mon, 04 Jun 2007 17:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-729</guid>
		<description>hi abdul...
i am using eclipse with flex plugin...but i get an error saying &quot;could not resolve  to component implentation....where should i put JavaScript.as that u have mentioned and how should i run it in eclipse..
</description>
		<content:encoded><![CDATA[<p>hi abdul&#8230;<br />
i am using eclipse with flex plugin&#8230;but i get an error saying &#8220;could not resolve  to component implentation&#8230;.where should i put JavaScript.as that u have mentioned and how should i run it in eclipse..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-728</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Mon, 05 Mar 2007 21:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-728</guid>
		<description>Thanks Joan,
I am not very good in RegExp, I have fixed it anyway. I am going to sit down and write down all the use-cases and write proper regexp patterns.
I guess, I would end up writing some kind of laxer/grammar :)
-abdul
</description>
		<content:encoded><![CDATA[<p>Thanks Joan,<br />
I am not very good in RegExp, I have fixed it anyway. I am going to sit down and write down all the use-cases and write proper regexp patterns.<br />
I guess, I would end up writing some kind of laxer/grammar <img src='http://www.abdulqabiz.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
-abdul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joan Garnet</title>
		<link>http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/comment-page-1/#comment-727</link>
		<dc:creator>Joan Garnet</dc:creator>
		<pubDate>Mon, 05 Mar 2007 17:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=185#comment-727</guid>
		<description>The last update would make this crash:
&lt;pre&gt;
&lt;JavaScript&gt;
&lt;![CDATA[
location.href = &quot;http://www.yahoo.com&quot;;
]]&gt;
&lt;/JavaScript&gt;
&lt;/pre&gt;
Mabybe you could evaluate that the double slash is not between quotes.
Cheers
</description>
		<content:encoded><![CDATA[<p>The last update would make this crash:</p>
<pre>
&lt;JavaScript&gt;
&lt;![CDATA[
location.href = "http://www.yahoo.com";
]]&gt;
&lt;/JavaScript&gt;
</pre>
<p>Mabybe you could evaluate that the double slash is not between quotes.<br />
Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
