Re: SelectMultiple widget

2007-04-12 Thread Enrico
Hi Masuran! Nice, I'm glad you've made it. I'm pretty sure that it's possible to clean up or dismiss some of those JS files, most of them are related to Django admin and won't be needed just to use the widget. The 'jsi18n' path is a Django admin view, it's path is relative because the Admin app

Re: SelectMultiple widget

2007-04-12 Thread masuran
Finally, problem solved :) These are the javascript functions included in the admin page that works: The problem was the fact that the jsi18n script is included by a relative path. If your URL path is just one directory longer or shorter than the admin URL path, the i18n script can't be fo

Re: SelectMultiple widget

2007-04-11 Thread Enrico
Hi Masuran, You're welcome. :) That's weird! Did you save the entire page source *with* embedded files (.css, .js, images)? The page source itself is the same, what makes the "magic" is the 'SelectFilter2.js' file, that manipulates the source when the page loads, transforming SelectMultiple fie

Re: SelectMultiple widget

2007-04-11 Thread oggie rob
Try using firebug (extension for Firefox). You can see how it is instantiated in the admin site and where things are going wrong. I suspect you either are missing the "vSelectMultipleField" (is that right?) class, the multiple="multiple" attribute, or have not got all of the JS included. As for wh

Re: SelectMultiple widget

2007-04-11 Thread masuran
Hello Enrico, First of all thank you for your help :) But unfortunately that didn't solve my problem. Next I tried to copy the entire source of an admin generated form that had the two list boxes and modify it. But even without modifying it I didn't get the two listboxes. Very very very strange.

Re: SelectMultiple widget

2007-04-10 Thread Enrico
Hi, There is a 'YOUR_ADMIN_MEDIA/js/SelectFilter2.js' file, I think this is the file that does the "magic". Maybe you can use it as a base for applying the widget on your site. Best regards, Enrico --~--~-~--~~~---~--~~ You received this message because you are

Re: SelectMultiple widget

2007-04-10 Thread masuran
Hey Enrico, I already tried that, I can't see anything special about the code in the admin page. On 10 apr, 14:21, "Enrico" <[EMAIL PROTECTED]> wrote: > Hi! > > The widget is almost the same as your "blank listbox" but with a > little Javascript. > > Take a look at the admin page source, it may

Re: SelectMultiple widget

2007-04-10 Thread Enrico
Hi! The widget is almost the same as your "blank listbox" but with a little Javascript. Take a look at the admin page source, it may be easy to reuse the code. Best regards, Enrico --~--~-~--~~~---~--~~ You received this message because you are subscribed to th