[jQuery] Re: jquery append() works for local but not when loaded from server side? the same html file

2009-07-06 Thread Slowness Chen
phew! after wasting half of day on this subtle bug I finally figured it out, I'll put it here in case others run into the same issue. I spent most of my time playing around on client side with firebug, everything seems just fine, but once I append some html tag, it does nothing. when I fell back

[jQuery] Re: jquery append() works for local but not when loaded from server side? the same html file

2009-07-06 Thread Slowness Chen
when I load the html from server side if I append pure text like $ ("#show_messages_div").append(''); it works, but not if I append html like $("#show_messages_div").append(''); On Jul 6, 2:24 pm, Slowness Chen wrote: > by setting a breakpoint, I made sure the "$ > ("#show_messages_div

[jQuery] Re: jquery append() works for local but not when loaded from server side? the same html file

2009-07-05 Thread Slowness Chen
by setting a breakpoint, I made sure the "$ ("#show_messages_div").append("test");" line is executed, but nothing happens, but if copy this line and execute it in the console, it works, this is so weird. On Jul 6, 1:16 pm, Slowness Chen wrote: > the html is like the following. it works fine if I