<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ropox.net &#187; Programming</title>
	<atom:link href="http://ropox.net/archives/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://ropox.net</link>
	<description>thoughts from a web engineer</description>
	<lastBuildDate>Wed, 21 Jul 2010 05:33:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HTML5 and CSS3 Readiness Visualization</title>
		<link>http://ropox.net/archives/15662</link>
		<comments>http://ropox.net/archives/15662#comments</comments>
		<pubDate>Tue, 15 Jun 2010 06:57:33 +0000</pubDate>
		<dc:creator>ropox</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Metabloging]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[html 5.0]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9005</guid>
		<description><![CDATA[Paul Irish and Divya Manian have created a fun visualization on readiness of HTML5 and CSS3 standards in various browsers.
It uses a bunch of the usual CSS cool-suspects: -webkit-gradient, -webkit-transition, -webkit-border-radius, and the like (and -moz/-o too).
The added feature is.... do a mouse scroll on the page:
PLAIN TEXT
JAVASCRIPT:




&#160;


jQuery&#40;document&#41;.bind&#40;'DOMMouseScroll mousewheel', function&#40;e, delta&#41; &#123;


&#160; &#160; var newval,


&#160; [...]


Related posts:<ol><li><a href='http://feedproxy.google.com/~r/ajaxian/~3/7K4AvApfgFY/youtube-html5-video' rel='bookmark' title='Permanent Link: YouTube and Vimeo turn on HTML5 video tag'>YouTube and Vimeo turn on HTML5 video tag</a> <small>At Google I/O the team showed a demo of YouTube...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/dXOPZ-NVhWs/firediff-firebug-extension-to-track-changes-to-dom-and-css' rel='bookmark' title='Permanent Link: FireDiff: Firebug extension to track changes to DOM and CSS'>FireDiff: Firebug extension to track changes to DOM and CSS</a> <small>Kevin Decker has released FireDiff a very cool Firebug extension...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/8XlkyLk5Yc8/custom-info-windows-with-jquery-and-google-maps' rel='bookmark' title='Permanent Link: Custom info windows with jQuery and Google Maps'>Custom info windows with jQuery and Google Maps</a> <small>Ben Nolan has a writeup on a new feature in...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_brown" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://ropox.net/archives/15662&amp;shorturl=http://bit.ly/c9N7qP&amp;title=HTML5+and+CSS3+Readiness+Visualization&amp;theme=brown&amp;nick=ropox&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><a href="http://html5readiness.com/"><img class="alignnone size-full wp-image-9006" title="html5cssreadiness" src="http://ajaxian.com/wp-content/images/html5cssreadiness.png" alt="html5cssreadiness" width="480" height="275" /></a></p>
<p><a href="http://paulirish.com/">Paul Irish</a> and <a href="http://nimbupani.com/">Divya Manian</a> have created a fun visualization on readiness of HTML5 and CSS3 standards in various browsers.</p>
<p>It uses a bunch of the usual CSS cool-suspects: <code>-webkit-gradient</code>, <code>-webkit-transition</code>, <code>-webkit-border-radius</code>, and the like (and -moz/-o too).</p>
<p>The added feature is&#8230;. do a mouse scroll on the page:</p>
<!-- AdSense Now! V1.83 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-9479225664088173";
/* 300x250, ropox content */
google_ad_slot = "4563927795";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fropox.net%2Farchives%2F15662&amp;linkname=HTML5%20and%20CSS3%20Readiness%20Visualization"><img src="http://ropox.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a></p>

<p>Related posts:<ol><li><a href='http://feedproxy.google.com/~r/ajaxian/~3/7K4AvApfgFY/youtube-html5-video' rel='bookmark' title='Permanent Link: YouTube and Vimeo turn on HTML5 video tag'>YouTube and Vimeo turn on HTML5 video tag</a> <small>At Google I/O the team showed a demo of YouTube...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/dXOPZ-NVhWs/firediff-firebug-extension-to-track-changes-to-dom-and-css' rel='bookmark' title='Permanent Link: FireDiff: Firebug extension to track changes to DOM and CSS'>FireDiff: Firebug extension to track changes to DOM and CSS</a> <small>Kevin Decker has released FireDiff a very cool Firebug extension...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/8XlkyLk5Yc8/custom-info-windows-with-jquery-and-google-maps' rel='bookmark' title='Permanent Link: Custom info windows with jQuery and Google Maps'>Custom info windows with jQuery and Google Maps</a> <small>Ben Nolan has a writeup on a new feature in...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ropox.net/archives/15662/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop file uploads in Gmail using just the specs</title>
		<link>http://feedproxy.google.com/~r/ajaxian/~3/Vmqs3ynA74U/drag-and-drop-file-uploads-in-gmail-using-just-the-specs</link>
		<comments>http://feedproxy.google.com/~r/ajaxian/~3/Vmqs3ynA74U/drag-and-drop-file-uploads-in-gmail-using-just-the-specs#comments</comments>
		<pubDate>Fri, 11 Jun 2010 00:17:56 +0000</pubDate>
		<dc:creator>ropox</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Metabloging]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=8987</guid>
		<description><![CDATA[Gmail started off with the awful input type="file" "add more" typical solution that we all know and love. Then they added the ability to select multiple files via Flash.... and now they allow the ability to drag and drop files right onto the message compose using HTML5 standards.

Want to do it too? Check out the [...]


Related posts:<ol><li><a href='http://ropox.net/archives/10030' rel='bookmark' title='Permanent Link: The Beast File- Google'>The Beast File- Google</a> <small>Θέλουμε δε θέλουμε, η Google είναι στη ζωή μας σχεδόν...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/7K4AvApfgFY/youtube-html5-video' rel='bookmark' title='Permanent Link: YouTube and Vimeo turn on HTML5 video tag'>YouTube and Vimeo turn on HTML5 video tag</a> <small>At Google I/O the team showed a demo of YouTube...</small></li>
<li><a href='http://ropox.net/archives/16145' rel='bookmark' title='Permanent Link: Image upload with AS3 mac problem fix'>Image upload with AS3 mac problem fix</a> <small>I hit my head several times on the wall before...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_brown" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://feedproxy.google.com/~r/ajaxian/~3/Vmqs3ynA74U/drag-and-drop-file-uploads-in-gmail-using-just-the-specs&amp;shorturl=http://bit.ly/9JjyJK&amp;title=Drag+and+drop+file+uploads+in+Gmail+using+just+the+specs&amp;theme=brown&amp;nick=ropox&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>Ropox: Thats interesting enough, but still to my opinion there is a lot to be made yet.</p>
<p>Gmail started off with the awful <code>input type="file"</code> &#8220;add more&#8221; typical solution that we all know and love. Then they added the ability to select multiple files via Flash&#8230;. and now they <a href="http://gmailblog.blogspot.com/2010/04/drag-and-drop-attachments-onto-messages.html">allow the ability to drag and drop files right onto the message compose</a> using HTML5 standards.</p>
<p><img src="http://3.bp.blogspot.com/_JE4qNpFW6Yk/S79rfcmEd7I/AAAAAAAAAjo/kdH1eFnHVYA/attachments2.png" alt="" /></p>
<p>Want to do it too? <a href="https://developer.mozilla.org/en/Using_files_from_web_applications">Check out the APIs</a> and how you can do it all, including showing the thumbnails:</p>
<pre class="brush: javascript">
function handleFiles(files) {
for (var i = 0; i
var file = files[i];
var imageType = /image.*/;

if (!file.type.match(imageType)) {
continue;
}

var img = document.createElement(&quot;img&quot;);
img.classList.add(&quot;obj&quot;);
img.file = file;
preview.appendChild(img);

var reader = new FileReader();
reader.onload = (function(aImg) { return function(e) { aImg.src = e.target.result; }; })(img);
reader.readAsDataURL(file);
}
}
</pre>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ffeedproxy.google.com%2F%7Er%2Fajaxian%2F%7E3%2FVmqs3ynA74U%2Fdrag-and-drop-file-uploads-in-gmail-using-just-the-specs&amp;linkname=Drag%20and%20drop%20file%20uploads%20in%20Gmail%20using%20just%20the%20specs"><img src="http://ropox.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a></p>

<p>Related posts:<ol><li><a href='http://ropox.net/archives/10030' rel='bookmark' title='Permanent Link: The Beast File- Google'>The Beast File- Google</a> <small>Θέλουμε δε θέλουμε, η Google είναι στη ζωή μας σχεδόν...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/7K4AvApfgFY/youtube-html5-video' rel='bookmark' title='Permanent Link: YouTube and Vimeo turn on HTML5 video tag'>YouTube and Vimeo turn on HTML5 video tag</a> <small>At Google I/O the team showed a demo of YouTube...</small></li>
<li><a href='http://ropox.net/archives/16145' rel='bookmark' title='Permanent Link: Image upload with AS3 mac problem fix'>Image upload with AS3 mac problem fix</a> <small>I hit my head several times on the wall before...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/ajaxian/~3/Vmqs3ynA74U/drag-and-drop-file-uploads-in-gmail-using-just-the-specs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the page and viewport dimensions using jQuery</title>
		<link>http://ropox.net/archives/20449</link>
		<comments>http://ropox.net/archives/20449#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:22:22 +0000</pubDate>
		<dc:creator>ropox</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://ropox.net/?p=20449</guid>
		<description><![CDATA[Getting the page and viewport dimensions using jQuery is as easy as 1 2 3


Related posts:<ol><li><a href='http://ropox.net/archives/1081' rel='bookmark' title='Permanent Link: JQuery wildcard selectors'>JQuery wildcard selectors</a> <small>JQuery wildcard selectors on select boxes, how to reset all...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/8XlkyLk5Yc8/custom-info-windows-with-jquery-and-google-maps' rel='bookmark' title='Permanent Link: Custom info windows with jQuery and Google Maps'>Custom info windows with jQuery and Google Maps</a> <small>Ben Nolan has a writeup on a new feature in...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/ZhCs9AtdZOA/html-5-section-is-not-just-a-semantic-div' rel='bookmark' title='Permanent Link: HTML 5 section is not just a “semantic div”'>HTML 5 section is not just a “semantic div”</a> <small>James Graham of Opera has a post about how section...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_brown" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://ropox.net/archives/20449&amp;shorturl=http://bit.ly/crkOnG&amp;title=Getting+the+page+and+viewport+dimensions+using+jQuery&amp;theme=brown&amp;nick=ropox&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>thats why i Love jquery, cause everything is so simple&#8230;</p>
<p>To get the width and height of the whole page (document), use:</p>
<pre class="brush: javascript">
var pageWidth = $(document).width();
var pageHeight = $(document).height();
</pre>
<p>To get the width and height of the viewport (window), use:</p>
<pre class="brush: javascript">
var viewportWidth = $(window).width();
var viewportHeight = $(window).height();
</pre>
<p>
Opera though has a different approach. with Opera 9.5 $(window).height() returns the document height (more info here)<br />
you can get around this by using</p>
<pre class="brush: javascript">
var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height();
</pre>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fropox.net%2Farchives%2F20449&amp;linkname=Getting%20the%20page%20and%20viewport%20dimensions%20using%20jQuery"><img src="http://ropox.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a></p>

<p>Related posts:<ol><li><a href='http://ropox.net/archives/1081' rel='bookmark' title='Permanent Link: JQuery wildcard selectors'>JQuery wildcard selectors</a> <small>JQuery wildcard selectors on select boxes, how to reset all...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/8XlkyLk5Yc8/custom-info-windows-with-jquery-and-google-maps' rel='bookmark' title='Permanent Link: Custom info windows with jQuery and Google Maps'>Custom info windows with jQuery and Google Maps</a> <small>Ben Nolan has a writeup on a new feature in...</small></li>
<li><a href='http://feedproxy.google.com/~r/ajaxian/~3/ZhCs9AtdZOA/html-5-section-is-not-just-a-semantic-div' rel='bookmark' title='Permanent Link: HTML 5 section is not just a “semantic div”'>HTML 5 section is not just a “semantic div”</a> <small>James Graham of Opera has a post about how section...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ropox.net/archives/20449/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs</title>
		<link>http://ropox.net/archives/17137</link>
		<comments>http://ropox.net/archives/17137#comments</comments>
		<pubDate>Sun, 09 May 2010 16:12:54 +0000</pubDate>
		<dc:creator>ropox</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ropox.net/?p=17137</guid>
		<description><![CDATA[It was nice enough in AS2 when you did a simple LoadVars object to get the data from a server side page :


Related posts:<ol><li><a href='http://ropox.net/archives/16145' rel='bookmark' title='Permanent Link: Image upload with AS3 mac problem fix'>Image upload with AS3 mac problem fix</a> <small>I hit my head several times on the wall before...</small></li>
<li><a href='http://ropox.net/archives/4678' rel='bookmark' title='Permanent Link: .htaccess pcfg_openfile: unable to check htaccess file'>.htaccess pcfg_openfile: unable to check htaccess file</a> <small>well if you run in this error, then probably for...</small></li>
<li><a href='http://ropox.net/archives/33' rel='bookmark' title='Permanent Link: Online Load Time for your page'>Online Load Time for your page</a> <small>Καθώς έψαχνα για optimization tools και resources για MySQL έπεσα...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_brown" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://ropox.net/archives/17137&amp;shorturl=http://bit.ly/9v3i3O&amp;title=Error+%232101%3A+The+String+passed+to+URLVariables.decode%28%29+must+be+a+URL-encoded+query+string+containing+name%2Fvalue+pairs&amp;theme=brown&amp;nick=ropox&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>It was nice enough in AS2 when you did a simple LoadVars object to get the data from a server side page :</p>
<pre name="code" class="php">
var lv:LoadVars = new LoadVars();
lv.username = "ruliman";
lv.password = "123456";
lv.sendAndLoad("somefile.php",lv,"POST");</pre >

All I had to do is print on my php something like:
<pre name="code" class="php">
&amp;message=something&amp;var1=somethingelse&amp;</pre>
<p>where I was starting with &amp; and ending with &amp; , using name value pairs.</p>
<p>it Was simple , straight forward and everybody got used to it, from Flash designers to php programmers.</p>
<p>In AS3 though things are different.</p>
<pre name="code" class="php">var variables:URLVariables = new URLVariables();
variables.username = "ruliman";
variables.password= "123456";
//
trace(variables.toString());
var request:URLRequest = new URLRequest("somefile.php");
request.method = URLRequestMethod.POST;
request.data = variables;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

try{
loader.load(request);
}
catch (error:Error) {
trace("Unable to load URL");
}
</pre>
<p><strong>First you need to STOP starting and ending with &amp;. </strong><br />
You dont need that and in fact , you will get the above <span style="color: #ff0000;">error</span>, leaving you wondering why on earth this is not working</p>
<p>so from AS2 where in php you printed</p>
<pre name="code" class="php">
print "&amp;message=something&amp;var1=somethingelse&amp;";</pre >
now you need to print</p>
<pre name="code" class="php">
print "message=".urlencode(something)."&amp;var1=".urlencode(somethingelse);</pre >
<p>so you loose the &amp; in the beginning and in the end plus you make sure all returned data (apart from variables names) are urlencoded.<br />
Adobe should at least MAKE A DAMN NOTE on this new way of handling the returned data from a url posted page...</p>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fropox.net%2Farchives%2F17137&amp;linkname=Error%20%232101%3A%20The%20String%20passed%20to%20URLVariables.decode%28%29%20must%20be%20a%20URL-encoded%20query%20string%20containing%20name%2Fvalue%20pairs"><img src="http://ropox.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a></p>

<p>Related posts:<ol><li><a href='http://ropox.net/archives/16145' rel='bookmark' title='Permanent Link: Image upload with AS3 mac problem fix'>Image upload with AS3 mac problem fix</a> <small>I hit my head several times on the wall before...</small></li>
<li><a href='http://ropox.net/archives/4678' rel='bookmark' title='Permanent Link: .htaccess pcfg_openfile: unable to check htaccess file'>.htaccess pcfg_openfile: unable to check htaccess file</a> <small>well if you run in this error, then probably for...</small></li>
<li><a href='http://ropox.net/archives/33' rel='bookmark' title='Permanent Link: Online Load Time for your page'>Online Load Time for your page</a> <small>Καθώς έψαχνα για optimization tools και resources για MySQL έπεσα...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ropox.net/archives/17137/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image upload with AS3 mac problem fix</title>
		<link>http://ropox.net/archives/16145</link>
		<comments>http://ropox.net/archives/16145#comments</comments>
		<pubDate>Tue, 27 Apr 2010 06:33:02 +0000</pubDate>
		<dc:creator>ropox</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://ropox.net/?p=16145</guid>
		<description><![CDATA[I hit my head several times on the wall before I found out why browsers on MAC dont work exactly as browsers on windows, after uploading a file via Flash.


Related posts:<ol><li><a href='http://ropox.net/archives/17137' rel='bookmark' title='Permanent Link: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs'>Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs</a> <small>It was nice enough in AS2 when you did a...</small></li>
<li><a href='http://feedproxy.google.com/~r/PHPMagazineNetwork/~3/8AWqslHXjUA/dhtmlx_released_version_21.html' rel='bookmark' title='Permanent Link: [AJAX Magazine] DHTMLX Released Version 2.1'>[AJAX Magazine] DHTMLX Released Version 2.1</a> <small>DHTMLX announced the update of their Ajax UI Toolkit, a...</small></li>
<li><a href='http://ropox.net/archives/1081' rel='bookmark' title='Permanent Link: JQuery wildcard selectors'>JQuery wildcard selectors</a> <small>JQuery wildcard selectors on select boxes, how to reset all...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_brown" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://ropox.net/archives/16145&amp;shorturl=http://bit.ly/91k5Wg&amp;title=Image+upload+with+AS3+mac+problem+fix&amp;theme=brown&amp;nick=ropox&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>I hit my head several times on the wall before I found out why browsers on MAC dont work exactly as browsers on windows, after uploading a file via Flash.</p>
<p>the reason is simple : on MAC the browsers never calls onComplete = function(fileRef:FileReference) {}. Which means that the image is uploaded alright, but the flash app never gets a response back that the file has finished uploading.</p>
<p>All you have to do is , on your php/aspx/apsx/py or whatever server side file is handling your file upload from flash, you need to print something at the end of uploading.</p>
<p>for example in php, you could print the word : completed.</p>
<pre class="brush: php">
print &quot;completed&quot;;
</pre>
<p>you can print whatever word you want, it doesnt matter, all that matters is that the server side file is printing something (After the upload has finished) and browsers on mac platforms, will pick up on that , and your file upload will work!</p>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fropox.net%2Farchives%2F16145&amp;linkname=Image%20upload%20with%20AS3%20mac%20problem%20fix"><img src="http://ropox.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a></p>

<p>Related posts:<ol><li><a href='http://ropox.net/archives/17137' rel='bookmark' title='Permanent Link: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs'>Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs</a> <small>It was nice enough in AS2 when you did a...</small></li>
<li><a href='http://feedproxy.google.com/~r/PHPMagazineNetwork/~3/8AWqslHXjUA/dhtmlx_released_version_21.html' rel='bookmark' title='Permanent Link: [AJAX Magazine] DHTMLX Released Version 2.1'>[AJAX Magazine] DHTMLX Released Version 2.1</a> <small>DHTMLX announced the update of their Ajax UI Toolkit, a...</small></li>
<li><a href='http://ropox.net/archives/1081' rel='bookmark' title='Permanent Link: JQuery wildcard selectors'>JQuery wildcard selectors</a> <small>JQuery wildcard selectors on select boxes, how to reset all...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ropox.net/archives/16145/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
