Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Test for value of childnote

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,50114
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Test for value of childnote
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Test for value of childnote - 7/29/2007 9:34:16 PM   
  TOPHOLM


Posts: 22
Score: 0
Joined: 5/14/2006
From: Copenhagen
Status: offline
Hi everybody

I would like to create a "status field" on our intranet to display the status of the IT systems in our org.

I wolud like to display the status from an RSS feed we use for general news from the IT department.

The feed could look something like this:

      

I would like to have a "traffic light" on the Intranet that changes to red if a category node with "Critical" is present, yellow if the category node contains "Problem", and green if no category node is present. (three different .gif's)
I know I have to check the node and then act on behalf of the result and display the traffic light with the right color, but what is the easiest way to do this ?
Unfortunatlly I cant figur out how to achive this. Hopefully someone here are able to help.

< Message edited by TOPHOLM -- 7/29/2007 9:42:18 PM >


_____________________________

Best regards

Søren Tøpholm
 
 
Post #: 1
 
 RE: Test for value of childnote - 7/30/2007 12:05:19 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
What have you tried so far? Basicly you would want to do an XPath query to see if there are any nodes that meet your criteria.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to TOPHOLM)
 
 
Post #: 2
 
 RE: Test for value of childnote - 7/30/2007 5:10:45 AM   
  TOPHOLM


Posts: 22
Score: 0
Joined: 5/14/2006
From: Copenhagen
Status: offline
I'm all new to XML/XSL(T), but I have played around a little.

The XML file is genereted using a RSS feed editor and I have added a style sheet (XSL)
I use this xsl to display the feed on the Intranet.

Now I want to use the same feed to change an icon in an iframe.
How do I get the If... Then logic on the result I get from the query ? 
Can I do an XPath query from HTML, or can I somehow use several style sheets on the same XML source ?

- Søren

(in reply to ebgreen)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Test for value of childnote Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts