- Where Developers Learn, Share, & Build Careers


After

All, I have found the following code:

  onDone: function (e, data ) {Var results = jQuery.parseJSON (data.result); Var uploadtype = result.upload_type; Var filename = result.name; Var insert_id = result.insert_id; }   

When I run it, I get the following error from IE:

 Message: 'upload_type' is zero or not  

when I get console.log (data.result) in Chrome, I get the following data:

  [{"name": "1_3266_671641333369_14800358_42187036_5237378_n.jpg", "Size": 35535, "Type" : "Delete / url": "\ / web \ / upload \ /1_3266_671641333369_14800358_42187036_5237378_n.jpg", "thumbnail_url": "\ / web \ upload / thumbnail \ /1_3266_671641333369_14800358_42187036_5237378_n.jpg", "delete_url": "\ / web \ /upload.php file = 1_3266_671641333369_14800358_42187036_5237378_n.jpg? "," delete_type ":" delete "," upload_type ":" video_montage "," insert_id ":" 288 "}]   

I am trying to see why I am getting an error message in IE8, but I do not know what is being taught. When I made a warning like this:

  var result = jQuery.parseJSON (data.result); Warning (result)   

I was getting empty but I do not know why.

Any help is appreciated how to read it or why the result of the parsed JSON results in my return string is data in it!

Thank you! I finally got the solution and it is an issue because IE XHR does not support uploading. By looking at this post, you can get an extension explanation of this:

It did not quite solve my needs however because that code only worked for IE and I Need to work in browsers? I would like to update my code a little bit and if you accept the answer here:

How do you upload an XHR type to handle a JSON response from IE Will get out!

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -