5

I have two pages, on the first page after an event happens I change the location of the page by using:

window.location.href = "/pageb";

On the second page, I have a document ready event that doesn't fire when coming from the page above. The ready event works when the page is browsed to normally.

$(document).ready(function() {
     alert('ready');      
});

I am using the google ajax cdn to include jquery on my pages. I'm stumped...

jimj
  • 1,005
  • 2
  • 11
  • 22

1 Answers1

1

It works for me, though I'm using jQuery (1.4.1) from my server, and I use :

window.location = "/index.html";

I don't see why it would change anything, but maybe you could try anyways ?

David V.
  • 5,708
  • 3
  • 27
  • 27