Hi,

Let's say a "A" page has a <div> in it with id named "container" and a "B" page is called via ajax...

e.g $("#container").load("B")

In order to load the "B" page, the "A" page has to be already loaded, so as the page is already loaded it do not reload again
when you call "B" page; this is why nothing occurs in the "A" page1..

Hope it is clear

----- Original Message ----- From: "Matt Wilson" <m...@tplus1.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Wednesday, September 09, 2009 12:11 PM
Subject: [jQuery] $.load doesn't trigger $(document).ready, but $.ajax({type:"GET", ...} does???



It seems like when I load a page into a div like this, the $
(document).ready code in the loaded page doesn't fire:

$("#mydiv").load("/a");

But when I do this, the $(document).ready on /a does fire.

Is this correct?

Reply via email to