struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From holod <serega.shey...@gmail.com>
Subject Re: <s:a dojo-anchor, parse result, output it and then execute JS
Date Mon, 28 Jul 2008 12:05:47 GMT

Thanks! I've read manual you gave me and I've decided to use 

	documentTitle


I've excluded one property, the final result looks like:
{"resultOfAction":"Error appeared.Please call support service."}

I don't know how to put away "key" (resultOfAction), { and }, also I don't
need quotes and :.

And the second question:
How is it possible to execute my own JS script  right after <s:a/>
execution?


newton.dave wrote:
> 
> --- On Mon, 7/28/08, holod <serega.sheypak@gmail.com> wrote:
>> I want to do this thing:
>> 1.catch result, parse it and get value of only one public
>> get*() method.
>> 2.write it (targets attribute is specified). Seems like I
>> just need to
>> override data accept functionality
>> 3.Execute JS script. This script will blur
>> targets"" and then delete them.
>> 
>> Please, tell me, how can parse data from action and then
>> execute script?
> 
> Why not just use the "includeProperties" param? Or specify a root object?
> 
> http://cwiki.apache.org/S2PLUGINS/json-plugin.html
> 
> The result comes back in JSON: that's a JavaScript question, not Struts. 
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%3Cs%3Aa-dojo-anchor%2C-parse-result%2C-output-it-and-then-execute-JS-tp18688029p18688940.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message