Reusable HTML, does it exist? (Like the Scriptlet)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freedom9ner
    New Member
    • Aug 2008
    • 3

    Reusable HTML, does it exist? (Like the Scriptlet)

    Hello, I'm investigating how HTML can be componentized and reusable. Remember Microsoft's SCRIPTLET object (TYPE="text/x-scriptlet")? I thought this was a great invention. But other browsers do not support it! I'm not even sure the latest IE will even support it.

    I have custom html ui blocks that I want to place many times on a screen. Like custom text fields, custom buttons, and other custom ui elements coded in HTML (that are browser aware). I am familiar with server side solutions (ASP.NET user controls & server controls), but is there any technique/approach not dependent on the server?

    Are there any alternatives? New XHTML features, anything?
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    I believe that your only option is going to be server side which can handle this dynamically for you. Unless you can use some Ajax, not sure on that one.

    --Kevin

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Originally posted by eWish
      Unless you can use some Ajax, not sure on that one.
      it is possible, but you have to use XML (import XML → (DOM) → HTML) otherwise you have to parse the markup by regular expressions which will result in a lot of code.

      Comment

      Working...