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

2009-07-06 Thread Slowness Chen
fell back to the append example from the jquery website and loaded it from the server side, firefox displayed it as an XML! then I checked the server side, found the server returns the webpage with "mimetype="application/xhtml+xml", then I removed it and It worked. On Jul 6, 4:05 pm,

[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('xxxx'); On Jul 6, 2:24 pm, Slowness Chen wrote: &g

[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 lik

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

2009-07-05 Thread Slowness Chen
the html is like the following. it works fine if I load it as a local html file, but when I load it from a server, it doesn't, I printed $ ("#show_messages_div").html() in console but it showed nothing. it just doesn't make any sense to me. I tried searching around but found nothing. can anybody