how about in firefox ? if the same that we can do anything about this.

if not  you can u jquery method
$(function(){
   //do your initrail or other.
})

jquery method was not like body onload.

On 1月10日, 上午11时34分, Charles Cossé <cco...@gmail.com> wrote:
> Hello,
>
> Just writing to share a revelation -- that using:
>
> <script language="JavaScript">
>
> instead of
>
> <script type="text/javascript">
>
> makes it possible to use:
>
> <body onload="init();">
>
> in a template, before init() is actually defined ... i think chrome mainly
> didn't like the "anonymous function" init reference in my template when it
> was not yet defined.  Here's the template i'm talking about (head section):
>
> <head>
>     <title>{% block title %}{% endblock %}</title>
> <script language="JavaScript">
> {% block js %}
> {% endblock %}
> </script>
> </head>
>
> Hope that helps somebody down-the-line.  Over-and-out.
> -Charles

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

Reply via email to