/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
View this message in context:
http://www.nabble.com/JQuery-IE7-and-document.ready-tf3207782.html#a8910213
Sent from the JQuery mailing list archive at Nabble.com
I will try to narrate the actual scenario. I have a list of buttons on my
home page. When a user clicks on one of the button, it loads a list (select
option). Any selection made on the list loads another div (again using
ajax) and I use jquery to load the second div. This all works as
Hi,
I am new to JQuery. I have tried few ajax features of jquery and they all
work beautifully on firefox. But when I try them on IE7, they fail. The
problem is with ajax and jquery. I load a div using ajax load function.
The contents of the div also include some new jquery script to controller
$(document).ready wont work in pages loaded via AJAX, try something like
this:
script... document.ready(...
$('button').click(
$('#load_div').load(..some url.,function(response) {
//..whatever you need to be done after the load
});
});
Yes, $(document).ready() should only happen once - when the document is
first ready. What you're using for magic would infuriate developers on
most other projects! :)
You should have a separate function for an ajax callback to do whatever
you're doing, even if it's the same code, and you're
Can you post a test page because that sure doesn't happen for me.
Mike
Ok then jQuery is broken ;)
$(document).ready() fires each time i load new ajax content in both FF
and IE (lower than 7)
___
jQuery mailing list
discuss@jquery.com
$(document).ready() will immediately fire functions passed in after
the $(document).ready() function has already been called. Or at least
that is what the code says it should do.
--
Brandon Aaron
On 10/10/06, Mike Alsup [EMAIL PROTECTED] wrote:
Can you post a test page because that sure
Mike Alsup wrote:
Can you post a test page because that sure doesn't happen for me.
Mike
I've tracked down the problem to IE7 in standalone mode. I am almost
certain that that is the problem. It sometimes just keeps hanging on (1
item remaining) and thus not firing the $(document).ready()
Brandon Aaron schrieb:
$(document).ready() will immediately fire functions passed in after
the $(document).ready() function has already been called. Or at least
that is what the code says it should do.
Good point. Maybe this should be added to the documentation for the
ready event.
--
Hi Guys,
Just found another document.ready bug at least i hope it is a bug :)
The document.ready is not firing in IE7 when loading content via ajax
into a DIV. Is this a common problem which is allready known? Someone
might have a fix for this?
The current scenario fires succesfully in both
Webunity | Gilles van den Hoven schrieb:
Hi Guys,
Just found another document.ready bug at least i hope it is a bug :)
The document.ready is not firing in IE7 when loading content via ajax
into a DIV. Is this a common problem which is allready known? Someone
might have a fix for this?
11 matches
Mail list logo