Bear Bibeault wrote:
Todd Smith wrote:My Spring control is returning a Java listarray of objects.
No it's not. It can't. An HTTP response can only be text. Is it perhaps returning JSON or some other format? You are going to need to get your data transfer straight before any kind of progrss can be made.
Bear Bibeault wrote:That obviously means that the URL is malformed. What's your next step?
(Hint: page-relative URLs are death in a web application.)
Bear Bibeault wrote:You're not using a JavaScript debugger?
![]()
Download the Firebug plugin for Firefox. All of the other modern browsers have built-in debuggers.
Use the debugger to look at the Ajax request/response.
Bear Bibeault wrote:The mostly likely cause of that is the response is not being returned correctly. What you have you done to look at the status and body of the response?
Bear Bibeault wrote:"doesn't work" doesn't tell me anything useful. What is happening?
Bear Bibeault wrote:
jq.load('ajax-add-page1.jsp',data);
This is not the correct way to use the .load() method. It's a jQuery method, not a utility function. It must be called on a selector that identifies the element into which the response will be injected.