Re: JavaScript

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 Fri, 2 Oct 2020, 9:03 pm Eugene TUYIZERE, wrote: > Dear All, > > I did form validation whe

Re: JavaScript

2020-10-02 Thread Eugene TUYIZERE
Merci reka ngere murugo ndi munzira ntaha! Ndayiguha kandi merci bcp Sent from my iPhone > On 2 Oct 2020, at 18:03, Chris Franklin wrote: > > Nyohereza screenshot ndakurabire > > >> On Oct 2, 2020 17:32, "Eugene TUYIZERE" wrote: >> Dear All, >> >> I did form validation where I can not save

Re: JavaScript

2020-10-02 Thread Chris Franklin
Nyohereza screenshot ndakurabire On Oct 2, 2020 17:32, "Eugene TUYIZERE" wrote: > Dear All, > > I did form validation where I can not save empty value. And When I try a > message displays under the text field. What I want is, in case I type at > least a single character, the error message to dis

Re: JavaScript

2020-10-02 Thread Mohammad Ahshan Danish
Okay, Use Text Change event and display error accordingly. Text Change event. On Fri, Oct 2, 2020 at 9:02 PM Eugene TUYIZERE wrote: > Dear All, > > I did form validation where I can not save empty value. And When I try a > message displays under the text field. What I want is, in case I type at

Re: JavaScript linking

2020-03-13 Thread Shishir Jha
One way to do that would be to use bundler like webpack. Do whatever you want to do on frontend and then convert it into static assets using bundler and then place it as an app in django. I assume you were talking about linking js with django as this is the group for django. Two such bundlers you

Re: Javascript File is not responding

2019-06-25 Thread Soumen Khatua
Thank you for your email. Now it's woring after added it under Bootstrap link. Thank You Regards, Soumen On Tue, 25 Jun 2019, 20:34 ravikumar dingari, wrote: > Can U send , How to set Forget PasswordIn django...With user models > > On 25-Jun-2019 1:25 PM, "Soumen Khatua" wrote: > >> Hi

Re: Javascript File is not responding

2019-06-25 Thread ravikumar dingari
Can U send , How to set Forget PasswordIn django...With user models On 25-Jun-2019 1:25 PM, "Soumen Khatua" wrote: > Hi Folks, > > When I'm using my javasscript/jquery code inside django template then it's > working fine but when I'm save it in external file called main.js then it's > functi

Re: Javascript File is not responding

2019-06-25 Thread Andréas Kühne
Hi, I am guessing that you add this to the part of your template? I think the problem is that you haven't created the item with the "show-more" class before adding an event listener to it. Try adding: $(window).ready(function() { }); around your js function. Regards, Andréas Den tis 25 ju

Re: javascript transpilers

2018-02-05 Thread Mike Dewhirst
Much appreciated. I'll definitely take your advice. Cheers M On 6/02/2018 2:26 AM, Matemática A3K wrote: On Thu, Feb 1, 2018 at 8:27 PM, Mike Dewhirst > wrote: On 2/02/2018 12:54 AM, Jason wrote: https://caniuse.com/#feat=wasm  IIRC wasm

Re: javascript transpilers

2018-02-05 Thread Matemática A3K
On Thu, Feb 1, 2018 at 8:27 PM, Mike Dewhirst wrote: > On 2/02/2018 12:54 AM, Jason wrote: > >> https://caniuse.com/#feat=wasm >> >> >> IIRC wasm is not polyfillable or transpilable, so if you're targeting >> users on any of those red cells, then wasm is not for you. >> > > Agreed. I think it is

Re: javascript transpilers

2018-02-01 Thread Mike Dewhirst
On 2/02/2018 12:54 AM, Jason wrote: https://caniuse.com/#feat=wasm  IIRC wasm is not polyfillable or transpilable, so if you're targeting users on any of those red cells, then wasm is not for you. Agreed. I think it is interesting anyway but I already decided it is not within my event horiz

Re: javascript transpilers

2018-02-01 Thread Jason
https://caniuse.com/#feat=wasm IIRC wasm is not polyfillable or transpilable, so if you're targeting users on any of those red cells, then wasm is not for you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: javascript transpilers

