Connecting Tech Pros Worldwide Forums | Help | Site Map

Not sure I understand what Response.buffer is really about

MLH
Guest
 
Posts: n/a
#1: Dec 26 '05
Below is a snippet I found and am trying to experiment
with. Unfortunately, there's a compile time error in A97
complaining that "Response" (in line #1) is an undefined
variable. I'm unsure what is intended, so I can go no further.
If someone has an alternative for line #1 that will compile
in A97, I would appreciate the help.


Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP, xml

Set xml = Server.CreateObject("Microsoft.XMLHTTP")

xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
"Richard", "Welcome"

' Actually Sends the request and returns the data:
xml.Send

Response.Write xml.responseText

Set xml = Nothing

End Sub


rkc
Guest
 
Posts: n/a
#2: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


MLH wrote:[color=blue]
> Below is a snippet I found and am trying to experiment
> with. Unfortunately, there's a compile time error in A97
> complaining that "Response" (in line #1) is an undefined
> variable. I'm unsure what is intended, so I can go no further.
> If someone has an alternative for line #1 that will compile
> in A97, I would appreciate the help.
>
>
> Private Sub Command0_Click()
>
> Response.Buffer = True
> Dim objXMLHTTP, xml
>
> Set xml = Server.CreateObject("Microsoft.XMLHTTP")
>
> xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
> "Richard", "Welcome"
>
> ' Actually Sends the request and returns the data:
> xml.Send
>
> Response.Write xml.responseText
>
> Set xml = Nothing
>
> End Sub[/color]

Response is an ASP object.

http://psacake.com/web/gz.asp



MLH
Guest
 
Posts: n/a
#3: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


On Mon, 26 Dec 2005 04:12:58 GMT, rkc
<rkc@rochester.yabba.dabba.do.rr.bomb> wrote:
[color=blue]
>MLH wrote:[color=green]
>> Below is a snippet I found and am trying to experiment
>> with. Unfortunately, there's a compile time error in A97
>> complaining that "Response" (in line #1) is an undefined
>> variable. I'm unsure what is intended, so I can go no further.
>> If someone has an alternative for line #1 that will compile
>> in A97, I would appreciate the help.
>>
>>
>> Private Sub Command0_Click()
>>
>> Response.Buffer = True
>> Dim objXMLHTTP, xml
>>
>> Set xml = Server.CreateObject("Microsoft.XMLHTTP")
>>
>> xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
>> "Richard", "Welcome"
>>
>> ' Actually Sends the request and returns the data:
>> xml.Send
>>
>> Response.Write xml.responseText
>>
>> Set xml = Nothing
>>
>> End Sub[/color]
>
>Response is an ASP object.
>
>http://psacake.com/web/gz.asp
>
>[/color]
Well, that's where it ends for me. I know nothing of ASP.
Perhaps there's something I can do in VBA that will emulate
what the Response object does. The link you furnished said
its used to send the output back to the client (browser). Will
play around with it some more.
rkc
Guest
 
Posts: n/a
#4: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


MLH wrote:
<snip>
[color=blue][color=green]
>>Response is an ASP object.
>>
>>http://psacake.com/web/gz.asp
>>
>>[/color]
>
> Well, that's where it ends for me. I know nothing of ASP.
> Perhaps there's something I can do in VBA that will emulate
> what the Response object does. The link you furnished said
> its used to send the output back to the client (browser). Will
> play around with it some more.[/color]

The code you posted is meant to be run on a web server.

The 3Guys-from-whereever site is an ASP resource website. Anything
you find there will most likely be written in vbscript and meant
to be part of a web application. That's not to say you can't use it
as a reference for whatever you're doing. Just that it won't be a
cut and paste without a small measure of understanding what you're
cutting and pasting type of scenario.

I'd ask you to explain wtf you're trying to do, but that's not
your style.
Lyle Fairfield
Guest
 
Posts: n/a
#5: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


rkc <rkc@rochester.yabba.dabba.do.rr.bomb> wrote in news:OYRrf.56970
$ME5.46795@twister.nyroc.rr.com:
[color=blue]
> MLH wrote:
> <snip>[/color]
[color=blue]
> I'd ask you to explain wtf you're trying to do, but that's not
> your style.[/color]

It's very kind of you not to disturb MLH on New Year's Eve.

--
Lyle Fairfield
Randy Harris
Guest
 
Posts: n/a
#6: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


OT question.

In this thread, I've been seeing the replies by rkc and Lyle but no posts
from MLH. Just wondering if anyone else is noticing the same behavior?

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.

Lyle Fairfield
Guest
 
Posts: n/a
#7: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


MLH is posting six days in the future.
Perhaps, Google will not show the post until the the world catches up.

rkc
Guest
 
Posts: n/a
#8: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


Lyle Fairfield wrote:[color=blue]
> MLH is posting six days in the future.
> Perhaps, Google will not show the post until the the world catches up.[/color]

I missed that.
That's why your New Years Eve reference didn't compute.

Larry Linson
Guest
 
Posts: n/a
#9: Dec 26 '05

re: Not sure I understand what Response.buffer is really about


"Lyle Fairfield" <lylefairfield@aim.com> wrote
[color=blue]
> MLH is posting six days in the future.
> Perhaps, Google will not show the post
> until the the world catches up.[/color]

Seems to me, I'd call that "poetic justice."


MLH
Guest
 
Posts: n/a
#10: Dec 31 '05

re: Not sure I understand what Response.buffer is really about


[color=blue]
>
>I'd ask you to explain wtf you're trying to do, but that's not
>your style.[/color]
Actually, I was trying to compare what they were using there
with something I've been using that's similar. I saw the unfamiliar
syntax and was curious. That's all. Thx for pointing out that it was
ASP related.
MLH
Guest
 
Posts: n/a
#11: Dec 31 '05

re: Not sure I understand what Response.buffer is really about


On Mon, 26 Dec 2005 13:21:18 GMT, Lyle Fairfield
<lylefairfield@aim.com> wrote:
[color=blue]
>rkc <rkc@rochester.yabba.dabba.do.rr.bomb> wrote in news:OYRrf.56970
>$ME5.46795@twister.nyroc.rr.com:
>[color=green]
>> MLH wrote:
>> <snip>[/color]
>[color=green]
>> I'd ask you to explain wtf you're trying to do, but that's not
>> your style.[/color]
>
>It's very kind of you not to disturb MLH on New Year's Eve.[/color]
Sorry about the skipping of Christmas and all. I sometimes forget
to reset the time/date after changing it for testing purposes.
Closed Thread