Ajax call through javascript

Ajax , HTTP Request , HTTTP Response India
  • 9 years ago

    **Hi,

    I am trying to make an HTTP Request through Javascript via Ajax.

    This javascript file is stored on to my local machine. I am trying to invoke a function in a java file which is on server.

    This method should return me an HTTTP Response back to the function in my local javascript file.

    I am able to post my request, invoke the method in java on the server (which uses Struts 2 Framework).

    However, I am not able to receive any HTTP Response into the local file variable.

    Please suggest.

    Varun **

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne