Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Removing all the elements from a panel

Return to Forums

  • Author
    Posts
    • #75270

      I realize this is likely a very basic question but I can’t find anything on how to do this.

      The current state of my script is that user input in panel 1 results in gui changes to panel 2 — that is the desired outcome.

      My problem is if the user changes his input in panel 1 the new gui elements in panel 2 get appended to the previous gui elements. That is not the desired outcome. The goal is to have panel 2 return to an empty state and then be populated based on the user input every time.

      I’ve googled for how to remove a panel, how to delete a panel, how to clear a panel, etc and I can’t find anything.

      I know how to remove individual gui elements so a solution would be to remove all the elements using the previous input and then repopulate using the new input but that seems like it would be more cumbersome than necessary — I have to imagine that there is a way to just clear all of panel2 and then repopulate.

    • #75278
      David Blatner
      Keymaster

      I have heard that the HTML panels are pretty tricky and not all things are as obvious as you would expect them to be. That is one of the main topics we’ll be covering at The Creative Developers Summit at pepcon.com this year.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads