Issue with ajax and json response

2011-07-16 Thread Jonatan Soto
Hi all, I am customizing the onePageCheckout (the anonymous part) and I found something strange. I've changed the client-side validation in order to allow the customer to only introduce the phone, cell phone or both. But on server-side I didn't change anything in the PartyContactMechMapProcs.xml y

Re: Issue with ajax and json response

2011-07-16 Thread BJ Freeman
[traditional#JF/setAnonUserLogin] finished in [105] milliseconds with response [{responseMessage=success}] it is evaluating a good lognin. this is where to debug. Jonatan Soto sent the following on 7/16/2011 10:59 AM: > Hi all, > > I am customizing the onePageCheckout (the anonymous part) and I

Re: Issue with ajax and json response

2011-07-16 Thread Jonatan Soto
Hi BJ, The setAnonuserLogin is an ECA triggered before. The problem is after it if I'm not wrong. Look at: 2011-07-16 19:44:35,399 (http-0.0.0.0-8443-2) [ ServiceDispatcher.java:599:INFO ] Sync service [traditional#JF/createUpdateCustomerAndShippingAddress] finished in [112] milliseconds with re

Re: Issue with ajax and json response

2011-07-16 Thread Jonatan Soto
Well, I did a little read on the jquery ajax documentation ( http://api.jquery.com/jQuery.ajax/) and some of my assertions were wrong. It is definitively not related to the CommonEvents#jsonResponseFromRequestAttributes. I felt stupid when I realized that the result the controller returns has noth

Re: Issue with ajax and json response

2011-07-16 Thread BJ Freeman
I believe that the UI ajax uses data supplied by ftls, no calls fron the UI access the ofbiz internals and goes through the Controller. the ajex and jazon used past the controller URI is internal to ofbiz and is not exposed to the UI. There is a Handler to deal with ajax and jason, internal to ofbi

Re: Issue with ajax and json response

2011-07-17 Thread Scott Gray
Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would be great if you could create a jira issue so this doesn't get lost. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/07/2011, at 7:56 AM, Jonatan Soto wrote: > Well, I did a little read on the jquery ajax docu

Re: Issue with ajax and json response

2011-07-17 Thread Jonatan Soto
Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 Regards, On Sun, Jul 17, 2011 at 1:34 PM, Scott Gray wrote: > Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would > be great if you co

Re: Issue with ajax and json response

2011-08-26 Thread Atul Vani
e the error message to display it to the user. I'm not sure if it will be helpful, I didn't got the problem completely either ;-) - Original Message - From: "Jonatan Soto" To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and j

Re: Issue with ajax and json response

2011-08-27 Thread Jonatan Soto
; > I'm not sure if it will be helpful, I didn't got the problem completely > either ;-) > > > - Original Message - > From: "Jonatan Soto" > To: user@ofbiz.apache.org > Sent: Sunday, July 17, 2011 5:56:10 PM > Subject: Re: Issue with ajax and json res

Re: Issue with ajax and json response

2011-08-28 Thread Jacques Le Roux
ompletely either ;-) - Original Message - From: "Jonatan Soto" To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 <https://issues.a

Re: Issue with ajax and json response

2011-08-28 Thread Jacques Le Roux
-- From: "Jonatan Soto" To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 <https://issues.apache.org/jira/browse/OFBIZ-4342>Regards,

Re: Issue with ajax and json response

2011-08-28 Thread Jonatan Soto
er.xml) >>> >>> and then use the getServerError() function >>> (used in specialpurpose/ecommerce/**webapp/ecommerce/images/** >>> profile.js) >>> to parse the JSON response, >>> then you should be able to retrieve the error message to display it

Re: Issue with ajax and json response

2011-08-28 Thread Jonatan Soto
gt;>>> >>>> (it is used in several places in ecommerce and other components' >>>> controller.xml) >>>> >>>> and then use the getServerError() function >>>> (used in specialpurpose/ecommerce/**webapp/ecommerce/images/** >>

Re: Issue with ajax and json response

2011-08-28 Thread Atul Vani
y much all one needs to check :) - Original Message - From: "Jonatan Soto" To: user@ofbiz.apache.org Sent: Saturday, August 27, 2011 3:51:58 PM Subject: Re: Issue with ajax and json response Hi Atul, I've didn't got server error messages using what you said. Probably is something wr

Re: Issue with ajax and json response

2011-08-28 Thread Atul Vani
@ofbiz.apache.org Sent: Sunday, August 28, 2011 10:47:07 PM Subject: Re: Issue with ajax and json response Jonatan, IMO, the event you invoked in your request mapping should be fixed to return error response, when they get errors. It will cause the error response to be rendered instead of the

Re: Issue with ajax and json response

2011-08-29 Thread Jacques Le Roux
tified using their ids, not so good. - Original Message - From: "Atul Vani" To: user@ofbiz.apache.org Sent: Sunday, August 28, 2011 10:47:07 PM Subject: Re: Issue with ajax and json response Jonatan, IMO, the event you invoked in your request mapping should be fixed to return

Re: Issue with ajax and json response

2011-08-29 Thread Atul Vani
are being identified using their ids, not so good. - Original Message - From: "Atul Vani" To: user@ofbiz.apache.org Sent: Sunday, August 28, 2011 10:47:07 PM Subject: Re: Issue with ajax and json response Jonatan, IMO, the event you invoked in your request mapping should be fix