View Single Post
  #2 (permalink)  
Old July 17th, 2005, 05:31 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

When you retrieve your content store it:
Code:
var sContent = xmlDoc.getElementsByTagName("noaaw")[0].firstChild.nodeValue;
then test it against "NO CURRENT ADVISORIES"
Code:
if (sContent == "NO CURRENT ADVISORIES")
{
  //display no advisory message
}
else
{
  //write marquee
}
--

Joe (Microsoft MVP - XML)
Reply With Quote