0

I'm trying to implement shift8creative's agile uploader. All works well in proper browsers, but ie is causing problems.

the page is here:https://www.postadigi.com/pages/upload-order

the line the js error is highlighting is here:

document.getElementById('agileUploaderSWF').sendForm();

Iv'e tried putting it in a onclick, a jquery click function. Same error.

NB, it compresses & uploads a first image fine, but then when a second image is selected and upload clicked, it fails.

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Will
  • 4,498
  • 2
  • 38
  • 65
  • sorry, by "ie" i mean ie8. we arn't supporting older browsers for the compressor up-loader widget. – Will Dec 02 '10 at 05:36
  • Sorry again. On rereading that it makes no sense: clicking the upload button the second time round throws the error:object does not support this method or property and therefore the form is not submitted. – Will Dec 02 '10 at 05:49

2 Answers2

0
document.getElementById('agileUploaderSWF').sendForm();
j0k
  • 22,600
  • 28
  • 79
  • 90
Pradeep Singh
  • 3,582
  • 3
  • 29
  • 42
  • yes, sorry. typo on my part in the question. Its got the full stop in the code. thanks for looking for me though. – Will Dec 02 '10 at 05:51
0

OK, fixed it.

Internet explorer was caching the swf data as detailed here:

http://www.permadi.com/tutorial/flashcache/index.html

So thanks to a tip from Richard Grove on the plugins comments, i fixed it with a bit of trickery:

flashSrc: '/js/uploader/agile-uploader.swf?' + Math.random(),

Which seems to have convinced ie to not cache it.

Will
  • 4,498
  • 2
  • 38
  • 65