Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: JavaScript Equivalent to VBScript Response.Clear


Message #1 by rg1@h... on Thu, 3 May 2001 19:31:44
Thanks.

I landed up using Request.ServerVariables("HTTP_USER_AGENT"). 

-----Original Message-----
From: Daniel O'Dorisio [mailto:dodorisio@h...]
Sent: Thursday, May 03, 2001 1:46 PM
To: javascript
Subject: [javascript] RE: JavaScript Equivalent to VBScript
Response.Clear


you can detect the browser with a componet called browserhawk

Daniel

-----Original Message-----
From: rg1@h... [mailto:rg1@h...]
Sent: Thursday, May 03, 2001 3:32 PM
To: javascript
Subject: [javascript] JavaScript Equivalent to VBScript Response.Clear


Hello.

Using JavaScript I detect the client's browser. I have a function that's 
executed on the onload event in the <body> tag.

If there's a problem with the browser being used, I display an error 
message box but I don't want any HTML to display. 

Is there a JavaScript statement equivalent to VBScript's Response.Clear? I 
do have Response.Buffer = True at the beginning of the page.

This may be a stupid question but is there a way to detect the client's 
browser with server side scripting using VBScript? I have an error class 
that I would prefer to utilize instead of the error message box but don't 
know how to call a function in that error class using JavaScript.

Thanks.

Rita

  Return to Index