Finally, problem solved :)

These are the javascript functions included in the admin page that
works:

<script type="text/javascript" src="../../../jsi18n/"></script>
<script type="text/javascript" src="/media/js/core.js"></script>
<script type="text/javascript" src="/media/js/admin/
RelatedObjectLookups.js"></script>
<script type="text/javascript" src="/media/js/SelectBox.js"></script>
<script type="text/javascript" src="/media/js/SelectFilter2.js"></
script>

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 found
anymore.

The solution is this:

<script type="text/javascript" src="/admin/jsi18n/"></script>

Use an absolute path. Depending on your setup offcourse.

Thanks Enrico and Rob for your help :)
On 12 apr, 01:22, "Enrico" <[EMAIL PROTECTED]> wrote:
> 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 fields into that cool widget.
>
> I agree with Rob, if you didn't touch the page source, you may be
> missing some JS files.
> If you read the comments inside the 'SelectFilter2.js' file, you'll
> see that it requires some other files.
>
> Good luck,
> Enrico


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to