Closed pmcfernandes closed 10 years ago
You are doing on form submit; it's an incorrect place because by the time the request is sent to agile, the browser takes him to the next URL.
You should preventDefault in form submit and in the success or error callback of create_contact, you should submit the form.
Hope this helps.
On Sun, Jun 29, 2014 at 3:04 AM, Pedro Fernandes notifications@github.com wrote:
Hi
I trying to save data in this website ( http://mobilenet.responsimulator.com/) using chrome and agilecrm js api. But when put my email and website click on button success or error functions is never raise.
Can someone help me here, to understand whats happing? Its a agilecrm issue?
— Reply to this email directly or view it on GitHub https://github.com/agilecrm/javascript-api/issues/1.
Its exactly i do like you says. Check this gist
https://gist.github.com/pmcfernandes/5eb66f7d982735bd9d30
I use e.preventDefault() and manual form submit.
Let me get this checked with your code.
On Sun, Jun 29, 2014 at 9:43 PM, Pedro Fernandes notifications@github.com wrote:
Its exactly i do like you says. Check this gist
https://gist.github.com/pmcfernandes/5eb66f7d982735bd9d30
I use e.preventDefault() and manual form submit.
— Reply to this email directly or view it on GitHub https://github.com/agilecrm/javascript-api/issues/1#issuecomment-47459049 .
Form submit already is about to submit and e.preventDefault is too late. You should do the handler on button click. Remaining script looks good.
Thanks.
On Sun, Jun 29, 2014 at 11:25 PM, Praveen Kumar pbx.kumar@gmail.com wrote:
Let me get this checked with your code.
On Sun, Jun 29, 2014 at 9:43 PM, Pedro Fernandes <notifications@github.com
wrote:
Its exactly i do like you says. Check this gist
https://gist.github.com/pmcfernandes/5eb66f7d982735bd9d30
I use e.preventDefault() and manual form submit.
— Reply to this email directly or view it on GitHub https://github.com/agilecrm/javascript-api/issues/1#issuecomment-47459049 .
No.
I tested it before submit this issue. And test again to confirm. Problem persist.
When i put e.preventDefault() it stop default behavior in button click like you says. This make _agile ajax works perfectly but in my case never enter in events success or error.
I have this on other agilecrm account and works. Strange. Can be my agilecrm account problem? If yes exists a way to get console.log of call without using success or error events?
Do you have the new gist with the button click handler? It should work fine.
On Mon, Jun 30, 2014 at 4:00 PM, Pedro Fernandes notifications@github.com wrote:
No.
I tested it before submit this issue. And test again to confirm. Problem persist.
When i put e.preventDefault() it stop default behavior in button click like you says. This make _agile ajax works perfectly but in my case never enter in events success or error.
I have this on other agilecrm account and works. Strange. Can be my agilecrm account problem? If yes exists a way to get console.log of call without using success or error events?
— Reply to this email directly or view it on GitHub https://github.com/agilecrm/javascript-api/issues/1#issuecomment-47516733 .
Its works now. I created a new account and works perfectly. Probably some limitations on free accounts.
Good to hear that.
On Wed, Jul 2, 2014 at 3:15 PM, Pedro Fernandes notifications@github.com wrote:
Its works now. I created a new account and works perfectly. Probably some limitations on free accounts.
— Reply to this email directly or view it on GitHub https://github.com/agilecrm/javascript-api/issues/1#issuecomment-47756537 .
Hi
I trying to save data in this website (http://mobilenet.responsimulator.com/) using chrome and agilecrm js api. But when put my email and website click on button success or error functions is never raise.
Can someone help me here, to understand whats happing? Its a agilecrm issue?