Jquery ajax call not working with relative and absolute urls?

Code on your server (link you provided) is not the same as the one you have posted in your question. Code there has error: SCRIPT1009: Expected '}' meaning that you are missing } from your javascript.

Code on your server (link you provided) is not the same as the one you have posted in your question. Code there has error: SCRIPT1009: Expected '}' meaning that you are missing } from your javascript. Line: // bonus: how to access the download link comments out the rest of javascript as you have not switched it to a new row.

This commented js includes some code and closing braces. You should add newline after this comment. This is why you have javascript error and your browser never calls server.

And your parameter should be 'APP_002', not just APP_002 When you fix this, you will probably be able to make request, but if not, we can check for any other errors when you do this.

– Kugathasan Abimaran Nov 11 at 12:39 @KugathasanAbimaran I have updated my answer. – Goran Obradovic Nov 11 at 12:45 Thank, Ive removed the commented line. – Kugathasan Abimaran Nov 11 at 13:19 Is it working now?

Can you format your script nicely on the server so it can be debugged? You should probably use some text editor which suports converting line feeds from windows to unix format before uploading to server. – Goran Obradovic Nov 11 at 13:23.

I think the problem is you're passing APP_002 using the data parameter, which is equivalent in this case to the querystring. Looking your comments on the OP, you need to actually pass it in directly in the URL so that the request is routed correctly on the server, like this: $. Ajax({ type: "GET", url: "59.163.254.24:4287/wap/retrieve/hanset/d..."" rel="nofollow">59.163.254.24:4287/wap/retrieve/hanset/d..., async: false, // rest of your code... }); Example: http://59.163.254.24:4287/wap/retrieve/hanset/data/?

APP_002 -> page not found 59.163.254.24:4287/wap/retrieve/hanset/d... -> JSON response.

No improvements, how can I make sure, my ajax call is working..? – Kugathasan Abimaran Nov 11 at 13:01 Check the console or Firebug for errors. – Rory McCrossan Nov 11 at 13:02 I check with Developer tool in chrome, and I got, Uncaught SyntaxError: Unexpected end of input. How to find on which line?

– Kugathasan Abimaran Nov 11 at 13:10.

Actually, there is not a problem with the code you provided. Here is jsfiddle: jsfiddle.net/fHtcc/1/ However, there must be an issue with APP_002 (if it is not something defined) or Jquery is not included to page.

I have tried replacing that with a string 'APP_002' but you cannot call his server from jsfiddle because of same origin policy. However, his code on his site is not the same he posted here (it is all in one long line there). – Goran Obradovic Nov 11 at 12:43 @GoranObradovic : I've corrected the url, have a look!

– Kugathasan Abimaran Nov 11 at 13:12 description The server encountered an internal error () that prevented it from fulfilling this request. Exception java.lang. ClassCastException: clojure.lang.

Var$1 cannot be cast to clojure.lang. IFn hms.appstore.wap.Core. Service(Unknown Source) – Goran Obradovic Nov 11 at 13:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions