struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanley, Eric" <Eric.R.Stan...@qwest.com>
Subject RE: [struts] JSON plugin
Date Thu, 13 Mar 2008 21:31:03 GMT
Dale,
	I am using dojo, so here is the snippet that handles the
request/response:

var kw = { 
	url: url,
	mimetype: "text/json",
	method: "POST",
	load: function(responseObject, ioArgs) {
	console.debug(responseObject[0].name);  // Dump it to the
console
				
	return responseObject;
	},
	error: function(data){ 
		alert("An error occurred: " + data); 
	}, 
	timeout: 10000, 
}; 
dojo.xhrPost(kw); 

-Ryan

-----Original Message-----
From: Dale Newfield [mailto:Dale@Newfield.org] 
Sent: Thursday, March 13, 2008 3:28 PM
To: Struts Users Mailing List
Subject: Re: [struts] JSON plugin

Stanley, Eric wrote:
> I tried just printing out responseObject[i]

How in your javascript code do you convert the text of the response into
responseObject?

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message