Microsoft.XMLHTTP?

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
alun
-


Joined: 12 Nov 2004
Posts: 4

PostPosted: Fri Nov 12, 2004 4:28 am    Post subject: Microsoft.XMLHTTP? Reply with quote

Hi

Does the Microsoft.XMLHTTP object still work in Abyss. I have a page that used to work under PWS but is not working now.

The symptoms are that the browser takes an age trying its best to load the page, but eventually gives up and gives me

HTTP 500 Internal Server Error The Page cannot be displayed.

The page is all pretty bogstandard ASP apart from the use of XMLHTTP. So I'm thinking this may be the cause.

Here is the code of the function that uses it....

Function GrabPage(strURL)
Dim objXML
Set objXML = Server.CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET" , strURL , False ,"",""
objXML.Send
If Err.Number = 0 Then
If objXML.Status = 200 then
GrabPage = objXML.ResponseText
Else
GrabPage = "Incorrect URL"
End if
Else
GrabPage = Err.Description
End If
Set objXML = Nothing
End Function

If this function is the culprit, is there an alternative Abyss-friendly bit of code that will achieve the same thing?

Many thanks

Al
Back to top View user's profile Send private message
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Tue Nov 16, 2004 7:53 pm    Post subject: Reply with quote

never tried this under Abyss...but I know what you're talking about as I've done this for my company's site (transforming XML into HTML) but we're under IIS 5/6.

In order to run ASP pages under Abyss you need to have ActiveHTML installed - search the boards for links.

There a number of ways to implement XML/XSL transformations within ASP and I guess it's your choice but I've seen the flollowing

Server.CreateObject("Msxml2.FreeThreadedDOMDocument.3.0")
***I personally use the line above***
or
Server.CreateObject("Microsoft.XMLDOM")

I just don't have any idea if this will run under ActiveHTML...

Here are some links that may prove to be useful:

http://www.topxml.com/parsers/default.asp

There may be a javascript solution...
http://www.w3schools.com/xsl/xsl_client.asp

hope that helps a bit.
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
alun
-


Joined: 12 Nov 2004
Posts: 4

PostPosted: Wed Nov 17, 2004 1:06 am    Post subject: Reply with quote

hi thanks for that,

what i'm actually trying to do though is to read content from another web page into a variable so i can write it into a file.

under PWS i did this with XMLHTTP

now that sometimes works but typically doesn't

i even tried XStandard's HTTP component but that was the same
Back to top View user's profile Send private message
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Wed Nov 17, 2004 7:35 pm    Post subject: Reply with quote

Yes but you're doing the transformation SERVER SIDE - meaning the server has to be able to take the data, put it into a variable, manipulate it, and then send it to the browser.

If your server does not support this process, it won't happen - hense why it worked under PWS ( a dumbed down version of IIS ) and not under Abyss.

You're either doing this under a <script lanquage="vbscript"> function or as an <% %> ASP page...either way, you need to have ActiveHTML under Abyss in order to do this stuff - which I'm not sure if ActiveHTML supports this.

What are you grabbing from this page or site? If it's XML data then I have no clue if ActiveHTML will handle this transformation.

Otherwise you're just displalying data from another page, you could use an <iframe> and pull it in that way - but only with permission from the site owner.

maybe some further explanation would be in order as far as what you're trying to do or accomplish.
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Sat Nov 20, 2004 9:22 am    Post subject: Re: Microsoft.XMLHTTP? Reply with quote

Abyss doesn't process or do anything to your ASP code. It is ActiveHTML that takes care of it. So if you have any problem with an ASP script, you should check ActiveHTML for possible problems.
As ActiveHTML is not a perfect ASP processor clone, it may have some issues with some components or specific operations. The best is to ask SeliSoft.com support (the makers of ActiveHTML) for more help.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group