Results 1 to 2 of 2

Thread: destroy object, make new one

  1. #1
    Join Date
    May 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default destroy object, make new one

    Hi -

    I have a web page with an object (a scrolling textbox) that I want to change due to user input.

    Is there a way to destroy the object, and create a new one? That way I can pass the user's information to the constructor.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can using the DOM (Document Object Model) where elements, treated as nodes of their parents, siblings or even children can be accessed for such purposes and new elements can be created and later appended in a similar fashion but, there are easier ways to get the same effect, though the DOM is sometimes the best. I'd need a better idea of what exactly you were trying to do.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •