Re: Allow scroll on jQuery fancy Table

2021-12-30 Thread Joel Tanko
A simple tweak I would use is to find the elements id using DEV tools and set the element{ overflow: auto } using css On Wed, Dec 8, 2021, 1:10 PM Eugene TUYIZERE wrote: > Dear Team, > > I am using jquery fancyTable in the django app but I searched everywhere > and I did not find

Allow scroll on jQuery fancy Table

2021-12-08 Thread Eugene TUYIZERE
Dear Team, I am using jquery fancyTable in the django app but I searched everywhere and I did not find how to allow the scroll bar when fancyTable is used in django. Does anyone know how to do that? This is the code I have and I what to allow scroll bar: const itemsPerPage = 12; if (100

jquery and django challenges

2021-10-16 Thread Eugene TUYIZERE
Dear all, on the code below I want to replace the code: "ajax": "nestedData.txt", with the url (a python function created) How can I do it? Please help /* Function for child row details*/ function getChildRow(data) { // `data` is the data object for the row

How send data to Django app using Javascript or JQuery? (Having trouble doing a POST)

2021-09-29 Thread cseb...@gmail.com
How send data from client Javascript to Django server? I tried the following but it didn't work. I want to read "token" cookie value and send to server but it never receives it as a valid form. Any sample working code greatly appreciated. function start_processing() {

Re: Calendar based on JS/JQuery needs to communicate with Django

2021-03-17 Thread Ryan Nowakowski
>offices*. >Clients will click on the *calendar that is rendered in JS/JQuery (on >client side)* to select a date and then book for a specific date via a >button. To store the booking in my database I am using an Ajax call, >which >works fine. However, I am asking myself now, *how ca

Calendar based on JS/JQuery needs to communicate with Django

2021-03-17 Thread Manuel Buri
Hello, I am having a website where people are able to *make bookings for offices*. Clients will click on the *calendar that is rendered in JS/JQuery (on client side)* to select a date and then book for a specific date via a button. To store the booking in my database I am using an Ajax call

Re: Ajax, jQuery and Django

2020-10-11 Thread Dvs Khamele
> (15, '00617', 'Barceloneta', 'PR'), > (16, '00622', 'Boqueron', 'PR'), > (17, '00623', 'Cabo Rojo', 'PR'), > (18, '00624', 'Penuelas', 'PR'), > (19, '00627', 'Camuy', 'PR'); > If user enters zipcode, Then state and city column should be auto fill by > using database of zip code

Re: Ajax, jQuery and Django

2020-10-11 Thread Dvs Khamele
> (15, '00617', 'Barceloneta', 'PR'), > (16, '00622', 'Boqueron', 'PR'), > (17, '00623', 'Cabo Rojo', 'PR'), > (18, '00624', 'Penuelas', 'PR'), > (19, '00627', 'Camuy', 'PR'); > If user enters zipcode, Then state and city column should be auto fill by > using database of zip code i

Re: Ajax, jQuery and Django

2020-10-05 Thread Eugene TUYIZERE
', 'PR'), >>> (17, '00623', 'Cabo Rojo', 'PR'), >>> (18, '00624', 'Penuelas', 'PR'), >>> (19, '00627', 'Camuy', 'PR'); >>> If user enters zipcode, Then state and city column should be auto fill >>> by using database of zip code in django and jQuery . >&g

Re: Ajax, jQuery and Django

2020-10-05 Thread RANGA BHARATH JINKA
; (18, '00624', 'Penuelas', 'PR'), >> (19, '00627', 'Camuy', 'PR'); >> If user enters zipcode, Then state and city column should be auto fill by >> using database of zip code in django and jQuery . >> Please let me know how to do this. >> >> Thank You, >>

Re: Ajax, jQuery and Django

2020-10-05 Thread Kunal Solanke
', 'Penuelas', 'PR'), > (19, '00627', 'Camuy', 'PR'); > If user enters zipcode, Then state and city column should be auto fill by > using database of zip code in django and jQuery . > Please let me know how to do this. > > Thank You, > ~Salima > > -- > You

Ajax, jQuery and Django

2020-10-05 Thread Salima Begum
, '00622', 'Boqueron', 'PR'), (17, '00623', 'Cabo Rojo', 'PR'), (18, '00624', 'Penuelas', 'PR'), (19, '00627', 'Camuy', 'PR'); If user enters zipcode, Then state and city column should be auto fill by using database of zip code in django and jQuery . Please let me know how to do this. Thank You, ~Salima

Ajax, jQuery and Django

2020-10-05 Thread Salima Begum
, '00622', 'Boqueron', 'PR'), (17, '00623', 'Cabo Rojo', 'PR'), (18, '00624', 'Penuelas', 'PR'), (19, '00627', 'Camuy', 'PR'); If user enters zipcode, Then state and city column should be auto fill by using database of zip code in django and jQuery . Please let me know how to do this -- You received

Re: Django +Ajax + jQuery problem

2020-07-03 Thread Andréas Kühne
Hi, The reason for this is that you are replacing the buttons when you update the answer. The event listener that you attached is on the first one and not the second one. You can solve this in 2 ways: 1. Reregister the event listener when you have loaded the answer again. 2. Use a different way

Django +Ajax + jQuery problem

2020-07-02 Thread Jan Gregorczyk
My problem is that site registers only the first click on .upvote or .downvote element and ignores next ones. {% extends 'base.html' %} {% load votes_exists %} {% block title %}{{question.title|truncatechars:52}}{% endblock %} {% block content %} {{question.title}} {{question.content}} {% for

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

2020-05-31 Thread meli...@melindaminch.com
20, at 1:26 PM, Stephen J. Butler > wrote: > > 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 "

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/W

Ajax and Django and jQuery - .attr()

2020-05-31 Thread Jan Gregorczyk
I have a problem with Ajax and Django templates. I'm new to Ajax and jquery. Console log at the end of the script prints undefined. I don't know why let answerid = $(this).attr("answer-id"); doesn't extract attribute from this line: I also want to know if using template tags in

django dependent drop down list without using javascript; ajax; jquery

2020-04-12 Thread Mayank Tripathi
Hi All, Could any one please share some details on how we can do dependent drop down list selection. I am seeing lot of videos or content to handle this via JavaScript; AJAX; jquery etc.. but just wondering if Django has anything which can be handled easily. -- You received this message

Possible bug [Was: jquery deployment]

2019-06-01 Thread Mike Dewhirst
2m (self) adding another instance clicking on the {SHOW} link just relocates to the top of the page. Has to be a jQuery thing doesn't it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Possible bug [Was: jquery deployment]

2019-05-31 Thread Mike Dewhirst
On 30/05/2019 8:22 pm, Mike Dewhirst wrote: I just encountered a weird UI glitch[1] in the Admin after upgrading to Django 2.2.1 I checked and found the version of jquery I'm using is 1.4.1 and figured that has to be contributing to the problem. The 2.1 release note says "jQuery is upg

Re: jquery deployment

2019-05-30 Thread Mike Dewhirst
offer advice on managing js deployment. Thanks Mike On 30/05/2019 8:22 pm, Mike Dewhirst wrote: I just encountered a weird UI glitch[1] in the Admin after upgrading to Django 2.2.1 I checked and found the version of jquery I'm using is 1.4.1 and figured that has to be contributing to the problem

jquery deployment

2019-05-30 Thread Mike Dewhirst
I just encountered a weird UI glitch[1] in the Admin after upgrading to Django 2.2.1 I checked and found the version of jquery I'm using is 1.4.1 and figured that has to be contributing to the problem. The 2.1 release note says "jQuery is upgraded from version 2.2.3 to 3.3.1."

Re: Loading Django views inside template with JQuery

2019-01-23 Thread Nelson Varela
Use iframes which loads the three different views -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Loading Django views inside template with JQuery

2019-01-22 Thread officialjoemayami
I am new to django, not tried it before just logicaly saying this should work. Try doing this: 3tabs Tab A = Tab 1 Tab B = Tab 2 Tab C = Tab 3 Tab A extend it view to Tab B Tab B has a inner block to accept Tab B content and also extend it tab to Tab C Tab C applies the same principle as Tab B

Re: Loading Django views inside template with JQuery

2019-01-22 Thread shiva kumar
I think you want to load the data from view to html using jQuery. I hope ajax concepts will used. Once try it. On Tue 22 Jan, 2019 6:13 pm Ricardo Cataldi Hy guys, you all right? > > I have a problem that it seems not to be any answer in Stack Overflow. > > I need to load three

Loading Django views inside template with JQuery

2019-01-22 Thread Ricardo Cataldi
Hy guys, you all right? I have a problem that it seems not to be any answer in Stack Overflow. I need to load three views inside a template, and i decided to do that based on html tags and JQuery. The bellow image shows how the front end will look like: [image: imagem_tab.png] What happens

Re: Multiple image upload in Django using AJAX & jQuery

2018-06-22 Thread Jani Tiainen
Please! > > > https://stackoverflow.com/questions/50982220/multiple-image-upload-in-django-using-ajax-jquery > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails

Multiple image upload in Django using AJAX & jQuery

2018-06-22 Thread Keerthan Bhat
Can someone please help me in this? This thing is literally giving me headache from past few weeks. Please help. Please! https://stackoverflow.com/questions/50982220/multiple-image-upload-in-django-using-ajax-jquery -- You received this message because you are subscribed to the Google Groups

In Django HTML templets How to connect with jquery and ajex

2018-05-24 Thread subhani shaik
Hi... I am creating one HTML table template in Django.But my question is how to connect or work with my buttons help of jquery, and ajex. methodology.and return getting the server message.please help me. -- You received this message because you are subscribed to the Google Groups "D

Re: How do I pass the CSRF token when using a jQuery post

2017-11-09 Thread Tony King
it to work. {% load static %} https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot</a>;> {% csrf_token %} {{ hdr1 }} {% if my_apps_list %} {% for my_apps in my_apps_list %} $("#app{{ forloop.counter }}").click( function() { document.getElement

Re: How do I pass the CSRF token when using a jQuery post

2017-11-08 Thread Gourav Chawla
See, if this helps: https://stackoverflow.com/questions/8614947/jquery-and-django-csrf-token On Tuesday, November 7, 2017 at 10:25:47 PM UTC+5:30, Tony King wrote: > > > Hi, > > I thought I'd finally understood this but it seems I have not and I've > spent far too much

How do I pass the CSRF token when using a jQuery post

2017-11-07 Thread Tony King
my project in a different browser and then subsequently cleared the cache of Chrome. What am I doing wrong here? I've not included the views.py as I'm assuming the issue is in the JavaScript. index.html {% load static %} https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&

Jquery datepicker in a django form

2017-09-11 Thread giuseppe ricci
Hi guys, I need to insert 2 datapicker in a django form. I have not a form.py file. My views.py related to the datepicker: class DatePicker(forms.DateInput): template_name = 'dkey.html' class Media: js = ( 'js/jquery.min.js', 'js/jquery-ui.min.js', ) css = { 'all': ( 'css/jquery-ui.css

Re: Dynamic Selector with Django/Jquery

2017-04-20 Thread Melvyn Sopacua
On Saturday 15 April 2017 17:31:50 Anonymous Coder wrote: > I need to filter lists of items to be displayed upon user selection in > my list view. > For instance if user selects 12 it should show only 12 products per > page and so on. For this specific issue:

Re: Dynamic Selector with Django/Jquery

2017-04-15 Thread m712 - Developer
You can create a URL in your application to which your AJAX code will send the details and the amount of items it wants and your application will return the items in JSON format. Take a look at https://docs.djangoproject.com/en/1.11/topics/db/queries/ to learn about how to filter and limit your

Re: Displaying lists with restricted number of products with Jquery

2017-04-15 Thread ludovic coues
-04-15 11:50 GMT+02:00 <anonymousco...@gmail.com>: > I am using jquery to present a number of products as per user's selection on > "Show" dropdown menu. If user selects to get 9, 12, 16 or 20 products per > page it should show accordingly in my list view. > >

Displaying lists with restricted number of products with Jquery

2017-04-15 Thread anonymouscodar
I am using jquery to present a number of products as per user's selection on "Show" dropdown menu. If user selects to get 9, 12, 16 or 20 products per page it should show accordingly in my list view. Following is the code for HTML: Show:

dynamic formset with Jquery doesn't save dynamically created form data

2016-11-28 Thread Hansong Li
down votefavorite <http://stackoverflow.com/questions/40725789/django-dynamic-formset-with-jquery-only-save-first-formset-instance?noredirect=1#> So I have set up the following codes for sample from followed by inline formset of its foreign key, sample detail. I also added some d

Re: Setting up jQuery in debian with virtualenv (SOLVED)

2016-11-12 Thread Gary Roach
Thanks all, I installed libjs-jquery into my active venv directory. It turns out that libjs-jquery actually has 3 different virsions in it . I copied the jquery.js file over to my /static/ file in Eclipse. It works fine. Gary R. On 11/10/2016 10:22 AM, Luis Zárate wrote: Mmm why not just

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread ludovic coues
{% static 'admin/js/vendor/jquery/jquery.min.js' %} Assuming you have django.contrib.admin in your INSTALLED_APP, this will do what you want. 2016-11-10 19:22 GMT+01:00 Luis Zárate <luisz...@gmail.com>: > Mmm why not just download Jquery and create a folder called static ins

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Luis Zárate
Mmm why not just download Jquery and create a folder called static inside one controlled app, maybe pone inside the project. If you want, you can use django admin jquery but $ is not available because django use django.JQuery for prevent conflict with custom user jquery El jueves, 10 de

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Gary Roach
Hi, Sorry about the confusion. I misspoke. I was trying to imply that there was a jquery.min.js file in the venv (djenv) file. As you implied, it was installed with pip django. A very bad choice of words. I am trying to set up my project so that I am not using a system version of jquery

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Michal Petrucha
On Wed, Nov 09, 2016 at 01:54:57PM -0800, Gary Roach wrote: > Ludovic > > Thank you for the reply but I know how to use static files. The problem is > that I already have a jquery file under version control inside my virtual > environment wrapper and do not wish to use an exte

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Antonis Christofides
Hi, If, as you say, you "have a jquery file under version control inside [your] virtual environment wrapper", I believe you are doing something wrong. We normally don't put jquery files in virtualenv (although `pip install django` will do so), and we normally do not version control the

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Javier Guerra Giraldez
On 9 November 2016 at 13:54, Gary Roach <gary719_li...@verizon.net> wrote: > I want to know how to use the pip installed version of the jquery file if > possible. you can check what the admin templates do. probably something like {% url "admin/js/vendor/jquery/jquery.min.j

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
Ludovic Thank you for the reply but I know how to use static files. The problem is that I already have a jquery file under version control inside my virtual environment wrapper and do not wish to use an external file . Use of a normal static file will open my application up to uncontrolled

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread ludovic coues
Hello, Django provide tools to deals with static files like javascript or css. The documentation is at [1]. [1] https://docs.djangoproject.com/en/1.10/howto/static-files/ 2016-11-09 21:26 GMT+01:00 Gary Roach <gary719_li...@verizon.net>: > Hi all, > > I am just starting to use

Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
Hi all, I am just starting to use jQuery and Ajax in my project and am having trouble setting things up. I am using Eclipse + pyDev as an IDE. This setup stores everything in a workspace directory in my home directory. Instead of putting the whole project inside a virtualenv wrapper, things

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-09 Thread sevenrrainbow
Thanks. On Friday, July 8, 2016 at 7:59:23 PM UTC+3, luisza14 wrote: > > See https://docs.djangoproject.com/en/1.9/topics/forms/media/ > > 2016-07-08 10:58 GMT-06:00 Luis Zárate : > >> >> 2016-07-08 10:24 GMT-06:00 : >> >>> and save the new im >> >> >>

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
See https://docs.djangoproject.com/en/1.9/topics/forms/media/ 2016-07-08 10:58 GMT-06:00 Luis Zárate : > > 2016-07-08 10:24 GMT-06:00 : > >> and save the new im > > > You can start reading how to set css and js to form and admin site. > > See > > > >

Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread sevenrrainbow
I want to implement in Django Admin a jquery plugin that "adjust" and image(http://guillotine.js.org/), them get the coordinates with ImageKit and save the new image. I need some tutorials and advises how to do it. -- You received this message because you are subscribed to the Goo

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-05 Thread Seti Volkylany
> Are you using django admin template? > Where are your Jquery call? in the header ? > > A template example could be useful. > > 2016-07-03 12:20 GMT-06:00 Seti Volkylany <setivolkyl...@gmail.com>: > >> It is not worked even the main admin page >> &g

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-04 Thread Luis Zárate
Are you using django admin template? Where are your Jquery call? in the header ? A template example could be useful. 2016-07-03 12:20 GMT-06:00 Seti Volkylany <setivolkyl...@gmail.com>: > It is not worked even the main admin page > > django.jQuery('body') > Uncaught Refe

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Seti Volkylany
com> wrote: > Replace $ by django.jQuery > > For example django.jQuery('body') > > > > El domingo, 3 de julio de 2016, Seti Volkylany <setivolkyl...@gmail.com> > escribió: > > > > The Django`s docs tell next: > > To avoid conflicts with user-supplied

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Luis Zárate
Replace $ by django.jQuery For example django.jQuery('body') El domingo, 3 de julio de 2016, Seti Volkylany <setivolkyl...@gmail.com> escribió: > > The Django`s docs tell next: > To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4

How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Seti Volkylany
The Django`s docs tell next: To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4) is namespaced as django.jQuery. If you want to use jQuery in your own admin JavaScript without including a second copy, you can use the django.jQuery object on changelist

Re: Django - Crop Images with jquery and after that save them on cdn

2016-06-12 Thread Ilyes Hammadi
Hi, i also started using django-image-cropping and i found that we can specify a custom Jquery version in the Django settings like this IMAGE_CROPPING_JQUERY_URL = "" On Thursday, June 9, 2016 at 9:34:53 PM UTC+1, sevenr...@gmail.com wrote: > > I'm try to use jquery and

Re: Django and jQuery, I don't get it

2016-06-10 Thread Stephen J. Butler
t; 'use strict'; > > > > })(django.jQuery); > > This syntax is called a closure. First you declare a function so you > don't contaminate the global scope with your local declared variable. > Then you execute your function. > I will assume django.JQuery is the version of JQuery shipp

Re: Django and jQuery, I don't get it

2016-06-10 Thread ludovic coues
> (function($) { > 'use strict'; > > })(django.jQuery); This syntax is called a closure. First you declare a function so you don't contaminate the global scope with your local declared variable. Then you execute your function. I will assume django.JQuery is the versi

Re: Django and jQuery, I don't get it

2016-06-09 Thread Mike Dewhirst
I can't help at all with jquery but IIRC there is a question in the Admin "Are you sure?" when you try deleting something from a list view. Might be a start Mike On 10/06/2016 1:06 AM, Olivier Dalang wrote: Hi ! I'm using several modules that rely on jQuery, and have some own nee

Django - Crop Images with jquery and after that save them on cdn

2016-06-09 Thread sevenrrainbow
I'm try to use jquery and python to "crop" a image in Django. I want to work in admin but also in front-end. The user selects a box/rectangle, for the portion of the image that he want to crop. django-image-cropping <https://www.djangopackages.com/packages/p/django-image-crop

Django and jQuery, I don't get it

2016-06-09 Thread Olivier Dalang
Hi ! I'm using several modules that rely on jQuery, and have some own needs as well : - admin > - grappelli > - autocomplete light > - session security > ... I also see that there are tons of different variables that reference jQuery, defined by theses modules, some of which

Best jquery plugins in django-bootstrap project?

2016-03-10 Thread setivolkylany
I found useful ajaxform.js, moment.js, jcrop.js may be someone known yet? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Both directly transfer data from django to jQuery

2016-03-10 Thread setivolkylany
May be there is something simpler than Ajax request? четверг, 10 марта 2016 г., 14:20:17 UTC+2 пользователь Sergiy Khohlov написал: > > Ajax ? > Have you checked this one ? > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Thu, Mar 10, 2016 at 2:18 PM,

Re: Both directly transfer data from django to jQuery

2016-03-10 Thread Sergiy Khohlov
Ajax ? Have you checked this one ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Mar 10, 2016 at 2:18 PM, wrote: > I had method model that generate dict, sample: > > { > 'translators': 5, > 'glossaries': 1, > 'abbrs': 0, > } > > I want

Both directly transfer data from django to jQuery

2016-03-10 Thread setivolkylany
I had method model that generate dict, sample: { 'translators': 5, 'glossaries': 1, 'abbrs': 0, } I want known, how transfer data without hidden fields in html file. I need here for generate google-chart. -- You received this message because you are subscribed to the Google Groups

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

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,

Ajax + Django + jQuery + HTML5

2016-02-28 Thread setivolkylany
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 django-ajaximage, Ajaxfileupload and many other, but it

Re: jquery and django template

2015-11-05 Thread Collin Anderson
of my template.I > basically need to get the filter i want to apply on the databse entry using > data available from user selection(using jquery).Any suggestions on how i > can achieve this? > -- You received this message because you are subscribed to the Google Groups &q

jquery and django template

2015-11-01 Thread varun naganathan
I basically have the database entries in the namespace of my template.I basically need to get the filter i want to apply on the databse entry using data available from user selection(using jquery).Any suggestions on how i can achieve this? -- You received this message because you

Jquery and templates

2015-11-01 Thread varun naganathan
I basically want to run a jquery script that gets data of an html tag and then use that value to query the database.Any suggestions would be very helpful! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: How to django with jquery-mobile

2015-07-29 Thread Alex Heyden
You pretty much answered it yourself. >there's just one actual html page and inside it we have to create a page (data-role="page") Django's template helps you put together the response that gets to the client. It's unaware of what your CSS and Javascript frameworks will do with that response.

How to django with jquery-mobile

2015-07-29 Thread Kakar Nyori
Django provides many features for the template (extends, block content etc.) I am just learning jquery mobile, but so far when using jquery mobile, there's just one actual html page and inside it we have to create a page (data-role="page"). So, how can we utilize the django's templatin

Django JQuery AJAX submit form POST request refreshes the page

2015-07-07 Thread Ankit Agrawal
to the POST handler URL /users/login/ with the expected JSON string response(i.e. JsonResponse) - {"error": ["Entered mobile number is not registered"]} Please check this stackoverflow link <http://stackoverflow.com/questions/31262427/django-jquery-ajax-submit-form-post-req

Re: Reuse jquery

2015-06-02 Thread guettli
Hi, we had a very strange problem with the ordering of the JS files. the jquery.init.js from django removed the jquery from us which had jquery-ui loaded. The problem is solved. Thomas Güttler Am Dienstag, 2. Juni 2015 17:24:56 UTC+2 schrieb ke1g: > > Are you saying that you can't

Re: Reuse jquery

2015-06-02 Thread Bill Freeman
Are you saying that you can't access it as django.jQuery ? On Tue, Jun 2, 2015 at 4:22 AM, guettli <h...@tbz-pariv.de> wrote: > I guess I am missing something. > > Is there no way to load jquery only once per page? > > Use case: I have two widgets which need jquery. I want t

Reuse jquery

2015-06-02 Thread guettli
I guess I am missing something. Is there no way to load jquery only once per page? Use case: I have two widgets which need jquery. I want to use these widgets inside the admin interface and on custom pages. The admin interface has its own jquery and in jquery.init.js this gets done: var django

Trying to Build File Upload using jQuery dialog (jQuery 1.10.2/django 1.7/Python 2.7.8)

2015-05-29 Thread Henry Versemann
I'm constructing my file-upload dialog using jquery(jq)/javascript/html where the file-upload is supposed to begin like this: htmlStr = 'SELECT FILE TO UPLOAD:'; jq("#upldfildialog").append(htmlStr); Everything seems to work except for actually being able to captur

Re: Django and Jquery UI

2015-05-20 Thread Joris
Hi Robert Could you please specify more clearly how you "added jqueryui to my settings.py" ? It should be handled like any other static file and doesn't really have a place in settings.py Do your other static files (images, css, etc) load? Best Seems tough to get the Jquery UI

Django and Jquery UI

2015-05-19 Thread Robert librado
Seems tough to get the Jquery UI code to do anything like on Jquery.com Im using there demos just to get my feet wet ive already added jqueryui to my settings.py I already did collectstatic I added the draggable demo to an html template created the view it shows on the page but does not allow

Re: Django Inline formset with jquery

2015-02-17 Thread aRkadeFR
Hello, I got the same kind of probleme while working on the formset couple days ago. If this is related, the problem is the auto complete javascript that doesn't go well with the jquery.formset.js. You can add a function "added" in parameter of the formset function for reloading the

Django Inline formset with jquery

2015-02-16 Thread Ajay Kumar
Hello all, I'm trying to build this following link feature in django, http://demo.smarttutorials.net/jquery-autocomplete/ Here by choosing serial_no and the rest of the fields name and author should be auto populate. Auto populate works for first inline formset and able to save it but when

Re: Using jquery ajax POST method with django

2015-01-21 Thread carlos
if you comment middleware csrf this is a risk security problem in your app maybe you need read this part of documentation https://docs.djangoproject.com/en/1.7/ref/contrib/csrf/#ajax Cheers On Sat, Jan 17, 2015 at 10:44 PM, Hossein Rashnoo wrote: > I correct my code and

Re: having problem with jquery ajax

2015-01-19 Thread James Schneider
; url(r'^$', 'post.views.home', name='home'), > url(r'^aget/', 'post.views.aget'), > #url(r'^admin/', include(admin.site.urls)), > ) > > > my templete: > > {% csrf_token %} > > ajaxpo > ajaxge > > > > > > http://code.jquery.com/jquery-1

having problem with jquery ajax

2015-01-19 Thread Aussie Niki
', name='home'), url(r'^aget/', 'post.views.aget'), #url(r'^admin/', include(admin.site.urls)), ) my templete: {% csrf_token %} ajaxpo ajaxge http://code.jquery.com/jquery-1.11.2.min.js&quot</a>;> function aget(){ $.ajax({ type: 'GET',

Re: Using jquery ajax POST method with django

2015-01-17 Thread Hossein Rashnoo
I correct my code and it's worked. Thank you guys for your help. Ajax Code: function checkuser() { var myObject = new Object(); myObject.username = $('#username').val(); myObject.password = $('#password').val(); $.ajax({ url: 'http://10.252.84.159/ajaxrecivelogin/',

Re: Using jquery ajax POST method with django

2015-01-17 Thread Vijay Khemlani
Maybe it's triggering the CSRF validation? What error message are you getting exactly from the server? On Sat, Jan 17, 2015 at 10:37 AM, Erwin Sprengers wrote: > Hello, > > POST works fine for me, I use the following django code : > > at the end of the view : > > return

Re: Using jquery ajax POST method with django

2015-01-17 Thread Erwin Sprengers
Hello, POST works fine for me, I use the following django code : at the end of the view : return HttpResponse(simplejson.dumps(response_dict), mimetype='application/javascript') and following ajax code : $.ajax({ url: '/ajax/is_key_mm/', type: 'POST',

Using jquery ajax POST method with django

2015-01-16 Thread Hossein Rashnoo
I use this code to send a request: function checkuser() { $.ajax({ url: 'http://10.252.84.159/ajaxrecivelogin', //type: 'POST', data: "{'username': 'aa', 'password' : 'bb'}", context: this, dataType: 'json', success: function (data) {

Appending trailing slashes to jQuery Ajax requests automatically

2014-10-14 Thread Ustun Ozgur
I have published a small snippet at https://github.com/ustun/ensure-trailing-slash-for-jquery-ajax/blob/master/ensure_slash.js that automatically adds a trailing slash to every outgoing AJAX request so as to minimize accidental redirects. Best, Ustun (Inspired by https

Re: Can not include jquery in django template

2014-09-23 Thread Collin Anderson
You need -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Can not include jquery in django template

2014-09-23 Thread Fred Stluka
ces, we need no Windows or Gates. On 9/23/14 2:15 PM, Артём Мутерко wrote: When I try to include jQuery to my template index.html, I get an blank page. Html source code is loading but I get just white page -- You received

Can not include jquery in django template

2014-09-23 Thread Артём Мутерко
When I try to include jQuery to my template index.html, I get an blank page. Html source code is loading but I get just white page -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
Perfect, thank you On 9/1/14, Collin Anderson wrote: > If the url name is not guessable (for example, it includes a secure random > string, like django's forgot password url), that should provide enough > security. > > Though you can always pass in the csrf token using

Re: Django and AJAX jQuery

2014-09-01 Thread Collin Anderson
If the url name is not guessable (for example, it includes a secure random string, like django's forgot password url), that should provide enough security. Though you can always pass in the csrf token using javascript: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax -- You

Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
I am completely new to AJAX and I was wondering. I have a a view that ajax is posting to but in order for the request to be processed in the view correctly i have to add csrf_exempt decorator to that view, but is that safe? I named the url for that view with a name that would not be

Re: response to ajax (jquery) with variables

2014-08-31 Thread Antonio Russoniello
14-08-30 4:57 GMT+02:00 Antonio Russoniello <aruss...@musicparticles.com <mailto:aruss...@musicparticles.com>>: Now I can read data from ajax to my def but I have not idea to how send, for examle, an array to jquery and manage this from javascript... I tri

Re: response to ajax (jquery) with variables

2014-08-30 Thread Andreas Kuhne
ta from ajax to my def but I have not idea to how send, > for examle, an array to jquery and manage this from javascript... > > I tried: > > def json_prueba(request): > arrg = [1,2,3,4] > if request.method == 'POST': > return HttpResponse(simplejson.dum

  1   2   3   4   5   6   >