Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Javascript function to ASP (vbscript)

Status
Not open for further replies.

mattscotney

Programmer
Jul 31, 2002
57
AU
Hi all I am having a few problems converting the following javascript function to ASP (written in VBscript):

function show()
{
z = window.open();
z.document.write('<pre>' + repl('<html>\n' + document.documentElement.innerHTML + '\n</html>'));
z.document.close();
}

I have the repl() function under control, it is only the above portiion which is providing problems.

Any assistance would be greatly appreciated.

Thanks in advance,
Matt Scotney
 
When you say ASP (vbScript) are you meaning server side (like most ASP), or client side (like JavaScript)? Einstein47
(&quot;For every expert, there is an equal and opposite expert.&quot; - Arthur C. Clarke)
 
Opening new windows and closing windows and the like is a client side operation. Sionce the server-side code is running on the server it does not have any control over what is going on on the screen of the client machine. In order to open windows etc you will need to keep your javascript up above or switch to client side VB, you will not be able to do this server side.
-Tarwn The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch, and a user with an idea
-computer saying (Wiz Biz - Rick Cook)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top