Web Analytics Made Easy -
StatCounter No use of < or > - CodingForum

Announcement

Collapse
No announcement yet.

No use of < or >

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No use of < or >

    How can I do the following check without using a < or >
    A xml parser keeps replacing it with &gt; and its messing up my script!
    Code:
    if (todaysDate > selectedDate) {
    TIA
    Dale
    Dale Ellis
    __________________

  • #2
    You either move the script out to a separate file (best choice), replace them with &gt; &lt; (which SHOULD work but doesn't in any of the browsers), or you wrap the entire script in a CDATA block:
    <![CDATA[ ... ]]>
    liorean <[[email protected]]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

    Comment

    Working...
    X