You know...after I posted the second reply...i thought a second and
realized this would be the solution. Thanks.
Seth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
I'm not sure how portable this code is, but this little test I just
made will do it for you:
window.onload = function() {
document.getElementById('test').onchange = function() { alert('this is
a test'); };
};
Hello
Hello Again
As you can see, you add a function to window.onload so that
I guess what I don't understand is the "hook" part. How do I change
the onChange event for the auto-generated field in the admin area?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
You can include javascript files to admin pages using the 'js' field in
class Admin in your model. Using javascript, you could presumably hook
into the onChange of the first select box and do your filtering.
HTH,
Chris Dary
Web Developer
Carthage College
http://www.carthage.edu/webdev/
Seth Bun
I was wondering if anyone has found a way to filter a select box
depending on the value of another select box. This is really easy with
javascript but I want to use the admin module. Any suggestions?
--~--~-~--~~~---~--~~
You received this message because you ar
5 matches
Mail list logo