Sunday, 15 January 2012

internet explorer 8 - JQuery file upload iframe method -



internet explorer 8 - JQuery file upload iframe method -

i'd set cross-domain file upload solution ie8 compatible. i've been using blueimp's jquery file upload plugin iframe transport option.

the upload works well, i'm not able results of upload server side. redirect alternative result.html file parsing seems solution, problem not have access server hosting form deploy html file. in case, there other way retrieve results of upload without deploying html file origin server?

inside javascript file can add together event listener (for non-jquery way see answer)

$(window).on('message', function(e){ var info = e.originalevent.data || e.originalevent.message; info = json.parse(data); //only if did json.stringify info sent //do need message send. });

next when upload done can either write page or redirect iframe page has content on it.

window.parent.postmessage('file upload done', '*');

if need send more info parent need json.stringify content first (old ie , ff don't allow objects, strings.)

window.parent.postmessage(json.stringify({'success': true, 'id': 1942}), '*');

jquery internet-explorer-8 cross-domain jquery-file-upload

No comments:

Post a Comment