[jQuery] Dynamically removing an inline script block

[jQuery] Dynamically removing an inline script block

$('script').remote();
Should do the trick right? Assuming that you put that before the call to
Mike's function (which probably adds script tags).
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 Bruce MacKay
Sent: Thursday, January 04, 2007 3:33 PM
To: discuss@jquery.com
Subject: [jQuery] Dynamically removing an inline script block
Hello folks,
I'm seeking help in dynamically REMOVING an inline script block within the
head tags.
My current application involves a case study editor, wherein users
add/delete/edit branches to a decision tree. The visual representation of
the tree is generated by COOLjsTree
(http://javascript.cooldev.com/) and is loaded into the page as an inline
script inside the head tags.
I want to be able to dynamically delete the script block containing the
"old" tree, and replace it with a "new" block immediately after a branch is
added/deleted.
I'm using Michael Geary's code
(http://www.nabble.com/Dynamically-loading-scripts-tf1913101.html#a5237431)
to load the new script block as needed. I'm stumped, however, as to how I
can dynamically delete the existing ("old") script block. (In a previous
version of the application I used frames and the problem didn't exist - I
just refreshed the frame page in which the tree resided - but I'm now using
a frameless approach and that option isn't available now)
Is this at all possible? If so, a direction to a solution would be
appreciated.
Thanks,
Bruce
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/