2018-02-01 Thread Mike Dewhirst
On 30/01/2018 6:33 PM, Andréas Kühne wrote: If you are using django in the "normal" way - you should just be able to add the message to the messages contrib package. Then the message should show when saving? Because when you click on the save button you should post your form and that method sho

Re: javascript transpilers

2018-01-31 Thread Mike Dewhirst
to:django-users@googlegroups.com] On Behalf Of Mike Dewhirst Sent: Wednesday, January 31, 2018 4:29 PM To: django-users@googlegroups.com Subject: Re: javascript transpilers On 30/01/2018 6:33 PM, Andréas Kühne wrote: 2018-01-30 5:18 GMT+01:00 Mike Dewhirst mailto:mi...@dewhirst.com.au>>: On 29/

RE: javascript transpilers

2018-01-31 Thread Matthew Pava
ango-users@googlegroups.com Subject: Re: javascript transpilers On 30/01/2018 6:33 PM, Andréas Kühne wrote: > 2018-01-30 5:18 GMT+01:00 Mike Dewhirst <mailto:mi...@dewhirst.com.au>>: > > On 29/01/2018 9:03 PM, Nick Sarbicki wrote: > > Going SPA when you don't

Re: javascript transpilers

2018-01-31 Thread Mike Dewhirst
On 30/01/2018 6:33 PM, Andréas Kühne wrote: 2018-01-30 5:18 GMT+01:00 Mike Dewhirst >: On 29/01/2018 9:03 PM, Nick Sarbicki wrote: Going SPA when you don't know JS is very much a baptism of fire. Angular is personally my favourite too and essen

Re: javascript transpilers

2018-01-29 Thread Andréas Kühne
2018-01-30 5:18 GMT+01:00 Mike Dewhirst : > On 29/01/2018 9:03 PM, Nick Sarbicki wrote: > >> Going SPA when you don't know JS is very much a baptism of fire. >> >> Angular is personally my favourite too and essentially forces the SPA >> model. But it has a much bigger learning curve compared to Vu

Re: javascript transpilers

2018-01-29 Thread Mike Dewhirst
On 29/01/2018 9:03 PM, Nick Sarbicki wrote: Going SPA when you don't know JS is very much a baptism of fire. Angular is personally my favourite too and essentially forces the SPA model. But it has a much bigger learning curve compared to Vue and React (the other two common names thrown about n

Re: javascript transpilers

2018-01-29 Thread Nick Sarbicki
Going SPA when you don't know JS is very much a baptism of fire. Angular is personally my favourite too and essentially forces the SPA model. But it has a much bigger learning curve compared to Vue and React (the other two common names thrown about nowadays). The others are also easier to not forc

Re: javascript transpilers

2018-01-29 Thread Andréas Kühne
If that is the case - I would recommend looking into creating a single page app - with Django restframework on the backend if you want to continue with Django. For the frontend you will however be required to learn some sort of JS framework - however this doesn't have to be THAT bad. I personally l

Re: javascript transpilers

