Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-08 Thread Michael Geary
Eric, you really need to put up a test page so we can try actually loading it. Otherwise it's too hard to tell what might be wrong. I'm not even sure what the problem is we're supposed to be looking at! -Mike On Mon, Dec 7, 2009 at 11:44 PM, Eric Zhong ericiszhongwen...@gmail.comwrote: i have

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-08 Thread Michael Geary
Hi Eric, Please forgive me for not explaining clearly. Here is what I meant by a test page: post your HTML page on a website somewhere and give us the URL to that page. Then we can click the link and load your page, just like any other web page. That makes it much easier to help you

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-08 Thread Eric Zhong
Michael, thank you very much I find the bug, the last tr should be /tr. $(#tb_video).append('tr tdinput type=checkbox //tdtd' + d.name

[jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread seasoup
javascript cant read strings over line breaks. $(#tb_video).append(' \ tr \ tdinput type=checkbox //td \ td' + d.name + '/td \

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Michael Geary
Don't be so sure about that. I thought the same thing you did, but we were both wrong: you *can* write multline strings in JavaScript. Backslash-newline works inside a string just like it does outside one in normal JS code. You do have to be careful; there can't be any whitespace after the

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Eric Zhong
i have modified the code , but the result is the same, even if i write this in one line !!! Help !!! one line version: html head script src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js /script SCRIPT