Active Server Pages (ASP).
Write a Review
Add to My Favorite
Refer it to Friend
Report Broken Link
Other links at ASP > Tips and Tutorials > XML and ASP
Dim BlnLinkBack, sReciprocalURL, sReciprocalLinkURLText
BlnLinkBack=False
sLinkBackURL="www.codefixer.com" 'this is the URL we wish to check for
sReciprocalURL= "www.codefixer.com/tutorials/index.asp" 'This is the URL
'we are going to check against
Category:
This solution presents several limitations both on the client and server side. We must use the POST method (because the GET can't manage this type of data), and we have no solutions to trigger a POST processing without using an HTML form. When we send data to the TargetURL, the browser loads this page as the new current page and we have an undesirable "context switch."
The ENCTYPE property defines the Multipurpose Internet Mail Extensions (MIME) encoding for the form and must be set to "multipart/form-data" for file upload forms. When we set this property to "multipart/form-data" we obtain a different structure of the POST buffer (which is also more complex) and the Request ASP object can't access the form contents. Therefore, we can read the POST buffer using the Request.binaryRead method, but we can't use scripting languages to do this. The Request.binaryRead method returns a VTarray (which is a variant array of unsigned one byte characters) while scripting languages can manage only variant variables. We can resolve this problem only by using a specific, custom ASP component or ISAPI extension, such as CPSHOST.DLL. This behavior is by design.
Category:
This is the second article in my series about XML, XMLDom and ASP. For those who missed the first it?s avaible here
In my first article I showed how to parse an XML document using XMLDom and displaying the data. In this second tutorial I?ll show two different ways to retrieve an XML document from a remote server using ASP and ServerXMLHTTP.
XML is a great way to share information. However, if you want to be able to share it people will need to retrieve the data from you somehow (or you from them). For this purpose we have an object called XMLHTTP or, if used on a server, ServerXMLHTTP. Since both XMLDom and XMLHTTP are part of MSXML2 they can cooperate very nice. XMLDom can by auto use XMLHTTP to retrieve information and if you use XMLHTTP it can by auto return a XMLDom object with the retrieved XML data.
The easiest way to retrieve XML from an external site is to let the XMLDom handle it all. This requries the least amount of code and I would guess that it?s also a tiny bit more effective resource wise. Here is how to do it:
Category:
Sorry, I got a bit off hand with this tutorial. Though I saw some really horrible examples today on how to show an RSS feed using XMLDom so I just couldn?t stand not writing something about it. Imagnine a script that selects all nodes (XPath query was something like ?//*?), not carring where in the document, then looping them thru looking at their names and guessing what they are and then adding them to four separate strings with some weird separator. After doing this, they split the strings into four arrauys and started looping out the content. Oh please, it was horrible. No real sense of XML at all I?m afraid . I know there are better resources then that on the net, but I still felt I had to contribute with just one more.
If you never heard of RSS earlier, you are ethier very ignorant to what happens on the web these days and/or you are stuck running Internet Explorer which lacks any built in support for it. It all comes down quite easy though. An RSS feed is an online news syndication in the XML format. The main idea is to have a standardized way to share news over the net. I for an instance offers my articles as an RSS feed so people easily will know when I?ve written something new. For those who want to dive deeper into RSS I would recommend ?What Is RSS? over at XML.com.
I thought that it might also be a good idea to show a short RSS feed with only one news item in it so you know what source we are working with
Category:
More on Classes and XML
This article examines how to use VBScript classes to transform XML documents for use in a Web application. Before tackling this article, readers should have a solid understanding of classes and XML. To learn more about either of these subjects, be sure to check out the following links:
Category: