[jQuery] Re: How to add content here?

2007-08-30 Thread Sagari
Thanks, Karl! Methinks, this is the best method. On 29 авг, 21:23, Karl Swedberg [EMAIL PROTECTED] wrote: On Aug 28, 2007, at 11:12 PM, Sagari wrote: Greetings, The task: to add content (HTML) exactly at the place where script was placed, i.e. how do I get the parent of a scrirpt

[jQuery] Re: How to add content here?

2007-08-30 Thread Sagari
Hi Mike, The task is to use DOM scripting instead of good old document.write(). The winds of future, damn them. Thanks for your code sample! On 29 авг, 23:55, Michael Geary [EMAIL PROTECTED] wrote: My favorite way to do this is to take advantage of the fact that the the script tag is the

[jQuery] Re: How to add content here?

2007-08-29 Thread Frank Peterson
It was on ajaxian awhile back, i cant find it but go through every article in the last 2 months and u should find it, please post it if you find it, i shoudl of bookmarked it :p http://ajaxian.com/

[jQuery] Re: How to add content here?

2007-08-29 Thread Karl Swedberg
On Aug 28, 2007, at 11:12 PM, Sagari wrote: Greetings, The task: to add content (HTML) exactly at the place where script was placed, i.e. how do I get the parent of a scrirpt type=text/javascript src=scriptsource.js/script -like tag? I need to use DOM scripting, not document.write().

[jQuery] Re: How to add content here?

2007-08-29 Thread Michael Geary
My favorite way to do this is to take advantage of the fact that the the script tag is the last one in the document at the time that it's executed. This works with inline scripts as well as .js files. Try pasting this code into the body of a test document: Insert text here: { script