Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-02-2010, 12:51 AM   PM User | #1
mnanavati
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mnanavati is an unknown quantity at this point
Unhappy Json call returns 200 ok and 408 both

Hi,
I am trying to retrieve a JSON object from the following URL
http://server/version

When i run the following script from firebug console
>>> $.getJSON("/version",function(data){alert (data.version)});

It makes a call and displays the correct version in the alert box , but it also throws a 408.

This is the output in firebug console

>>> $.getJSON("/version",function(data){alert (data.version)});
GET https://serverurl/version 200 OK 157ms
XMLHttpRequest { readyState=1, more...}
"NetworkError: 408 Request Timeout - https://serverurl/version"


Can someone please help.

Thanks,
M
mnanavati is offline   Reply With Quote
Old 12-02-2010, 01:10 AM   PM User | #2
mnanavati
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mnanavati is an unknown quantity at this point
Ok, now its reacting differently.
From the firebug console, I get only the 200 Ok message

But when the same statemet is used from the js page , it throws the 408.

Any ideaS?
mnanavati is offline   Reply With Quote
Old 12-02-2010, 07:56 AM   PM User | #3
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,882
Thanks: 9
Thanked 291 Times in 287 Posts
Dormilich is on a distinguished road
408 is a request timeout.
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote
Reply

Bookmarks

Tags
200, 408, json call, success, timeout

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:37 AM.


Advertisement
Log in to turn off these ads.