Carolyn Speakman
Usenet Archive
- Joined
- Jul 16, 2004
- Messages
- 5
- Reaction score
- 0
Hi,
I'm trying to amend an intranet .asp page but keep getting this error. The error only occurs when I pull the WHOLE intranet off the server and try to run it locally. The error isn't there when the page is run off the intranet server.
I'm using IIS 5, I.E. 6 and WinXP Pro.
Here's the code it doesn't like:
<%
cookieUsrUID = 0
'response.cookies("cookiePassCode") = 0
cookieUsrUID = request.cookies("cookieUsrUID")
' Get the URL for the RSS file first from the form, then from the Cookie RSS_URL = Request.Form("headlineURL") If RSS_URL = "" Then RSS_URL = Request.Cookies( "headlineURL" ) Else Response.Cookies( "headlineURL" ) = RSS_URL Response.Cookies( "headlineURL" ).Expires = "Dec 31, 2010" End If If RSS_URL = "" Then ' If it has not been defined, default it to the BBC front page RSS_URL = "http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss091.xml" Response.Cookies( "headlineURL" ) = RSS_URL Response.Cookies( "headlineURL" ).Expires = "Dec 31, 2010" End If
%>
<!-- BLAH BLAH BLAH -->
<%
Set rssData = Server.CreateObject("MSXML2.DomDocument.4.0") rssData.async = False rssData.Load( RSS_URL ) If rssData.parseError.errorCode 0 Then response.write reason End If Set rssHeader = rssData.getElementsByTagName("channel")
<!-- DOESN'T LIKE THIS LINE -->
lastUpdated = rssHeader.item(0).childNodes(4).text
<!-- ********************** -->
Set rssContent = rssData.getElementsByTagName("item")
rssRows = rssContent.length
%>
Any help would be greatly appreciated as I've been sat here for days!!
Thanks,
Carolyn
I'm trying to amend an intranet .asp page but keep getting this error. The error only occurs when I pull the WHOLE intranet off the server and try to run it locally. The error isn't there when the page is run off the intranet server.
I'm using IIS 5, I.E. 6 and WinXP Pro.
Here's the code it doesn't like:
<%
cookieUsrUID = 0
'response.cookies("cookiePassCode") = 0
cookieUsrUID = request.cookies("cookieUsrUID")
' Get the URL for the RSS file first from the form, then from the Cookie RSS_URL = Request.Form("headlineURL") If RSS_URL = "" Then RSS_URL = Request.Cookies( "headlineURL" ) Else Response.Cookies( "headlineURL" ) = RSS_URL Response.Cookies( "headlineURL" ).Expires = "Dec 31, 2010" End If If RSS_URL = "" Then ' If it has not been defined, default it to the BBC front page RSS_URL = "http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss091.xml" Response.Cookies( "headlineURL" ) = RSS_URL Response.Cookies( "headlineURL" ).Expires = "Dec 31, 2010" End If
%>
<!-- BLAH BLAH BLAH -->
<%
Set rssData = Server.CreateObject("MSXML2.DomDocument.4.0") rssData.async = False rssData.Load( RSS_URL ) If rssData.parseError.errorCode 0 Then response.write reason End If Set rssHeader = rssData.getElementsByTagName("channel")
<!-- DOESN'T LIKE THIS LINE -->
lastUpdated = rssHeader.item(0).childNodes(4).text
<!-- ********************** -->
Set rssContent = rssData.getElementsByTagName("item")
rssRows = rssContent.length
%>
Any help would be greatly appreciated as I've been sat here for days!!
Thanks,
Carolyn