[jQuery] Dynamically removing an inline script block

[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/