[ 1 post ]

abhijt_100

  • Joined: Fri May 11, 2012 1:34 am
  • Posts: 1
  • Offline
  • Profile

Uploader event

Post Posted: Fri May 11, 2012 1:40 am
+0-
We are using yui 2.8 uploader with asp.net.
It works perfectly with all versions of IE. But did not work with FF and Chrome.
We finally pinned down the issue to the call to uploader.upload.
For IE we use
uploader.upload(fileID, "WebService.asmx/Site_docs?....

For FF/Chrome we had to use
uploader.upload(fileID, "../WebService.asmx/Site_docs?

Strange why this should be the case. Any info would be appreciated.

Secondly in onUploadCompleteData we use this to parse the returned xml:

var xmlDoc;
if (window.ActiveXObject) {// code for IE
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
xmlDoc = document.implementation.createDocument("", "", null);
}
xmlDoc.async = "false";
xmlDoc.load(event.data); alert('here');
var root = xmlDoc.documentElement;


This works well in IE but in FF/Chrome the xmlDoc.load does not work. It doesnt go to the alert.
What could be the problem.
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum