<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,6 +9,9 @@
 		&lt;script type=&quot;text/javascript&quot;&gt;
 			$(function() {
 				$('form').uploadProgress({
+					/* scripts locations for safari */
+					jqueryPath: &quot;../lib/jquery.js&quot;,
+					uploadProgressPath: &quot;../jquery.uploadProgress.js&quot;,
 					start:function(){},
 					uploading: function(upload) {$('#percents').html(upload.percents+'%');},
 					interval: 2000</diff>
      <filename>example/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,13 @@
  *
  */
 (function($) {
-	if($.browser.safari &amp;&amp; $('iframe[name=progressFrame]', parent.document).length == 0) {
-		$(function() {
+  $.fn.uploadProgress = function(options) {
+	$(function() {
+		/* tried to add iframe after submit (to not always load it) but it won't work. 
+		safari can't get scripts properly while submitting files */
+		if($.browser.safari &amp;&amp; $('iframe[name=progressFrame]', parent.document).length == 0) {
+			/* iframe to send ajax requests in safari 
+			   thanks to Michele Finotto for idea */
 			iframe = document.createElement('iframe');
 			iframe.name = &quot;progressFrame&quot;;
 			$(iframe).css({width: '0', height: '0', position: 'absolute', top: -3000});
@@ -23,18 +28,17 @@
 			
 			var b = d.body;
 			var s = d.createElement('script');
-			s.src = &quot;../lib/jquery.js&quot;;
+			s.src = options.jqueryPath;
 			/* must be sure that jquery is loaded */
 			s.onload = function() {
 				var s1 = d.createElement('script');
-				s1.src = &quot;../jquery.uploadProgress.js&quot;;
+				s1.src = options.uploadProgressPath;
 				b.appendChild(s1);
 			}
 			b.appendChild(s);
-		});
-  	}
-
-  $.fn.uploadProgress = function(options) {
+		}
+	});
+  
 	return this.each(function(){
 		$(this).bind('submit', function() {
 			var uuid = &quot;&quot;;
@@ -49,6 +53,8 @@
 				complete: function() {},
 				success: function() {},
 				error: function() {},
+				uploadProgressPath: '/javascripts/jquery.js',
+				jqueryPath: '/javascripts/jquery.uploadProgress.js',
                                 timer: &quot;&quot;
 			}, options);
                         /* update uuid */</diff>
      <filename>jquery.uploadProgress.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ba01150800ca3d0f47f1990677d3c43beea6932c</id>
    </parent>
  </parents>
  <author>
    <name>Peter Sarnacki</name>
    <email>drogus@gmail.com</email>
  </author>
  <url>http://github.com/drogus/jquery-upload-progress/commit/ac088332e4054de8cf9b38d7106921db503c39a9</url>
  <id>ac088332e4054de8cf9b38d7106921db503c39a9</id>
  <committed-date>2008-06-30T04:19:56-07:00</committed-date>
  <authored-date>2008-06-30T04:16:31-07:00</authored-date>
  <message>options.jqueryPath and options.uploadProgressPath to set scripts loaction for safari</message>
  <tree>2e3f8e702b51e797fdd1753d33a943c2fdaf73b5</tree>
  <committer>
    <name>Peter Sarnacki</name>
    <email>drogus@gmail.com</email>
  </committer>
</commit>
