The problem happens with all browsers, including Firefox.  But the bug
does not happen on Firefox *if* I'm debugging with Firebug.

The instance of $('#foo') that fails executes correctly 99% of the
time and then fails in one particular case.  In the case that it
fails, the DOM node is clearly visible if I do 'view source' on the
page.  So my question is...  What would cause that to happen?

It's plausbile that your comment about the DOM tree might be related
to the bug.  If an ajax call fetches a chunk of html from the server,
what is the correct way to add that html to the DOM tree (instead of
just appending it as text)?


Thanks!
-Mike


On Sep 20, 8:12 am, "Peter Bengtsson" <[EMAIL PROTECTED]> wrote:
> So it works in Firefox but the "bug happens on all browsers"??
> Are you sure the element with that ID is part of the DOM tree and not
> something that is pasted in as "text" by ajax. $('#foo') does work in
> jQuery 1.2
>
> On 9/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I have a webapp that uses JQuery (version 1.2) for doing javascript
> > DOM manipulation. The webapp works great most of the time. However, we
> > have an easily reproducible bug in which JQuery cannot find a
> > particular DOM object under certain circumstances, even though the DOM
> > object does seem to be there. Even worse, if I try to debug the
> > problem with Firebug, the problem does not happen!
>
> > The bug happens on all browsers.  And it happened with both JQuery
> > 1.1.4 and JQuery 1.2.
>
> > Currently, the webapp is in private beta, so it's not accessible to
> > the public.  However, if you are a JQuery expert and would like to
> > take a look at the problem, send me an email and I will give you a
> > login to the site.
>
> > Also, I have created a dummy version of the app that includes the UI
> > and a dummy back-end.  If it would be helpful, I would be happy to
> > send you the source of the dummy version.  The app is a java app that
> > runs under Tomcat or any other J2EE container.
>
> --
> Peter Bengtsson,
> workwww.fry-it.com
> homewww.peterbe.com
> hobbywww.issuetrackerproduct.com

Reply via email to