When is that code running? If it's in the head element and not
checking whether the document's finished yet, it might be executing
before the anchor you're targeting is ready. Consider either using
this, for something using jQuery:

$(document).ready(function() {
    window.location = window.location + '#whatever';
});

or just put that one line (with a semicolon at the end, since it's
missing one) in a <script> element just before the </body> tag (the
Google Analytics strategy).

-Justin

On Jul 16, 8:54 am, Chris Seberino <cseber...@gmail.com> wrote:
> On Jul 15, 3:44 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
>
> >      window.location = window.location + '#whatever'
>
> I added that code to script element in head and it didn't work.
>
> I have a TinyMCE javascript editor that gets run too.  I don't know if
> that is conflicting or if there is something else I need to do to make
> it work?
>
> cs

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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