Re: AWS Polly w/ strictly Django and Javascript

2023-08-15 Thread Mike Dewhirst
On 15/08/2023 7:26 am, Lightning Bit wrote: Hello, how could one go about integrating AWS Polly voices onto a website utilizing only Django, HTML, CSS, and Javascript? I do not want to use "node.js" or "react". Look closely at htmx.org -- You received this message because you are subscribe

AWS Polly w/ strictly Django and Javascript

2023-08-14 Thread Lightning Bit
Hello, how could one go about integrating AWS Polly voices onto a website utilizing only Django, HTML, CSS, and Javascript? I do not want to use "node.js" or "react". -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Django and Javascript

2014-06-11 Thread Cal Leeming [Simplicity Media Ltd]
This is quite an open ended question, and touches on the subject of asset pipelines. This also touches on the whole debate around how JS applications should be developed, libraries such as Ansible and Backbone may impact your style/preference. The closest library I've seen so far is django-pipeli

Re: Django and Javascript

2014-06-11 Thread César García Tapia
Not really. I'm not looking for an answer to a specific question. I'm just looking for a "good practices manual" on writing and deploying javascript in a django environment. El miércoles, 11 de junio de 2014 17:41:45 UTC+2, Cal Leeming [Simplicity Media Ltd] escribió: > > Have a look at how S

Re: Django and Javascript

2014-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Have a look at how Stripe do it [1]. https://js.stripe.com/v2/";> Stripe.setPublishableKey('YOUR_PUBLISHABLE_KEY'); I think this is what you're asking for (if I've understood your question correctly). Cal [1] https://stripe.com/docs/stripe.js On Wed, Jun 11, 2014 at 4:22 PM, César García

Django and Javascript

2014-06-11 Thread César García Tapia
Hi. Probably this is an old subject, and it's been argued lots of times, but I guess I need some help to find the right resources. When building a real-world django application, you need javascript. Lots of it. Making JS talk to django is more or less easy: $.ajax(), django-rest-framework, and

Re: trouble with Django and javascript

2009-02-02 Thread BluMarble
I personally feel you should look into doing the post via Ajax, pass your form field values into an array and unpack the values in your view: ie: function AjaxSubmitForm(formdata){ $.post('/ajax/some-view/'+formdata+'/', function(data){ if(data == 'done'){ d.body.innerHTML = "

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
Sent: Sun Feb 01 21:07:28 2009 Subject: Re: trouble with Django and javascript Not working. Still the same problem( when button is clicked, the text of "This is a test" will display in the iframe for one second, and then disappear.). On Feb 2, 12:55 pm, "Will Matos" wrote: >

Re: trouble with Django and javascript

2009-02-01 Thread min
Dir. of Tech. Sales > > > > - Original Message - > From: django-users@googlegroups.com > To: Django users > Sent: Sun Feb 01 20:54:32 2009 > Subject: Re: trouble with Django and javascript > > If I use Onclick="submit();", how to add the javascript fu

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
Onclick="test();submit();" Will Matos TCDI Dir. of Tech. Sales - Original Message - From: django-users@googlegroups.com To: Django users Sent: Sun Feb 01 20:54:32 2009 Subject: Re: trouble with Django and javascript If I use Onclick="submit();", how to add the

Re: trouble with Django and javascript

2009-02-01 Thread min
Greensboro, NC  27407 > 336.232.5832 office > 336.232.5850 fax > 336.414.0467 mobile   > > > > - Original Message - > From: django-users@googlegroups.com > To: Django users > Sent: Sun Feb 01 19:52:49 2009 > Subject: Re: trouble with Django and javascript

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
ubject: Re: trouble with Django and javascript Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? Regards min On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submi

Re: trouble with Django and javascript

2009-02-01 Thread min
Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? Regards min On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submitting the form, > so you see the text for a second and then the form reloads

Re: trouble with Django and javascript

2009-02-01 Thread min
Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? Regards min On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submitting the form, > so you see the text for a second and then the form reloads

Re: trouble with Django and javascript

2009-02-01 Thread min
Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? Regards min On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submitting the form, > so you see the text for a second and then the form reloads

Re: trouble with Django and javascript

2009-02-01 Thread min
Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submitting the form, > so you see the text for a second and then the form reloads. > > Change

Re: trouble with Django and javascript

2009-02-01 Thread min
Thanks for you reply. However, if I change the 'submit' to button, how can I submit the form to the server? On Feb 2, 11:34 am, "Todd O'Bryan" wrote: > In addition to displaying the message, it's also submitting the form, > so you see the text for a second and then the form reloads. > > Change

Re: trouble with Django and javascript

2009-02-01 Thread Todd O'Bryan
In addition to displaying the message, it's also submitting the form, so you see the text for a second and then the form reloads. Change the instead of "submit" and see if that helps. Todd On Sun, Feb 1, 2009 at 6:05 PM, min wrote: > > First I have a form: > > class TestForm(forms.Form): >

Re: trouble with Django and javascript

2009-02-01 Thread min
Besides, I use firefox. thanks On Feb 2, 10:05 am, min wrote: > First I  have a form: > > class TestForm(forms.Form): >   name = forms.CharField( max_length=30 ) >   age = forms.CharField( max_length=30 ) > > Then in the views.py: > > def Test_page(request): > >   form = TestForm() >   variable

Re: trouble with Django and javascript

2009-02-01 Thread min
Besides, I use firefox. On Feb 2, 10:05 am, min wrote: > First I  have a form: > > class TestForm(forms.Form): >   name = forms.CharField( max_length=30 ) >   age = forms.CharField( max_length=30 ) > > Then in the views.py: > > def Test_page(request): > >   form = TestForm() >   variables = Requ

Re: trouble with Django and javascript

2009-02-01 Thread min
Besides, I use firefox. On Feb 2, 10:05 am, min wrote: > First I  have a form: > > class TestForm(forms.Form): >   name = forms.CharField( max_length=30 ) >   age = forms.CharField( max_length=30 ) > > Then in the views.py: > > def Test_page(request): > >   form = TestForm() >   variables = Requ

trouble with Django and javascript

2009-02-01 Thread min
First I have a form: class TestForm(forms.Form): name = forms.CharField( max_length=30 ) age = forms.CharField( max_length=30 ) Then in the views.py: def Test_page(request): form = TestForm() variables = RequestContext(request, { 'form': form, }) return render_to_response('Tes

Window.Location using django and javascript

2007-08-29 Thread dOS
Im using a 2knob slider from blueshoes I have the following code that prints out the url of the site {% url full-filter old_origin,length=old_length,area=old_area,from_price=old_from_price,to_price=old_to_price,shipdate=ship_shipdate %} and I need to pass a price range in the url like this /sho