aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes ajax call using jquery, json, struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ajax call using jquery, json, struts" Watch "ajax call using jquery, json, struts" New topic
Author

ajax call using jquery, json, struts

Aris Tan
Greenhorn

Joined: Aug 05, 2005
Posts: 13
Hi,

Based on a dropdown selection, I'm trying to make an ajax call using jquery, json



From the debugger, I can see that it is going thru this line:
String myString = new JSONObject().put("JSON", "Hello, World!").toString();

But nothing is happening on the front end, Is there anything else I need to do?

Appreciate the help.
[ April 28, 2008: Message edited by: Aris Tan ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Are you not getting the alert?

Does firebug show that the request is successfully completing?
Aris Tan
Greenhorn

Joined: Aug 05, 2005
Posts: 13
No, I'm not getting the alert. What's interesting is that I get the alert when I use '$.get'. what am I missing?

Thanks for the UBB code tag tip btw
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Use Firebug in Firefox to examine the response of the request to make sure it's valid JSON.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ajax call using jquery, json, struts
 
Similar Threads
Obtaining JSON object using params in grails REST
Populate Table Rows With Data from AJAX
Can you post data from textfields to a URL without having a <form>
jQuery - add rows to table from AJAX response
jQuery getJSON question