<response name="success" type="none" />is that what you are looking for ?

On Tue, Jul 3, 2012 at 9:50 PM, Robert G. <[email protected]> wrote:

> hey guys,
>
> I use javascript to do some things. To get a consistent status of the user
> preferences I want to store some variables in the session object.
>
> I created java methods to check if the session key exists, to store a value
> or to remove them.
>
> With an ajax call I call the java method with the way over the
> controller.xml. That works. But now I get the respons like:
>
> <response name="isInSession"... />
> <response name="isNotInSession" ... />
>
> I dont want to call with them a view, I want to get a response directly
> like
> a callback to my ajax request. Is that possible? Which type etc. I use in
> the response?
>
> I want to check in the ajax "success" sth. like:
>
> /
> if (...isInsession) {
>  do this
> } else {
>  do sth else
> }/
>
> I know, that I can do the not that nice way, by calling a view, and request
> it from the header in the callback...but I hope this is going more easy :)
>
> btw. I checked a lot of posts in that forum, but couldnt find a good answer
> for me (maybe cause its not possible)
>
> pleeeeaasse help :)
>
> Robert
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Response-from-java-Method-to-client-Ajax-call-tp4634402.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [email protected]
> Mobile: +91 9910322604
>
>

Reply via email to