2018-01-28 Thread Mike Dewhirst
That seems unanimous :( Jani asked what problem I need to solve. Without going into analytical detail, all the code is serverside and now the project needs to move towards AJAX for user experience reasons. M On 29/01/2018 5:44 AM, Nick Sarbicki wrote: Agree with everything already said. O

Re: javascript transpilers

2018-01-28 Thread Nick Sarbicki
Agree with everything already said. Only thing I want to add is that while js has historically been a horrible language, the modern standards have helped rectify this. Modern js can be almost pleasant to work with nowadays. I wouldn't spend time transpiling python to js. Just try to learn js and

Re: javascript transpilers

2018-01-28 Thread Avraham Serour
If you don't want and don't have the time to learn JS you may as well consider outsourcing the frontend work, I've worked in places that did just that and everybody was happy, the internal team liked python and the outsourced company people liked UX and JS. On Sun, Jan 28, 2018 at 6:09 PM, Jani Ti

Re: javascript transpilers

2018-01-28 Thread Jani Tiainen
Hi, You don't describe to what extent you need to use JavaScript - IOW, what problem you need to solve with JavaScript? Depending you needs you might get away with basic knowledge and usage of some helpful JavaScript library/framework. On Sun, Jan 28, 2018 at 12:44 AM, Mike Dewhirst wrote: > I

Re: javascript transpilers

2018-01-28 Thread Jason
I have to agree with Andreas about this. If you want to look at a somewhat successful project, consider the Google Web Toolkit project which allows developers to write large scale web applications in Java. The compilation process outputs JS, CSS and HTML. Its an ok and acceptable approach if

Re: javascript transpilers

2018-01-28 Thread Andréas Kühne
Hi, I think you are making things worse by adding a transpiler from python code to javascript. Yes you will be working in a language you are familiar with, but you will still need to understand the underlying javascript to debug issues (things will happen that are strange because of javsascripts u

Re: javascript variable to django template

2016-11-15 Thread GMail
Hi, As any other variable: var myAwesomeVar = {{ my_awesome_var }}; alert(myAwesomeVar); > On 15 Nov 2016, at 18:46, kml Awad wrote: > > Hi, > > How can I inject javacript object (variable ) in django template (html) ? > > Thank you for your help. > > regards. > > -- > You received

Re: Javascript requests after user login

2014-09-10 Thread Sarfraz Nawaz
Thanks Collin for the tip. I printed out the cookies and can see both csrf and sessionid cookies, turns out the problem was with my qooxdoo code. All fixed now but thanks I was not sure if sessionid is sent out automatically by the browser when within the same domain. On Wednesday, September 10

Re: Javascript requests after user login

2014-09-09 Thread Javier Guerra Giraldez
On Tue, Sep 9, 2014 at 4:29 PM, Sarfraz Nawaz wrote: > The problem is that I keep getting forbidden 403. Having looked around it > seems that it is because this request does not include the sessionid cookie > which is an http only cookie. have you checked the response content? more likely is th

Re: Javascript requests after user login

2014-09-09 Thread Collin Anderson
So the app is issuing a GET (not POST) via ajax on the same domain as the sessionid cookie, and the view is returning a 403 because the user is not logged in? If the app is in the same domain as the cookie, the the ajax request will include the cookie, even if it's a http-only (non-javascript)

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
> if ($('#loading').visible()) { //if #loading not visible show it, > prevent default, set timer to re-submit. > > it *might* actually work if you use this condition instead if($('#loading').is(':visible')) { -- You received this message because you are subscribed to the Google Group

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > I don't understand why this isn't working any suggestions? > This probably seems like a django issue, but it's not. When you submit a form, the current document becomes old news. Browser posts the form data and waits for new page

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > $('#queryForm').on("submit", function () {$('#loading').show();}); > > > However it doesn't show the div tag when I click any of my buttons. > According to jquery docs; http://api.jquery.com/submit/ $('#queryForm').submit

Re: Javascript loading while executing backend python query.

2014-08-04 Thread Collin Anderson
You are saying you have a div with id="loading" with the image in it that is not being shown? loading image here -- 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

Re: Javascript and sessions

2014-02-27 Thread Camilo Torres
On Wednesday, February 26, 2014 10:41:38 PM UTC-4:30, Luke Baker wrote: > > My web application is heavily based around form input. I'd like to update > the user's session with each form input that they update or change while > working with a form. I'm thinking of implementing some simple javascri

Re: Javascript and sessions

2014-02-27 Thread C. Kirby
It sounds like you are trying to implement a wizard. If you are, Django has one built in: https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/ On Wednesday, February 26, 2014 9:11:38 PM UTC-6, Luke Baker wrote: > > Hey there, > > (Forgive my ignorance) > > My web application

Re: Javascript encoding and python decoding and vice versa

2013-08-29 Thread Tom Evans
On Wed, Aug 28, 2013 at 7:53 PM, Samantha Atkins wrote: > We all know about SSL so stop the lectures please. Sometimes you simply > want to reasonably encrypt on client and decrypt on server and for one > reason or another SSL is not an option. SSL is always an option, you are just not choosing

Re: Javascript encoding and python decoding and vice versa

2013-08-28 Thread Samantha Atkins
So if I use sjcl.encrypt at browser then how do I do the equivalent of sjcl.decrypt in python at server side. That is what the original question was asking as I read it. On Tuesday, October 9, 2012 8:24:06 AM UTC-7, Javier Guerra wrote: > > On Tue, Oct 9, 2012 at 12:07 AM, Laxmikant Gurnalkar

Re: Javascript encoding and python decoding and vice versa

2013-08-28 Thread Samantha Atkins
We all know about SSL so stop the lectures please. Sometimes you simply want to reasonably encrypt on client and decrypt on server and for one reason or another SSL is not an option. On Thursday, October 11, 2012 7:37:43 AM UTC-7, Javier Guerra wrote: > > On Thu, Oct 11, 2012 at 3:39 AM, Laxm

Re: Javascript AJAX url call not responding

2013-07-09 Thread nesornet
OK. I found the solution and hope this description prevents someone else from having to deal with this pain in the ass gotcha. "Gotcha" for me anyhow :) So if your ajax target resides in the urls.py of some module somewhere (in this case persistent_messages) and your referencing it from an SSL

Re: Javascript AJAX url call not responding

2013-07-08 Thread nesornet
> "Either way I cannot get the ajax call to succeed in triggering the django > backend at all" > By "django backend" I simply mean the persistent_messages/views.py, which should be referenced when the ajax url calls /messages/marked_read/X (as defined in persistent_messages/urls.py. Again a

Re: Javascript AJAX url call not responding

2013-07-08 Thread nesornet
I added the getcookie call to grab csrftoken (ref from the link you provided), but the farthest I can get is by setting ajax async:false which causes the status reported by chrome developer tools (for call /messages/marked_read/X ) to be PENDING. Without async:false, it just goes to CANCELLED.

Re: Javascript AJAX url call not responding

2013-07-04 Thread Peith Vergil
If that's an AJAX POST request, then it may be because you are not passing the CSRF token in the header. Add this code before doing the AJAX call: function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));}$.aj

Re: Javascript in external file not working

2012-11-27 Thread lokesh
Hi, Please check the DEBUG is True or False in settings. If the DEBUG is True it will not serve the static files in development server, So you need to serve the static files from some other server or you need to change the DEBUG level as False if you are in development mode. Thanks, Lokesh O

Re: Javascript in external file not working

2012-11-26 Thread Pankaj Singh
On Tue, Nov 27, 2012 at 4:34 AM, Loai Ghoraba wrote: > Hi all > > When I have a script like this: > window.onload=function f(){} it is working fine. but when > I create an external js file and put it within the static directory, and > call the function like this > > window.onload=f > > It is

Re: Javascript in external file not working

2012-11-26 Thread Bill Beal
I think {{STATIC_URL}} should have spaces, like {{ STATIC_URL }}. On Mon, Nov 26, 2012 at 6:04 PM, Loai Ghoraba wrote: > Hi all > > When I have a script like this: > window.onload=function f(){} it is working fine. but > when I create an external js file and put it within the static directory,

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Javier Guerra Giraldez
On Thu, Oct 11, 2012 at 11:09 AM, Kurtis Mullins wrote: > On the other hand, some valid points raised against storing sensitive data > in a Query String: > http://stackoverflow.com/questions/323200/is-a-https-query-string-secure oh, yes; the browser URL cache. effectively, that's part of the 'o

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Javier Guerra Giraldez
On Thu, Oct 11, 2012 at 10:25 AM, Kurtis Mullins wrote: > Sorry, you're probably right. I imagine there are no security risks related > to pulling a host-name from a DNS server. However, I do not know if the case > is the same for an HTTP Proxy when the query is included in the URL. a malicious D

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Kurtis Mullins
Sorry, you're probably right. I imagine there are no security risks related to pulling a host-name from a DNS server. However, I do not know if the case is the same for an HTTP Proxy when the query is included in the URL. On Thu, Oct 11, 2012 at 11:14 AM, Javier Guerra Giraldez wrote: > On Thu,

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Javier Guerra Giraldez
On Thu, Oct 11, 2012 at 10:04 AM, Kurtis Mullins wrote: > If you use GET requests to transmit data, there is still a chance that the > data might be intercepted by a DNS server or Proxy Server regardless of SSL. > I'd keep everything contained in POST and just like the others have > mentioned, sim

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Kurtis Mullins
If you use GET requests to transmit data, there is still a chance that the data might be intercepted by a DNS server or Proxy Server regardless of SSL. I'd keep everything contained in POST and just like the others have mentioned, simply go with SSL and Signed Certificates. On Thu, Oct 11, 2012 at

Re: Javascript encoding and python decoding and vice versa

2012-10-11 Thread Javier Guerra Giraldez
On Thu, Oct 11, 2012 at 3:39 AM, Laxmikant Gurnalkar wrote: > I'm using ssl at all. Still I need some data which is going through Ajax. i'm not sure i understand correctly. do you mean "i'm _not_ using ssl at all", or "i'm using ssl for everything" ?? if the former, then stop reading and turn

Re: Javascript encoding and python decoding and vice versa

2012-10-09 Thread Javier Guerra Giraldez
sorry, broken links: Stanford Javascript Crypto Library http://crypto.stanford.edu/sjcl/ crypto-js http://code.google.com/p/crypto-js/ -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Javascript encoding and python decoding and vice versa

2012-10-09 Thread Javier Guerra Giraldez
On Tue, Oct 9, 2012 at 12:07 AM, Laxmikant Gurnalkar wrote: > I am doing a high security data transfer. The things are showstopper to > transferring data through javascript to the python. Is it possible to hide > data or send data over web in that should not be human readable. i would start chec

Re: Javascript encoding and python decoding and vice versa

2012-10-09 Thread Kurtis Mullins
You could obfuscate the Javascript; but there's no such thing as security through obfuscation :) HTTPs is your best bet in terms of getting it from the server to the client without someone in the middle reading it. On Tue, Oct 9, 2012 at 1:20 AM, Mike Dewhirst wrote: > On 9/10/2012 4:07pm, Laxmi

Re: Javascript encoding and python decoding and vice versa

2012-10-08 Thread Mike Dewhirst
On 9/10/2012 4:07pm, Laxmikant Gurnalkar wrote: Hi, Guys. Anybody knows to encrypt the content in javascript and decode it using python and vice versa. Not sure where you see the threat but if it is between the browser and the server then I think your server needs to provide https encryption

Re: Javascript Image Hollover In Django

2012-09-04 Thread Amyth Arora
Here i created a step by step tutorial with explanations for you. Enlarge Image on Hover - jQuery On Sat, Sep 1, 2012 at 3:25 AM, coded kid wrote: > When I followed your tutorial, the images were reshaped only

Re: Javascript Image Hollover In Django

2012-08-31 Thread coded kid
When I followed your tutorial, the images were reshaped only and when I place my mouse on any of the thumbnail images it won't display the large image. How can I go about it? On Friday, 31 August 2012 15:40:56 UTC+1, Amyth wrote: > > Hey, > > dun think this is really Django related, but still

Re: Javascript Image Hollover In Django

2012-08-31 Thread Amyth Arora
Hey, dun think this is really Django related, but still i created a jquery example for you, check it http://jsfiddle.net/TjUtq/ -- Thanks & Regards Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @a_myth_ http:/

Re: Javascript Image Hollover In Django

2012-08-31 Thread kahara
I don't think this is really related to Django? Anyway, if the selectors '.slides', '.slideshow' don't match anything, this will not work. Try wrapping the image elements in a div with class "slideshow". See http://jquery.malsup.com/cycle/basic.html for inspiration (view source). Joni p

Re: javascript in django template not executed when request is sent via ajax

2012-07-01 Thread Larry Martell
On Fri, Jun 29, 2012 at 2:45 PM, Larry Martell wrote: > I have a django template that has some javascript/jQuery code in it > that defines some keyup event handers. If a user goes to the URL > directly the javascript is executed, and the event handers all work > fine. There is also a field that th

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Larry Martell
On Sat, Jun 30, 2012 at 11:54 AM, Psamathos wrote: > If your web server is in fact serving the content with the incorrect > Content-Type header (You can verify this by inspecting the response in the > Net tab of Firebug or Chrome) jQuery can convert the response regardless of > the content-type if

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Bill Freeman
curl (or its windows equivalents) will tell you exactly what django sent, as would poking around from a suitably placed pdb.set_trace() On Fri, Jun 29, 2012 at 8:42 PM, Larry Martell wrote: > On Fri, Jun 29, 2012 at 4:54 PM, Jani Tiainen wrote: >> I meant that if for some reason Django sends inc

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Psamathos
If your web server is in fact serving the content with the incorrect Content-Type header (You can verify this by inspecting the response in the Net tab of Firebug or Chrome) jQuery can convert the response regardless of the content-type if you specify a two space-separated values in your dataTy

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Larry Martell
On Fri, Jun 29, 2012 at 4:54 PM, Jani Tiainen wrote: > I meant that if for some reason Django sends incorrect content type from a > view or something like that your javascript framework might guess > incorrectly your ajax request content type and not parse script tags. Is there a way I can test t

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Larry Martell
On Fri, Jun 29, 2012 at 4:51 PM, Jani Tiainen wrote: > It's known limitation of your ajax request and has nothing to do with Django > nor templates. Or well it might do. Not really sure what you mean here. Are you saying this is a known problem, and I should not expect it to work? > Most of the

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
I meant that if for some reason Django sends incorrect content type from a view or something like that your javascript framework might guess incorrectly your ajax request content type and not parse script tags. On Sat, Jun 30, 2012 at 1:51 AM, Jani Tiainen wrote: > It's known limitation of your

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
It's known limitation of your ajax request and has nothing to do with Django nor templates. Or well it might do. Most of the javascript frameworks can extract script and inject it correctly to current DOM. Since you mention jquery I guess that you're using that for ajax queries so make sure that y

Re: Javascript frameworks with Django

2011-04-27 Thread Jani Tiainen
This is exactly like I've done it in the past and it's problematic. Specially with lazy loading features. (Though I haven't upgraded my apps to use 1.3 style media serving that could ease whole thing) One problem is that I need some dynamic parts for otherwise static JS code. Let's take an exam

Re: Javascript frameworks with Django

2011-04-27 Thread Shawn Milochik
In my experience you almost definitely do want to take advantage of templates. It makes things a lot easier. Simple example: A main template (including things like the and tags and doctype). A detail template that just includes, say, a table of results. In action: The user ta

Re: Javascript frameworks with Django

2011-04-27 Thread christian.posta
I'm not sure I completely understand your question, but let me provide an answer and maybe that'll get us started on the right track. For the dynamic parts of the application, you could absolutely use django and view methods/classes to return json/xml or whatever data format you use. The data can

Re: JavaScript Parameter

2011-03-03 Thread Bill Freeman
Or if this is a static at page load array, render it in a tag in your template. On Thu, Mar 3, 2011 at 9:17 AM, urukay wrote: > Hi, > > what script do you mean, how does it look like? > > If you are using JQuery, just use JQuery's UI autocomplete to do the > same thing. > > Radovan > > On 3. Mar

Re: JavaScript Parameter

2011-03-03 Thread urukay
Hi, what script do you mean, how does it look like? If you are using JQuery, just use JQuery's UI autocomplete to do the same thing. Radovan On 3. Mar., 13:01 h., "Szabo, Patrick \(LNG-VIE\)" wrote: > Hi, > > I finally found a JavaScript that gives me autosuggest functionality for > a textfiel

Re: Javascript Questions

2011-01-12 Thread marco carminati
> the onchange event and it does not seem to work. So is there anyway to > find out what event(s) are fired by the dropdown box so my code works? if you active the console in firebug you could see anything.. you could always put an alert('hello') in your javascript code > Is it legal to code mul

Re: Javascript Questions

2011-01-12 Thread hank23
I'm coding a new screen and view which I'm adding to the polls app. from the django tutorial. I've written some javascript functions for setting focus and for disabling a textbox which appears to work when the page loads which is when its supposed to execute. I've also coded the dropdown box on th

Re: Javascript Questions

2011-01-12 Thread Piotr Zalewa
Is it in django-admin or completely irrelevant to this mailing list? zalun On 01/12/11 20:32, hank23 wrote: > I have a text field on a page which I want to disable when the page is > loaded and enable later when the user selects an entry in a dropdown > box. First how and where do I code the call

Re: JavaScript src files not found.

2010-12-18 Thread Bjørn Høj Jakobsen
They should be put in your "static" path. Regards Bjørn On 17 Dec., 15:53, Robert Steckroth wrote: > Hey coders, Where would stuff like .js src files go in a Django powered > Website? > ERROR -->  09:20:08.016: Network: > GEThttp://localhost:8000/users/PBUi/mouse.js[HTTP/1.0 404 NOT FOUND 30ms

Re: JavaScript src files not found.

2010-12-17 Thread Vovk Donets
2010/12/17 Robert Steckroth > Hey coders, Where would stuff like .js src files go in a Django powered > Website? > ERROR --> 09:20:08.016: Network: GET > http://localhost:8000/users/PBUi/mouse.js [HTTP/1.0 404 NOT FOUND 30ms] > ERROR --> 09:20:07.823: Network: GET > http://localhost:8000/users/s

Re: Javascript and template rendering problem

2010-11-30 Thread David De La Harpe Golden
On 29/11/10 20:03, Anderson Goulart wrote: > Hi, > > How can I render to a javascript code a variable set in a view? > I tried {{ variable }} but it returns nothing in the html source code. > When I put this {{ variable }} outside

Re: Javascript and template rendering problem

2010-11-29 Thread Sam Lai
On 30 November 2010 07:03, Anderson Goulart wrote: > Hi, > > How can I render to a javascript code a variable set in a view? I tried {{ > variable }} but it returns nothing in the html source code. When I put this > {{ variable }} outside

Re: JavaScript with Dango

2010-09-27 Thread shmengie
Javascript is a bugger and miserably difficult to debunk and implement. Google blows me away, in that they actually developed google apps with it. Kudos! I suspected it was possible, but think my brain would end up looking like funky grey mushy matter if I were one of the developers on the team

Re: JavaScript with Dango

2010-09-27 Thread aug dawg
I found the link but since I don't really know any JavaScript (I was just kinda wondering if I should start learning it), I just downloaded it and installed it. It should come in handy at some point though. On Sun, Sep 26, 2010 at 8:02 PM, Axel Bock wrote: > I gotta say this is the kind of answ

Re: JavaScript with Dango

2010-09-26 Thread Axel Bock
I gotta say this is the kind of answer which usually upsets me for obvious reasons, although I gotta admit the question surely is not very well phrased, too :) But well. I just discovered dajaxproject.com from another thread - maybe you could start from there. It seems to be a framework which coup

Re: JavaScript with Dango

2010-09-26 Thread CrabbyPete
Yes. On Sep 26, 7:48 am, aug dawg wrote: > Does Django work with JavaScript? If so, how can I use JavaScript in my > Django projects? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroup

Re: JavaScript with Dango

2010-09-26 Thread Felix Dreissig
Yep, sure you can use AJAX/Javascript in Django projects. http://www.b-list.org/weblog/2006/jul/02/django-and-ajax/ might be a good read. Regards, Felix On 26.09.2010 13:48, aug dawg wrote: > Does Django work with JavaScript? If so, how can I use JavaScript in my > Django projects? > > -- > Y

Re: JavaScript with Dango

2010-09-26 Thread Daniel Roseman
On Sep 26, 12:48 pm, aug dawg wrote: > Does Django work with JavaScript? If so, how can I use JavaScript in my > Django projects? What a strange question. Django creates web pages, and you can use JavaScript in the pages it produces just as you would with any other website pages. -- DR. --

Re: javascript

2010-09-08 Thread Shamail Tayyab
This helps? Test function dothis ( var1, var2 ) { if ( console !== undefined ) { console.log ( var1 + " : " + var2 ); } else { alert ( var1 + " : " + var2 ); } }

Re: javascript

2010-08-13 Thread buddhasystem
That's easy as other people explained, but not too flexible. I like putting hidden divs in my HTML and using jQuery to find this and parse out the data. This way, you can store complete structures id needed. elharoussi wrote: > > Hi > Is it possible to give a javascript function a django varia

Re: javascript

2010-08-13 Thread pengwupeng pengwupeng2008
of course ,you can,but you should add ", function myJavaScriptFunction( pValue ) { var aa= “{{pValue.getName}}”; ... } 2010/8/13 Imad Elharoussi > I mean can we make operations to the DjangoTemplateVariable in the > javascript function > for example: > function myJavaScriptFunction( pValue )

Re: javascript

2010-08-13 Thread Daniel Roseman
On Aug 13, 3:50 pm, Imad Elharoussi wrote: > I mean can we make operations to the DjangoTemplateVariable in the > javascript function >  for example: > function myJavaScriptFunction( pValue ) { > >   {{pValue.getName}} > ... > > } > No. How would that be possible? The template is rendered on the

Re: javascript

2010-08-13 Thread Imad Elharoussi
I mean can we make operations to the DjangoTemplateVariable in the javascript function for example: function myJavaScriptFunction( pValue ) { {{pValue.getName}} ... } 2010/8/13 Tim Sawyer > Yes > > myJavaScriptFunction( {{DjangoTemplateVariable}} ); > > function myJavaScriptFunction( pValue

Re: javascript

2010-08-13 Thread Boguslaw Faja
Hi, Why not? onclick="javascript:alert('{{param}}');" ? best regards, On Fri, Aug 13, 2010 at 4:31 PM, Imad Elharoussi wrote: > Hi > Is it possible to give a javascript function a django variable as a > parameter? > thank you > > -- > You received this message because you are subscribed to th

Re: javascript

2010-08-13 Thread Tim Sawyer
Yes myJavaScriptFunction( {{DjangoTemplateVariable}} ); function myJavaScriptFunction( pValue ) { ... } Tim. > Hi > Is it possible to give a javascript function a django variable as a > parameter? > thank you > > -- > You received this message because you are subscribed to the Google Groups >

Re: Javascript string catalogs (jsi18n) - accessing strings in project/locale?

2010-07-14 Thread Stodge
Wow - I think you just fixed my problem! Awesome. Thanks! On Jul 12, 4:57 pm, Jari Pennanen wrote: > Hi, I know this comes late, but for the future reference: > > My problem was that I had "locale" directory in *project* directory, > "myproject/locale" but I didn't have myproject in INSTALLED_AP

Re: Javascript string catalogs (jsi18n) - accessing strings in project/locale?

2010-07-12 Thread Jari Pennanen
Hi, I know this comes late, but for the future reference: My problem was that I had "locale" directory in *project* directory, "myproject/locale" but I didn't have myproject in INSTALLED_APPS. So the thing that contains localization strings *must* be ALSO in the INSTALLED_APPS = [..., 'myproject'

Re: Javascript string catalogs (jsi18n) - accessing strings in project/locale?

2010-06-08 Thread Stodge
I even defined this in settings.py but it still doesn't work: LOCALE_PATHS=( os.path.join(os.path.abspath(os.path.dirname(__file__)), 'locale'), ) On Jun 8, 9:13 am, Stodge wrote: > I ran makemessages -d djangojs from my project level directory, and > Django automatically generated the

Re: Javascript Modal Window

2010-02-10 Thread CrabbyPete
Thanks, but I was not clear in my question. If I use jQuery or any other javascript framework, to do a modal window from a link I have to load some html code that is the form Here is an example using thickbox in a template login In a view I load an html template with get_template() Do I do

Re: Javascript Modal Window

2010-02-08 Thread Shawn Milochik
You can use a jQuery UI Dialog. It can be modal, and you can easily use some jQuery AJAX to submit your login view and receive the response. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Re: Javascript argument and django template tags

2010-01-26 Thread Sam Lai
2010/1/27 mojito : > I'd like to do something as follows: > > > function namelist(name) { > . > > {% ifequal  myname name %} > > {% endifequal %} > > > If I hardcode name this works not otherwise,  please help. That doesn't work because the Django template is evaluated at the server, so

Re: JavaScript function call

2009-12-30 Thread gilbert F.
Great. Thanks Kevin! On Dec 29, 1:28 am, Kevin Renskers wrote: > First of all, in your template include jQuery: > http://ajax.googleapis.com/ajax/ > libs/jquery/1.3/jquery.min.js"> > > Create a new javascript file, and put the following code in it: > > // This is automatically run when the do

  1   2   >