Ask a Question related to ASP, Design and Development.
-
Kez Bates #1
asp and rss feeds
Hi there
I am trying to create a newsfeed on my website. I used the following code
on my website which I found somewhere. I then placed the call to this code
in my web document. It does not appear to work. Am I missing something???
Thanks Kez.
Function getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)
getXML = source.transformNode(style)
set source = nothing
set style = nothing
End Function
%>
<html>
Kez Bates Guest
-
RSS Feeds
I sometimes use my yahoo mail account and have notice a news feed that apears in the inbox area. It is an RSS feed. I don't have to subscribe - it... -
Pieces of RSS Feeds
I want to take pieces of an RSS feed and place them in a flash file that i would create. The RSS Feed I have is boring with no style or colors so I... -
Video Feeds
Hello, Is there a way to put a live video feed (or just video) through a website by specifing the video source whether it is a digital video... -
Parsing RDF Feeds
Hi all, I know this is a respost from alt.comp.lang.coldfusion, but I figure someone here might be of help too: I have here a rdf document at... -
PHP XML FEEDS & MYSQL
I am looking for a simple script will take an xml feed from a URL, then upload the information to mysql database. Any ideas Please reply to... -
Andrew Durstewitz #2
Re: asp and rss feeds
Make sure the object is installed on the server. I have seen this
happen when the XMLHTTP object isn't installed it just does nothing.
hth,
Andrew
code>Hi there
>I am trying to create a newsfeed on my website. I >used the followingcode>on my website which I found somewhere. I then >placed the call to thissomething???>in my web document. It does not appear to work. Am >I missing* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *>Thanks Kez.
>
>Function getXML(sourceFile)
>dim styleFile
>dim source, style
>styleFile = Server.MapPath("news.xsl")
>
>Dim xmlhttp
>Set xmlhttp = >Server.CreateObject("Microsoft.XMLHTTP")
>xmlhttp.Open "GET", sourceFile, false
>xmlhttp.Send
>
>set source = >Server.CreateObject("Microsoft.XMLDOM")
>source.async = false
>source.loadxml(xmlhttp.ResponseText)
>
>set style = >Server.CreateObject("Microsoft.XMLDOM")
>style.async = false
>style.load(styleFile)
>
>getXML = source.transformNode(style)
>set source = nothing
>set style = nothing
>End Function
>%>
><html>
Developer Resources for High End Developers.
Andrew Durstewitz Guest
-
Bob Barrows #3
Re: asp and rss feeds
Oh, wait ... you're doing this on the server (duhhh!). You need to use the
ServerXMLHTTPRequest object, not the client-side XMLHTTPRequest object.
Bob Barrows
Kez Bates wrote:> Hi there
> I am trying to create a newsfeed on my website. I used the following
> code on my website which I found somewhere. I then placed the call
> to this code in my web document. It does not appear to work. Am I
> missing something??? Thanks Kez.
>
> Function getXML(sourceFile)
> dim styleFile
> dim source, style
> styleFile = Server.MapPath("news.xsl")
>
> Dim xmlhttp
> Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
> xmlhttp.Open "GET", sourceFile, false
> xmlhttp.Send
>
> set source = Server.CreateObject("Microsoft.XMLDOM")
> source.async = false
> source.loadxml(xmlhttp.ResponseText)
>
> set style = Server.CreateObject("Microsoft.XMLDOM")
> style.async = false
> style.load(styleFile)
>
> getXML = source.transformNode(style)
> set source = nothing
> set style = nothing
> End Function
> %>
> <html>
Bob Barrows Guest
-
Kez Bates #4
Re: asp and rss feeds
Yes, I did realise that I hadn't put in my actual error, but I had already
submitted my question.
I am currently getting the following...
The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document.
Tried your serverside object and it comes up with
error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid ProgID.
Which microsofts solution to is, and I quote... "You can ignore this error
message. It will go away. "
Hope you can shed some light for me.
Thanks Kez
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:ePS3jLqVDHA.2272@TK2MSFTNGP11.phx.gbl...> What do you mean by "does not appear to work"?
>
> If I brought you my toaster and asked you to fix it, what would be your
> first question to me? :-)
>
> Bob Barrows
>
> Kez Bates wrote:>> > Hi there
> > I am trying to create a newsfeed on my website. I used the following
> > code on my website which I found somewhere. I then placed the call
> > to this code in my web document. It does not appear to work. Am I
> > missing something??? Thanks Kez.
> >
> > Function getXML(sourceFile)
> > dim styleFile
> > dim source, style
> > styleFile = Server.MapPath("news.xsl")
> >
> > Dim xmlhttp
> > Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
> > xmlhttp.Open "GET", sourceFile, false
> > xmlhttp.Send
> >
> > set source = Server.CreateObject("Microsoft.XMLDOM")
> > source.async = false
> > source.loadxml(xmlhttp.ResponseText)
> >
> > set style = Server.CreateObject("Microsoft.XMLDOM")
> > style.async = false
> > style.load(styleFile)
> >
> > getXML = source.transformNode(style)
> > set source = nothing
> > set style = nothing
> > End Function
> > %>
> > <html>
>
>
Kez Bates Guest
-
Bob Barrows #5
Re: asp and rss feeds
Kez Bates wrote:
This sounds like a problem with the xsl document. You might try posting it> Yes, I did realise that I hadn't put in my actual error, but I had
> already submitted my question.
>
> I am currently getting the following...
> The stylesheet does not contain a document element. The stylesheet
> may be empty, or it may not be a well-formed XML document.
at microsoft.public.xsl. I'm not an xsl user.
Oops, I gave you the wrong name for the object: it should have been>
> Tried your serverside object and it comes up with
> error 'ASP 0177 : 800401f3'
> Server.CreateObject Failed
> Invalid ProgID.
>
ServerXMLHTTP. The correct instantiation is "MSXML2.ServerXMLHTTP"
Here is an example of its use: [url]http://www.aspfaq.com/show.asp?id=2173[/url]
Can you tell me where this "solution" comes from?> Which microsofts solution to is, and I quote... "You can ignore this
> error message. It will go away. "
>
Bob Barrows
> Hope you can shed some light for me.
>
> Thanks Kez
>
> "Bob Barrows" <reb_01501@yahoo.com> wrote in message
> news:ePS3jLqVDHA.2272@TK2MSFTNGP11.phx.gbl...>> What do you mean by "does not appear to work"?
>>
>> If I brought you my toaster and asked you to fix it, what would be
>> your first question to me? :-)
>>
>> Bob Barrows
>>
>> Kez Bates wrote:>>> Hi there
>>> I am trying to create a newsfeed on my website. I used the
>>> following code on my website which I found somewhere. I then
>>> placed the call to this code in my web document. It does not
>>> appear to work. Am I missing something??? Thanks Kez.
>>>
>>> Function getXML(sourceFile)
>>> dim styleFile
>>> dim source, style
>>> styleFile = Server.MapPath("news.xsl")
>>>
>>> Dim xmlhttp
>>> Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
>>> xmlhttp.Open "GET", sourceFile, false
>>> xmlhttp.Send
>>>
>>> set source = Server.CreateObject("Microsoft.XMLDOM")
>>> source.async = false
>>> source.loadxml(xmlhttp.ResponseText)
>>>
>>> set style = Server.CreateObject("Microsoft.XMLDOM")
>>> style.async = false
>>> style.load(styleFile)
>>>
>>> getXML = source.transformNode(style)
>>> set source = nothing
>>> set style = nothing
>>> End Function
>>> %>
>>> <html>
Bob Barrows Guest



Reply With Quote

