Re: Error at the return of an AJAX POST in DJANGO

2020-10-26 Thread Nikitha Bangalore Escorts
hmm On Monday, October 26, 2020 at 2:35:28 AM UTC+5:30 wwran...@gmail.com wrote: > Hi buddies, I have a POST request from ajax. At the backend some records > are updated in the django view, this is done fine but an error comes up and > the page isnt reloaded. > > ***This is the error:*** > >

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
HI Mac, I've changed the if statement to if(e=="OK") but the message error persist. Note: I have explore the value of the return in the webbrowser dev tools and it contains "OK" El domingo, 25 de octubre de 2020 a la(s) 21:06:00 UTC-3, Mac escribió: > In your success function, you are

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread leon.vaks
Sent from my Samsung Galaxy smartphone. Original message From: Walter Randazzo Date: 10/25/20 6:10 PM (GMT-05:00) To: django-users@googlegroups.com Subject: Re: Error at the return of an AJAX POST in DJANGO hi there, As far as I check its OK.Thanks for replay.El dom., 25

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread leon.vaks
  t.f  Sent from my Samsung Galaxy smartphone. Original message From: Walter Randazzo Date: 10/25/20 6:10 PM (GMT-05:00) To: django-users@googlegroups.com Subject: Re: Error at the return of an AJAX POST in DJANGO hi there, As far as I check its OK.Thanks for replay.El

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
In your success function, you are assigning the variable e = 'OK', so in your if statement, it appears to throw an error. If you change it to if(e=="OK"), does it work? Note the two equal signs, == . On Sun, Oct 25, 2020 at 3:29 PM Walter Randazzo wrote: > I tried with no luck. When i remove it

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
I tried with no luck. When i remove it it brings an error. El domingo, 25 de octubre de 2020 a la(s) 19:19:29 UTC-3, trebor escribió: > Walter, > > > > If your copy and paste is accurate you have too many closing brackets in > the ajax section. > > > > Try removing one of these from the

RE: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread 'Trevor Woolley' via Django users
Walter, If your copy and paste is accurate you have too many closing brackets in the ajax section. Try removing one of these from the end of the ajax section: }); From: django-users@googlegroups.com On Behalf Of Walter Randazzo Sent: Monday, 26 October 2020 9:09 AM To:

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
hi there, As far as I check its OK. Thanks for replay. El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (< rbarh...@xcaretresearch.com>) escribió: > Not sure, but looks like an extra closing bracket in line 9 of the ajax > code > > On Sunday, October 25, 2020 at 2:05:28 PM UTC-7

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
HI Macolm, I am checking out the response value in the and it shows OK in the browser dev tool . So i guess the function is not defined properly [image: image.png] El dom., 25 oct. 2020 a las 18:46, Malcolm MacKinnon () escribió: > I'm not a JS expert, but is your success function

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
I'm not a JS expert, but is your success function defined properly? if(e="OK") vs. if(e=="OK") On Sun, Oct 25, 2020 at 2:06 PM Walter Randazzo wrote: > > Hi buddies, I have a POST request from ajax. At the backend some records are > updated in the django view, this is done fine but an error

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread rbar...@xcaretresearch.com
Not sure, but looks like an extra closing bracket in line 9 of the ajax code On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote: > Hi buddies, I have a POST request from ajax. At the backend some records > are updated in the django view, this is done fine but an error