Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE9 problem with the onComplete() in FUB #25

Open
sebastiansulinski opened this issue Nov 5, 2012 · 3 comments
Open

IE9 problem with the onComplete() in FUB #25

sebastiansulinski opened this issue Nov 5, 2012 · 3 comments

Comments

@sebastiansulinski
Copy link

I'm constantly getting the boolean 'false' with the third parameter of the onComplete() method : responseJSON.success in IE9 (which is the only version of IE I'm testing in).

I'm using the basic version of the plugin and the ajax returns from within the PHP:

try {

// code processing upload
echo json_encode(array('success' => true, 'content' => $image));

} catch (Exception $e) {
$message = $e->getMessage();
echo json_encode(array('success' => false, 'error' => $message));
}

It works fine in Firefox, Chrome etc. - it's just IE that fails.

Is there a problem with the onComplete() method and IE?

@sebastiansulinski
Copy link
Author

Should I postpone the response a few milliseconds for IE to get it right? I remember one of the plugins I was trying in the past mentioned that IE needs a few milliseconds delay to get the response.

@sebastiansulinski
Copy link
Author

I seem to have found the problem, but still don't quite know how to resolve it.
The responseJSON contains the image tag, which seem to break the code in IE.
Any idea?

@miguelmanzano
Copy link

I don't know if you got solved your problem with onComplete.

I was having a similar error, and I got solved it. Adding on response headers content-type text/html instead of application/json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants