Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 4th, 2006, 11:30 AM
Authorized User
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirecting to ASP engine on server

I have a web page (test.html) on a server in a classroom, but it is not in the wwwroot folder for use by the ASP engine. Instead, it is located in C:\Testing on the server. I need to redirect the browser when it hits test.html to (the server's IP address)/Test/Test.asp. Is there a way to determine the IP address of the server so I can access the Test.asp page? If so, how?

Old April 5th, 2006, 01:08 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

hii chrscote!!
e.g you are accessing your test.html page using following address

since it is pure html page, you need onload event on the body tag,which will
tranfer it to your Test/Test.asp page
 for this parse the location.href to get the required ip_server_address.
since it will contain "http://my_tmpserver_or_ipaddress/test.html"

and retrieve "my_tmpserver_or_ipaddress" and
make a string
and then set it to
That's all,
hope this will help you.

Cheers :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 07:34 AM
Sql Server Desktop Engine acko SQL Server 2000 4 May 26th, 2005 11:19 PM
How to establish a sql server desktop engine pramos.21d SQL Server 2000 0 March 2nd, 2005 09:50 AM
Redirecting to ASPX from ASP gurevle ASP.NET 1.0 and 1.1 Basics 3 July 16th, 2003 10:19 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.