Deprecated Items and Newer Constructs

Last post 07-24-2009 3:05 AM by Dhaliwal. 16 replies.

Sort Posts:

  • Re: Deprecated Items and Newer Constructs

    09-01-2008, 7:30 AM
    • Member
      2 point Member
    • mathewhadley
    • Member since 09-01-2008, 11:27 AM
    • Posts 1

    The advantages of ``strict syntax'' over the legacy FTL syntax are:

    • Since all <#...> and </#...> are reserved for FTL:

      • We can introduce new directives without breaking backward compatibility.

      • We can detect if you made a typo, i.e. <#inculde ...> is treated as parse-time error, rather than silently treated as simple text.

      • It is easier for third-party tools to handle templates (e.g. do syntax highlighting), especially since they don't have to know about the new directives introduced with new releases.

      • Templates are more readable, since it is easier to spot <#...> tags embedded into HTML or other markup.

    • <# and </# is illegal XML (except in CDATA sections), and illegal in almost all other SGML applications, so they can't interfere with the tags used in the static text parts (e.g. if you have include element in the generated XML).

    -------------------------------------------------------------------
    mathew hadley   
    Normal 0 MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} interactive marketing

     

  • Re: Deprecated Items and Newer Constructs

    07-24-2009, 3:05 AM
    • Participant
      992 point Participant
    • Dhaliwal
    • Member since 06-26-2006, 5:18 AM
    • Chandigarh, India
    • Posts 230

    vcsjones,

    A very thoughtful post, but about name and id attribute, I was under an impression that id is used to specify the unique id of a control where as name specifies the name of a control. I normally use these 2 in javascript in such way:

    id- when I look for a single control
    name - when I look for group of controls

    the function in javascript that can be used for these are :

    document.getElementById('') for id
    document.getElementsByName('') for name

    How come the name attribute is Deprecated, where as document.getElementsByName('') is available in intellisense of javascript in vs-2008.
    and
    How can id replace the need for name when we can have same name for many controls where as id should be unique

    ref: http://www.w3schools.com/TAGS/tag_a.asp

     

    Gurpreet Singh Dhaliwal
Page 2 of 2 (17 items) < Previous 1 2