[jQuery] Dynamically removing an inline script block
You could also read in the file using Coldfusion or PHP and remove the
script block that way.
---------
Andy Matthews
Senior Coldfusion Developer
Office: 877.707.5467 x865
Direct: 615.627.9865
Fax: 615.467.6249
amatthews@dealerskins.com
www.dealerskins.com
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Michael Geary
Sent: Thursday, January 04, 2007 4:30 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Dynamically removing an inline script block
That would remove all script tags, but it sounds like that won't help.
Removing a script tag is just a memory optimization - it may free up the
memory that the script's source code took. It won't unexecute the JavaScript
code that has already been run, and it won't undo any DOM changes that the
code made.
There are several ways to delete the DOM nodes that COOLjsTree inserted, of
course - I wouldn't know which to suggest without seeing the page. The real
question may be whether the COOLjsTree code will freak out if you remove its
DOM nodes behind its back.
Or I may have misunderstood the problem...
-Mike