-
Notifications
You must be signed in to change notification settings - Fork 20
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
Example for a URL data events #11
Comments
in fact, the code
interpret sJsonStr as an object and not like a string... |
code which OK :
|
Hello @elecoest,
is equivalent to
If response is returned with status code 404, fail callback is executed. parsererror occurs when text is sent with status code 200. I will add a condition to check whether returned value is string. But Calendar is rendered, view is not affected. Please share details of HTTP status code and response body and console error because rather than workaround I can improve plugin. |
Response is OK :)
The error provide for the type of response. In my case it's an object JSON
not a stringify... So for me and with a page wich return a simple array of
json it's not OK by URL.
Like as say it's OK with an inclusion of my ajax call in a function...
2017-06-30 19:05 GMT+02:00 Neha Kadam <[email protected]>:
… Hello @elecoest <https://github.com/elecoest>,
$.getJSON( baseurl, urlparams )
.done(function(json)
{
})
.fail(function(jqXHR, status, error)
{
});
is equivalent to
$.ajax({
dataType: "json",
url: url,
data: data,
success: success
});
If response is returned with status code 404, fail callback is executed.
I have tested by sending status code 404 with text "Not Found". It worked.
parsererror occurs when text is sent with status code 200. I will add a
condition to check whether returned value is string. But Calendar is
rendered, view is not affected.
Please share details of HTTP status code and response body and console
error because rather than workaround I can improve plugin.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFGe-oEQ1L1pL60ixHaiMtmn_k4SkhHFks5sJSrEgaJpZM4OJQXU>
.
|
Hello,
Is it possible to have a example for URL events ?
In my test, i have a URL which return
It's OK but I have an erreur with a fictive URL :
Thanks
The text was updated successfully, but these errors were encountered: