Re: Ajax call not working with X-editable

2022-02-14 Thread Sujata Aghor
> > You must send in all post and ajax post everytime CSRF Token. Please try > it. > Yes ..Yes .. I am sending a csrf token. > When you send it which response you get from django? ajax call is not getting called only. The same ajax call is working for other use cases, but not getting called when

Re: Ajax call not working with X-editable

2022-02-14 Thread Sebastian Jung
Hello, You must send in all post and ajax post everytime CSRF Token. Please try it. When you send it which response you get from django? Regards Sujata Aghor schrieb am Mo., 14. Feb. 2022, 07:03: > Hello Django lovers, > > I am trying to use inline edit using X-editable >

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
https://meet.google.com/pns-vbmz-sys On Wed, Nov 24, 2021 at 12:08 AM DJANGO DEVELOPER wrote: > okay > > > On Wed, Nov 24, 2021 at 12:04 AM Duncan Santiago < > duncansantiag...@gmail.com> wrote: > >> let's try google meet. >> >> On Tue, 23 Nov 2021 at 11:39, DJANGO DEVELOPER >> wrote: >> >>> ca

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
okay On Wed, Nov 24, 2021 at 12:04 AM Duncan Santiago wrote: > let's try google meet. > > On Tue, 23 Nov 2021 at 11:39, DJANGO DEVELOPER > wrote: > >> can I have you on anydesk or any meeting tool? >> >> On Tue, Nov 23, 2021 at 11:31 PM Duncan Santiago < >> duncansantiag...@gmail.com> wrote: >

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
let's try google meet. On Tue, 23 Nov 2021 at 11:39, DJANGO DEVELOPER wrote: > can I have you on anydesk or any meeting tool? > > On Tue, Nov 23, 2021 at 11:31 PM Duncan Santiago < > duncansantiag...@gmail.com> wrote: > >> send me your code then, >> or GitHub repo handle. >> >> On Tue, 23 Nov 20

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
can I have you on anydesk or any meeting tool? On Tue, Nov 23, 2021 at 11:31 PM Duncan Santiago wrote: > send me your code then, > or GitHub repo handle. > > On Tue, 23 Nov 2021 at 11:27, DJANGO DEVELOPER > wrote: > >> sorry if you get offended because I need a solution. a working solution. >>

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
send me your code then, or GitHub repo handle. On Tue, 23 Nov 2021 at 11:27, DJANGO DEVELOPER wrote: > sorry if you get offended because I need a solution. a working solution. I > am not familiar with javascript. so getting a lot of issues > > On Tue, Nov 23, 2021 at 10:38 PM Duncan Santiago < >

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
sorry if you get offended because I need a solution. a working solution. I am not familiar with javascript. so getting a lot of issues On Tue, Nov 23, 2021 at 10:38 PM Duncan Santiago wrote: > your page also reloads and results may not be displayed on your frontend, > just add this lines on your

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
your page also reloads and results may not be displayed on your frontend, just add this lines on your onclick listerner function(e){ //notice the e parameter, it is the event parameter. e.preventDefault() your code here. } or you can just paste this on your script section (function () {

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
do a demo, enter the URL on the text area and click on the post button. Then send me the logs on the terminal running Django and also open the console and send the output, On Tue, 23 Nov 2021 at 10:21, DJANGO DEVELOPER wrote: > okay let me explain. > I have trained models which tells us that whi

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread DJANGO DEVELOPER
okay let me explain. I have trained models which tells us that which website is legitimate or which website is not legitimate. I have integrated that model with my django web app using rest api. I tested the API on postman and working. now I want to get the result on front end using HTML CSS and ja

Re: AJAX or Javascript POST request for Django form

2021-11-23 Thread Duncan Santiago
hello, am not sure what the question is. Kindly elaborate. On Tue, 23 Nov 2021 at 09:19, DJANGO DEVELOPER wrote: > I am working on a django based project in which I have integrated ML > trained models to check if a https url is legitimate or not. for this I > need javascript or ajax to call a re

Re: Ajax, jQuery and Django

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Mon, 5 Oct 2020, 1:33 pm Salima Begum, wrote: > Hi all, > I have database of zip code for

Re: Ajax, jQuery and Django

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Mon, 5 Oct 2020, 1:35 pm Salima Begum, wrote: > Hi all, > I have database of zip code for

Re: Ajax, jQuery and Django

2020-10-05 Thread Eugene TUYIZERE
https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html check this also On Mon, 5 Oct 2020 at 11:25, RANGA BHARATH JINKA wrote: > Hi, > > Check this. This may be useful for you. > > All the best > > > https://www.youtube.com

Re: Ajax, jQuery and Django

2020-10-05 Thread RANGA BHARATH JINKA
Hi, Check this. This may be useful for you. All the best https://www.youtube.com/results?search_query=django+dependent+drop+down+list+from+database On Mon, Oct 5, 2020 at 1:56 PM Kunal Solanke wrote: > Rather than sending ajax every time handle it on frontend in javascript > > On Mon, Oct 5,

Re: Ajax, jQuery and Django

2020-10-05 Thread Kunal Solanke
Rather than sending ajax every time handle it on frontend in javascript On Mon, Oct 5, 2020, 13:35 Salima Begum wrote: > Hi all, > I have database of zip code for example, > INSERT INTO pages_zip_code (id, zip, city, st) VALUES > (1, '00501', 'Holtsville', 'NY'), > (2, '00544', 'Holtsville', 'NY

Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread meli...@melindaminch.com
Hello! To answer the question about template tags in javascript, i.e. $.post("{% url 'upvote' %}", {answer_id:answerid}) I This works when your js is written in the template, as you have it, but if you ever want to move that JavaScript into a separate .js file, it will break. That’s because ri

Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread Stephen J. Butler
This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use the "arrow function" style like "() => { ...code... }" then certain variables are not bound into the function contact, including "this". https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_func

Re: Ajax + Django + jQuery + HTML5

2016-02-29 Thread 'Tom Evans' via Django users
On Sun, Feb 28, 2016 at 9:46 PM, wrote: > > I need get path to local file in for ImageField. > Next, transfer path to my view thought Ajax request, update in database and > almost all. > > I need will make it manually, for my goals. > > May be, anyone known how it make? > > I am tried already d

Re: Ajax + Django + jQuery + HTML5

2016-02-28 Thread Harlin Seritt
Usually image_file.url (assuming image_file is the name of your ImageField) should give you the full path to the local file. Not sure what you're using for your Ajax function/call though and how you have your web app set up on the REST part. On Sun, Feb 28, 2016 at 2:46 PM, wrote: > > I need get

Re: ajax POST request being sent as GET

2015-12-16 Thread Larry Martell
On Tue, Dec 15, 2015 at 11:05 PM, Simon Charette wrote: > Hi Larry, > > It's more of a JavaScript question but my first guess would be > you'd need to use the `type` option instead of `method` because > you are using an old version of jQuery? That was it. Thank you so much!! > Le mardi 15 décemb

Re: ajax POST request being sent as GET

2015-12-15 Thread Simon Charette
Hi Larry, It's more of a JavaScript question but my first guess would be you'd need to use the `type` option instead of `method` because you are using an old version of jQuery? Simon Le mardi 15 décembre 2015 17:25:12 UTC-5, larry@gmail.com a écrit : > > I am sending an ajax POST request lik

Re: ajax POST request being sent as GET

2015-12-15 Thread Neto
$.post( "ajax/test.html", function( data ) { $( ".result" ).html( data ); }); Em terça-feira, 15 de dezembro de 2015 20:25:12 UTC-2, larry@gmail.com escreveu: > > I am sending an ajax POST request like this: > > $.ajax({ > url: url, > method: 'POST', > dataType: "json", >

Re: ajax POST request being sent as GET

2015-12-15 Thread Larry Martell
On Tue, Dec 15, 2015 at 5:45 PM, Daniel Chimeno wrote: > Hello, > > This is more a jQuery issue than a Django one, but it could be because of > the quotes. > > From: http://api.jquery.com/jquery.ajax/ > > var menuId = $( "ul.nav" ).first().attr( "id" ); > var request = $.ajax({ > url: "script.p

Re: ajax POST request being sent as GET

2015-12-15 Thread Daniel Chimeno
Hello, This is more a jQuery issue than a Django one, but it could be because of the quotes. From: http://api.jquery.com/jquery.ajax/ var menuId = $( "ul.nav" ).first().attr( "id" ); var request = $.ajax({ url: "script.php", method: "POST", data: { id : menuId }, dataType: "html" });

Re: Ajax in Django

2015-09-19 Thread Martin Torre Castro
If you use jQuery (I do), making AJAX requests is incredibly easy. Just use the $.get(), $.post() or $.ajax() functions. If you have any doubt, the api.jquery.com page has all the references and information for using them (search for jQuery.get(), jQuery.post() and jQuery.ajax() ). On Monday,

Re: Ajax in Django

2015-08-31 Thread Dheerendra Rathor
Ajax are just normal HTTP requests. You can write a view in your code which returns data from db. If it is a post requests then make sure you're adding "csrfmiddlewaretoken" in the ajax data. On Mon, 31 Aug 2015 at 19:30 jasir1903 wrote: > How to retrive Data from Db in Django to Template using

Re: ajax philosophy

2015-02-12 Thread Aaron Reabow
Okay great, thanks. I wrote a basic view, and it seems to do the job. So far so good :) I know (of) DRF, but not tastypie - will have a look. thanks again for the help On Thursday, 12 February 2015 11:37:36 UTC+2, Avraham Serour wrote: > > in my opinion no, it actually makes sense to have an A

Re: ajax philosophy

2015-02-12 Thread Avraham Serour
in my opinion no, it actually makes sense to have an API with its own routes and views. I suggest you take a look at tastypie or DRF On Thu, Feb 12, 2015 at 10:17 AM, Aaron Reabow wrote: > I would like to separate out my ajax requests into their own views (one > per page, is what I am thinking)

Re: Ajax post problem

2014-04-17 Thread Jonathan Querubkna
Or: var dataForm = new FormData( $("form")[0] ); That way you can send even file fields. Serialize do not support file fields AFAIK Jonathan Diretor de Tecnologia +55(12)98864-1594 Sent from my iPhone > On Apr 17, 2014, at 17:25, Joseph Mutumi wrote: > > You could try using $("form").serial

Re: Ajax post problem

2014-04-17 Thread Joseph Mutumi
You could try using $("form").serialize() to get the form inputs in the ajax data. But from the URL it looks like your HTML is somehow rendering badly. The form action is coming out as '/newmarkets/search/ method=' Kind regards On 4/17/14, willyhakim wrote: > Hi everyone? > > I am trying to use

Re: Ajax Request on Admin Edit Form

2014-03-05 Thread Camilo Torres
On Wednesday, March 5, 2014 8:18:03 AM UTC-4:30, Jonathan Querubina wrote: > > How can i edit the Admin Default Edit Form on django to insert my custom > JS on the page? > I mean, when i am editing a model, i need to insert some JS code on it > Is this possible? > Hello, See if this may help:

Re: AJAX - Class Based View or Function Based View?

2013-08-29 Thread Lee Hinde
On Wed, Aug 28, 2013 at 11:51 PM, Sarthak Dev wrote: > I'm working on an app which uses a lot of AJAX requests. Having previously > used FBVs for handling ajax and returning JSON, how efficient will it be to > use a CBV for the same? I read the django docs and found > mixins

Re: AJAX - Class Based View or Function Based View?

2013-08-29 Thread Jonathan Baker
I feel like FBV vs CBV is partially a matter of taste. If your app is AJAX-heavy though, why not use one of the proper API frameworks like http://django-rest-framework.org/ or http://django-tastypie.readthedocs.org/en/latest/ ? On Thu, Aug 29, 2013 at 12:51 AM, Sarthak Dev wrote: > I'm working o

Re: ajax and django

2013-07-26 Thread Lucas Magnum
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax []'s Lucas Magnum. 2013/7/26 Lucas Magnum > Are you passing crsf_token in ajax post? > > []'s > > Lucas Magnum. > > > 2013/7/26 heni yemun > >> Hi, >> I'm trying to get a django project interact with ajax based site. The >> problem

Re: ajax and django

2013-07-26 Thread Lucas Magnum
Are you passing crsf_token in ajax post? []'s Lucas Magnum. 2013/7/26 heni yemun > Hi, > I'm trying to get a django project interact with ajax based site. The > problem is that when i use the send function to send a POST data > asynchronously the django app returns a 500 code and the server d

Re: Ajax

2013-06-30 Thread Christian Schmitt
Every Framework supports Ajax. But as i already mentioned and as already talked about in the django-developers, the support of serialization and other things is really really crappy and needs to be fixed. Especially SPA sites needs some love. I mean in the core Django is cool, and since the new

Re: Ajax

2013-06-29 Thread Russell Keith-Magee
On Sat, Jun 29, 2013 at 11:51 PM, Gamesbrainiac wrote: > Sorry, was on a mobile phone. Let me give you exact link, please excuse me > being a little stupid. > > https://code.djangoproject.com/wiki/AJAX -> First line, "Django does not > natively support Ajax". > That comment is on the wiki. The wi

Re: Ajax

2013-06-29 Thread Christian Schmitt
It would be great if serializers also supports a single object, that would make ajax requests better and / or json support for forms. like that: serializers.serialize('json', object) and not [object] and then i need to strip the [] tags. also the serializers is really hard to use to make more obj

Re: Ajax

2013-06-29 Thread Gamesbrainiac
Sorry, was on a mobile phone. Let me give you exact link, please excuse me being a little stupid. https://code.djangoproject.com/wiki/AJAX -> First line, "Django does not natively support Ajax". Now, this was weird, because I've seen others use Ajax with Django, for example in this tutorial: https

Re: Ajax

2013-06-29 Thread mulianto
Hi, Django can serve Ajax request from any client. Some ajax APP sent json format data to the client some APP just sent partial view to the client as ajax update. Which ever your choise to use with django, it can be done. I have the second type ajax APP, serve from django APP and update the p

Re: Ajax

2013-06-29 Thread Christophe Pettus
It's also not clear to me what "(not) supporting Ajax" would even mean. Ajax just sends HTTP requests, and the server responds to them (usually with JSON structures). I have tons of Ajax applications that use Django as the backend, so if it doesn't support it, no one tell that code lest it sto

Re: Ajax

2013-06-29 Thread Russell Keith-Magee
Can you provide a little more direction than "The website"? "The website" is a kinda big place… :-) Yours, Russ Magee %-) On Sat, Jun 29, 2013 at 2:08 PM, Gamesbrainiac wrote: > Then why does itsay on the website that Django does not support Ajax > natively? > On Jun 29, 2013 12:03 PM, "Russell

Re: Ajax

2013-06-28 Thread Gamesbrainiac
Then why does itsay on the website that Django does not support Ajax natively? On Jun 29, 2013 12:03 PM, "Russell Keith-Magee" wrote: > > I'm not sure what you mean. Django completely supports AJAX right now. > > Django is a server-side framework, and the only part of AJAX that is > server-side i

Re: Ajax

2013-06-28 Thread Russell Keith-Magee
I'm not sure what you mean. Django completely supports AJAX right now. Django is a server-side framework, and the only part of AJAX that is server-side is the API call. An API call is just a view that returns JSON/XML instead of HTML. You can write that right now in Django. If you want a library

Re: ajax get json not receive data from django

2013-05-17 Thread Christian Schmitt
Its better to use json instead of simplejosn : json.dumps() also csrf shouldn't be your case else you would've get an 405 error. 200 requests are fine, what does firebug says about the request? normally there would be a tab called json where you could see the values that got through the request

Re: ajax get json not receive data from django

2013-05-16 Thread Alex Chiaranda
aren't you missing the csrf_token ? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax On Thursday, May 16, 2013 8:53:36 AM UTC-3, Hai Nguyen wrote: > > Thanks you for your answer. > I'm trying to change mimetype="application/json; charset=utf-8" but could > not resolve problem > > On

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
Hi, You should change the mimetype on HttpRequest from mimetype="application/ javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". On Wednesday, May 15, 2013 7:54:43 PM UTC+3, Hai Nguyen wrote: > > Hello All, > > I use django 1.4 run on ubutu. > I'm trying to use jquery/ajax

Re: ajax get json not receive data from django

2013-05-16 Thread Hai Nguyen
Thanks you for your answer. I'm trying to change mimetype="application/json; charset=utf-8" but could not resolve problem On Thursday, May 16, 2013 3:02:52 PM UTC+7, Zoltán Bege wrote: > > I mean HttpResponse. Sorry! :) > > Hi, >> >> You should change the mimetype on HttpResponse from mimetype="

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
I mean HttpResponse. Sorry! :) Hi, > > You should change the mimetype on HttpResponse from mimetype="application/ > javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: ajax get json not receive data from django

2013-05-15 Thread Hai Nguyen
On Wednesday, May 15, 2013 11:54:43 PM UTC+7, Hai Nguyen wrote: > > Hello All, > > I use django 1.4 run on ubutu. > I'm trying to use jquery/ajax to display data returned from a django > method. > > *my file views.py* > > from django.http import HttpResponse, Http404, HttpResponseRedirect > from

Re: ajax

2012-12-20 Thread Ehab Ahmed
hello see this tutorial : http://www.pythondiary.com/tutorials/django-and-ajax-jquery.html From: Randa Hisham To: django-users@googlegroups.com Sent: Wednesday, December 19, 2012 2:11 PM Subject: ajax hey, if i wana use ajax in my django project could i

Re: ajax

2012-12-20 Thread Joey "JoeLinux" Espinosa
Sorry, accidentally sent the email before the link: http://therealjoelinux.blogspot.com/2011/11/making-ajax-calls-in-django-using-dojo.html *Joey "JoeLinux" Espinosa* Software Developer http://about.me/joelinux On 12/20/2012 06:18 AM, Joey "JoeLinux" Espinosa wrote: Randa, You really could us

Re: ajax

2012-12-20 Thread Joey "JoeLinux" Espinosa
Randa, You really could use any AJAX library you want. AJAX is just a front-end web request, so as long as you've provided Django a way to "catch" that request (a URL in urls.py, a view in views.py, etc), then there should be no problem. Here's a rudimentary example for running a Python scri

Re: ajax

2012-12-19 Thread jirka . vejrazka
Yes -Original Message- From: Randa Hisham Sender: django-users@googlegroups.com Date: Wed, 19 Dec 2012 13:11:35 To: Reply-To: django-users@googlegroups.com Subject: ajax hey, if i wana use ajax in my django project could i use jquery or dajax liberary -- Randa Hesham Software Develope

Re: ajax loading html

2012-07-14 Thread Tomas Neme
On Sat, Jul 14, 2012 at 2:11 PM, ledzgio wrote: > If I use the TemplateViews method, should I have to set anything on the > views.py? and how can I point that file from template? the TemplateView is a view, it's already been written for you, so you can use it without adding anything new. If you w

Re: ajax loading html

2012-07-14 Thread ledzgio
If I use the TemplateViews method, should I have to set anything on the views.py? and how can I point that file from template? thanks Il giorno sabato 14 luglio 2012 18:34:15 UTC+2, Tomas Neme ha scritto: > > an "html page" can't be located within the templates directory, an > HTML file might,

Re: ajax loading html

2012-07-14 Thread ledzgio
Thanks for your response. What I want to do is to make use of this qtip2 feauture http://craigsworks.com/projects/qtip2/demos/#ajax where I pass a certain HTML file to render into the tip. I would prefere to manage it through django because I can have models data into the HTML file to render c

Re: ajax loading html

2012-07-14 Thread Tomas Neme
an "html page" can't be located within the templates directory, an HTML file might, but what is it you want to do, exactly? you want to render a static file? does it make sense going through django for this? URLs point to views, not templates, the views are which decide what templates to use (the

Re: ajax loading html

2012-07-14 Thread ledzgio
It is for showing an HTML page with qtips2 as ajax tip. Are there any other solutions for this? Il giorno venerdì 13 luglio 2012 16:40:48 UTC+2, Daniel Svonava ha scritto: > > Hi, > > If this is just a one-off thing, the simplest way might be just symlinking > that html file to a folder where yo

Re: ajax loading html

2012-07-13 Thread Daniel Svonava
Hi, If this is just a one-off thing, the simplest way might be just symlinking that html file to a folder where you serve your static assets from (e.g. page_media). Cheers, Daniel On Thursday, July 12, 2012 11:19:07 PM UTC+2, ledzgio wrote: > > Hi, > > I have to load with ajax (using qtip2) a

Re: ajax call says: "NetworkError: 500 INTERNAL SERVER ERROR - http://127.0.0.1:8000/ajax/"

2012-05-05 Thread doniyor
great, thanks man. i didnot see it. Am Samstag, 5. Mai 2012 09:50:37 UTC+2 schrieb Alexandr Aibulatov: > > Your view should return an HttpResponse Object. Your view prints > 'test' and returns NoneType Object. > Yours view should be like this: > > from django.http import HttpResponse > > d

Re: ajax call says: "NetworkError: 500 INTERNAL SERVER ERROR - http://127.0.0.1:8000/ajax/"

2012-05-05 Thread Alexandr Aibulatov
Your view should return an HttpResponse Object. Your view prints 'test' and returns NoneType Object. Yours view should be like this: from django.http import HttpResponse def ajax(request): return HttpResponse('test', mimetype="text/plain") 2012/5/5 doniyor : > hi there, > i have a small pr

Re: Ajax/jquery .load() unresponsive via django html templating, or FF/chrome

2012-03-20 Thread Eli_West
Thanks, I think I did read the page that recommends adding a script and did so but no help there. I'll doublecheck but it just seems like there is not very much info on this topic. Is it safe to say that somehow having django templating in the middle is causing xss issues to0? Extra content from .

Re: Ajax/jquery .load() unresponsive via django html templating, or FF/chrome

2012-03-20 Thread Tom Evans
On Mon, Mar 19, 2012 at 6:52 AM, Eli_West wrote: > 2 potential issues I've been trying solve: > > 1) Django csrf or other mechanism is blocking ajax and jquery .load() > > […] Are you following the advice laid out in the Django manual on AJAX And CSRF? Cheers Tom -- You received this message

Re: AJAX + CSRF only works on Chrome, but not on Firefox and Safari.

2011-11-20 Thread Jesse Heitler
When I was debugging a similar problem the most helpful test I ran was to isolate the problem to either the client or the browser by configuring the server logs to show if the cookies we actually sent. I did this by reconfiguring my Apache logs (I think), but I'm not sure how to do that with the ru

Re: AJAX + CSRF only works on Chrome, but not on Firefox and Safari.

2011-11-17 Thread Kyu
@Jesse Heitler: I don't use an underscore in my domain name. @Tom Evans: I'm just running the website locally (localhost:8000) using "runserver" command. I set the Firefox preference to allow 127.0.0.1 cookies, but it still gives an 403 error. Thanks, Kyu On Nov 17, 6:10 am, Tom Evans wrote:

Re: AJAX + CSRF only works on Chrome, but not on Firefox and Safari.

2011-11-17 Thread Tom Evans
On Thu, Nov 17, 2011 at 9:40 AM, Kyu wrote: > Hi, I'm doing very basic AJAX operation using Django 1.3.1. > > 1) First of all, I copied the AJAX + CSRF snippet (https:// > docs.djangoproject.com/en/1.3/ref/contrib/csrf/#ajax) to my *.js file > loded by the every HTML page. > > 2) HTML defines the

Re: AJAX + CSRF only works on Chrome, but not on Firefox and Safari.

2011-11-17 Thread Jesse Heitler
This is a long shot, but do you happen to have an underscore in your domain name? Some browsers choke on that character and refuse to return cookies. -Jesse On Nov 17, 9:40 am, Kyu wrote: > Hi, I'm doing very basic AJAX operation using Django 1.3.1. > > 1) First of all, I copied the AJAX + CSRF

Re: Ajax replacement in django

2011-10-17 Thread Kevin
Just a simple thought, if you'd prefer to avoid JavaScript/client-side scripting entirely, and only code using Python. It might be an idea to look at Pyjamas to generate your page. It technically uses Ajax, but from the programmers point of view, it feels more like coding a desktop application.

Re: Ajax replacement in django

2011-10-14 Thread Phang Mulianto
ajax use usualy load a div part of html with new content fetch from the server when user do something,like click a submit button. and django process the request as a simple usual request. i have using prototype+scriptocolous for the simple syntax to make an ajax form. i see the jquery version also

Re: Ajax replacement in django

2011-10-14 Thread Babatunde Akinyanmi
>From what Iankesh said initially, I think he is having problems using ajax to load part of a page not ajax as a whole. Iankesh, it is possible to load only a portion of a page with ajax. On 10/13/11, Sells, Fred wrote: >> On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote: >> >  I am developing a

RE: Ajax replacement in django

2011-10-13 Thread Sells, Fred
> On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote: > >  I am developing a web application where i need ajax like features. > > But I don't want to use ajax, so my question is- "is there any way to > > perform ajax like functions in django?" > Use Flex, it's easier. -- You received this message

Re: Ajax replacement in django

2011-10-12 Thread Russell Keith-Magee
A good thing you did. For everyone's benefit -- this kind of language and sentiment *will not* be tolerated on django-users. If you can't keep a civil tongue, you will be asked to leave. Yours, Russ Magee %-) On Wed, Oct 12, 2011 at 11:32 PM, Chandrakant Kumar wrote: > > I am sorry everybody and

Re: Ajax replacement in django

2011-10-12 Thread Micky Hulse
On Wed, Oct 12, 2011 at 9:54 AM, Chandrakant Kumar wrote: > But, isn't HTML5 is still work in progress? I mean, how will it behave on > older browsers? Good point. I guess it depends on the requirements of the project. >From what I read, this sounds like a school project, so why not take the tim

Re: Ajax replacement in django

2011-10-12 Thread Sultan Imanhodjaev
Hello, Did you look at dajax and dajaxice extensions for django so far? It might help. On Oct 12, 2011 10:40 PM, "lankesh87" wrote: > thank you all for your support. > I learnt my lessons. > I have to go back to AJAX. > > Thank you again I really needed your help. > > I guess I'll be hanging aro

Re: Ajax replacement in django

2011-10-12 Thread Chandrakant Kumar
But, isn't HTML5 is still work in progress? I mean, how will it behave on older browsers? On 10/12/2011 10:10 PM, Micky Hulse wrote: On Wed, Oct 12, 2011 at 7:39 AM, lankesh87 wrote: Actually my project guide is asking me to search for ajax replacement in django. So that way we dont have to

Re: Ajax replacement in django

2011-10-12 Thread lankesh87
thank you to all for your support. I learnt my lessons. I have to go back to AJAX. Thanks again for your help. It was much needed. On Oct 12, 8:42 pm, william ratcliff wrote: > I think the OP should ask his manager why they wish to avoid using ajax. > For example, is it sufficient if the page de

Re: Ajax replacement in django

2011-10-12 Thread Micky Hulse
On Wed, Oct 12, 2011 at 7:39 AM, lankesh87 wrote: > Actually my project guide is asking me to search for ajax replacement > in django. So that way we dont have to use ajax. Perhaps it's a trick question? Maybe you project guide does not like the "Ajax" buzzword? :) Just call it XHR:

Re: Ajax replacement in django

2011-10-12 Thread lankesh87
thank you all for your support. I learnt my lessons. I have to go back to AJAX. Thank you again I really needed your help. I guess I'll be hanging around as I am starting to like python and django. On Oct 12, 8:42 pm, william ratcliff wrote: > I think the OP should ask his manager why they wish

Re: Ajax replacement in django

2011-10-12 Thread william ratcliff
I think the OP should ask his manager why they wish to avoid using ajax. For example, is it sufficient if the page degrades gracefully for those not running javascript? On Wed, Oct 12, 2011 at 11:40 AM, Tom Evans wrote: > On Wed, Oct 12, 2011 at 3:24 PM, Javier Guerra Giraldez > wrote: > > On We

Re: Ajax replacement in django

2011-10-12 Thread Kurtis Mullins
You could also use Javascript to just hide and display information as you need it. No Ajax involved -- just need to give all of the data to the browser up front. On Wed, Oct 12, 2011 at 11:38 AM, Javier Guerra Giraldez wrote: > On Wed, Oct 12, 2011 at 9:39 AM, lankesh87 wrote: > > I mean if we

Re: Ajax replacement in django

2011-10-12 Thread Tom Evans
On Wed, Oct 12, 2011 at 3:24 PM, Javier Guerra Giraldez wrote: > On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote: >>  I am developing a web application where i need ajax like features. >> But I don't want to use ajax, so my question is- "is there any way to >> perform ajax like functions in djan

Re: Ajax replacement in django

2011-10-12 Thread Javier Guerra Giraldez
On Wed, Oct 12, 2011 at 9:39 AM, lankesh87 wrote: > I mean if we could only refrsh particular part in our web page without > refreshing the whole page "using django". i think you really need to check how HTTP works. in HTTP, the server can't "push" anything to the browser. the browser has to as

Re: Ajax replacement in django

2011-10-12 Thread Brian Schott
This is a bit old-school, but you could do this by using meta-refresh on a frame. I think that should still work in most browsers. http://en.wikipedia.org/wiki/Meta_refresh Basically, you can place an iframe inside your base.html template that includes an link to your dynamic content. htt

Re: Ajax replacement in django

2011-10-12 Thread Chandrakant Kumar
I am sorry everybody and especially lankesh87, I should not have used those words. I had just got into an argument with my dean. Sorry again. On 10/12/2011 08:25 PM, Donald Stufft wrote: I don't think there's any reason to insult anyone, let's be civil. On Wednesday, October 12, 2011 at 10:5

Re: Ajax replacement in django

2011-10-12 Thread lankesh87
As far I can understand from ur opinions is that to load contents without refreshing the web page we will have to use ajax and as python being server side scripting language will not be helpful in this case. So anyhow I will have to use ajax.. do correct me if i'm wrong.. once again thank u all f

Re: Ajax replacement in django

2011-10-12 Thread Phang Mulianto
but for the web html standart you need ajax. maybe you can use some javascript framework like prototype+scripatoulus or jquery to simply work with ajax and browser compatibility issue. On Oct 12, 2011 10:55 PM, "Donald Stufft" wrote: > I don't think there's any reason to insult anyone, let's be

Re: Ajax replacement in django

2011-10-12 Thread Donald Stufft
I don't think there's any reason to insult anyone, let's be civil. On Wednesday, October 12, 2011 at 10:50 AM, Chandrakant Kumar wrote: > > You are another 'garbage' product of our country's shitty education system. > > On 10/12/2011 08:09 PM, lankesh87 wrote: > > Actually my project guide i

Re: Ajax replacement in django

2011-10-12 Thread Markus Gattol
If you don't want to do AJAX but still need to have a bidirectional link between client and server then websockets is probably what you want. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://grou

Re: Ajax replacement in django

2011-10-12 Thread Chandrakant Kumar
You are another 'garbage' product of our country's shitty education system. On 10/12/2011 08:09 PM, lankesh87 wrote: Actually my project guide is asking me to search for ajax replacement in django. So that way we dont have to use ajax. I mean if we could only refrsh particular part in our web

Re: Ajax replacement in django

2011-10-12 Thread lankesh87
Actually my project guide is asking me to search for ajax replacement in django. So that way we dont have to use ajax. I mean if we could only refrsh particular part in our web page without refreshing the whole page "using django". Thanx in advance and pardone me for my foolish questions as i am

Re: Ajax replacement in django

2011-10-12 Thread Javier Guerra Giraldez
On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 wrote: >  I am developing a web application where i need ajax like features. > But I don't want to use ajax, so my question is- "is there any way to > perform ajax like functions in django?" that kind of specifications (ajax-like but no ajax) sound very

Re: ajax select box

2011-05-14 Thread gusheng
i've written something similar to Dajax.. but i don't think that's a good solution.. and i'll not use it in my new project.. it goes the opposite of django philosophy..to design url explicitly.. url should be well mantained.. ..and can be used as an api..as similar as possible i thought.. On 5月9日

Re: ajax cart

2011-05-09 Thread nederhoed
Hi Pasha, 1. Try using a dict instead of a list: data = { 'items': [{'id':'2','quant':3},{'id':4','quant':1}] } 2. could you provide the relevant part of the view? I expect something like: from django.http import HttpResponse from django.utils import simplejson def update_cart(request):

Re: ajax select box

2011-05-09 Thread Goodwin
I've used "Django smart selects" recently for what you want to do and it worked well - https://github.com/digi604/django-smart-selects Goodwin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@go

Re: ajax cart

2011-05-09 Thread Oleg Lomaka
you your answer object is 'data', for example, then data[0].id data[0].quant On Mon, May 9, 2011 at 1:56 PM, Паша Тявин wrote: > Hello. I'm newbie and trying to make a simple shopping cart using anonymous > session under ajax control. > I have a special url "/update_cart/" for only post request

Re: ajax select box

2011-05-08 Thread Ogi Vranesic
Hallo You can use Dajax(ice) to solve your issue. First Dajax and Dajaxice must be installed. In your select box for countries add event 'onchange' i.e.: onchange="Dajaxice.ajax.getCitiesByCountry('Dajax.process', {'name':this.name, 'value':this.value})"> According to this example you must have

Re: ajax select box

2011-05-08 Thread pankaj sharma
but i dont know about jquery or ajax, can i get any example from any site , can u provide any link which has such code written On May 7, 12:10 pm, Shawn Milochik wrote: > You'll need to write JavaScript. > > Specifically: > >      Write a function that uses AJAX to pass the state to a Django view

  1   2   3   >