[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-10 Thread Brett Ritter
On Wed, Sep 9, 2009 at 6:08 AM, Mariano mariano.calan...@gmail.com wrote:       script type=text/fbml           div id=testsome test/div       /script Now I have the will to access to the text inside test div but the code $('#test').text(); doesn't work, matter of fact nothing is returned.

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread rupak mandal
Div is outside the HTML DOM. After creating the div element you have to append the div into the body. thanks Rupak On Wed, Sep 9, 2009 at 3:38 PM, Mariano mariano.calan...@gmail.com wrote: I have an HTML page that looks like this: html head/head body script type=text/fbml

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread Nick Fitzsimons
2009/9/9 Mariano mariano.calan...@gmail.com: I have an HTML page that looks like this: html   head/head    body       script type=text/fbml           div id=testsome test/div       /script    /body /html Now I have the will to access to the text inside test div but the code

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread Cesar Sanz
Why in the earth must you have a div inside scipt tags? - Original Message - From: Nick Fitzsimons n...@nickfitz.co.uk To: jquery-en@googlegroups.com Sent: Wednesday, September 09, 2009 6:55 AM Subject: [jQuery] Re: HTML code inside script tag, how access to it with DOM??? 2009

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread Mr Speaker
? - Original Message - From: Nick Fitzsimons n...@nickfitz.co.uk To: jquery-en@googlegroups.com Sent: Wednesday, September 09, 2009 6:55 AM Subject: [jQuery] Re: HTML code inside script tag, how access to it with DOM??? 2009/9/9 Mariano mariano.calan...@gmail.com: I have an HTML

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread RobG
On Sep 10, 9:49 am, Mr Speaker mrspea...@gmail.com wrote: I think it's perfectly valid to have a div inside a script tag (or at It is never valid markup in an HTML document, a div element can't be a child of a script element. least useful), if a div makes sense to the TYPE you defined for

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-09 Thread Mr Speaker
Hey! No arguing with John Resig around here ;) But the script tag thing is a templating solution - so the advantage is obvious: having to maintain a 10kb+ HTML fragment encoded as a JavaScript variable (or even comprised of jQuery statements) is not fun. I'm not a fan of the script