Hello :)
> It's 2007. There's better ways of doing these things than littering
> your html with event handlers.
The way of using of such thing was:
...
form.field_name js_fct_string
...
js_fct_handler could be something like this:
"onclick=some_js_fct(this)"
To achieve something like this i
On 02-Feb-07, at 7:11 PM, michelts wrote:
> Can someone show an example of django+javascript integration?
http://www.b-list.org/weblog/2006/08/05/django-tips-simple-ajax-
example-part-2
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
[EMAIL PROTECTED] wrote:
> Not necessarily... You don't have to get them by ID. You can get them
> by tagname or, with a simple helper, class name.
> Or group them, then cycle through... something like
> var controls =
> document.getElementById("controls").getElementsByTagName("a")
> for(var
Not necessarily... You don't have to get them by ID. You can get them
by tagname or, with a simple helper, class name.
Or group them, then cycle through... something like
var controls =
document.getElementById("controls").getElementsByTagName("a")
for(var i=0;i
Look at:
http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1
and
http://www.b-list.org/weblog/2006/08/05/django-tips-simple-ajax-example-part-2
Django has quite a bit of things built in that will help you,
regardless of which JS library you want to use.
On Feb 2, 7:41
Hi!
How do you recomend work with javascript and django? There is
documentation for all tasks on django but there is nothing about using
ajax/json/javascript with it.
I like to use MochiKit and I like to made use of ajax at all, to be
able to do this, I made a helper function called
Why does that hurt? Sure is better than having onclick handlers
littering your html all over the place.
On Feb 2, 6:27 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi. Is there any clean way to add javascript handler to form field
> (subclas of django.forms.FormField)?
>
> The result
Hi. Is there any clean way to add javascript handler to form field
(subclas of django.forms.FormField)?
The result should look like:
Right now im using 'ugly'
document.getElementById('id_some_name') .
from template level. But it hurts and is ugly IMHO ;)
Regards
Michal
8 matches
Mail list logo