Wednesday, January 12, 2011

Re: Javascript Questions

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 the screen to call the enableField() function for
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?
Is it legal to code multiple javascript function calls when an event
fires, by separating them with a semicolon? Please advise. Thanks.

On Jan 12, 2:40 pm, Piotr Zalewa <zal...@gmail.com> wrote:
> 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 to my disablefield
> > function when the page loads? Second what event is generated whenever
> > I select an entry in a dropdown box(onclick, ondblclick, onchange, or
> > some other one)?
>
> --
> blog  http://piotr.zalewa.info
> jobs  http://webdev.zalewa.info
> twit  http://twitter.com/zalun
> face  http://facebook.com/zaloon

--
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@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate