Click to See Complete Forum and Search --> : Server
malex
07-30-2003, 03:46 AM
I publish to 3 servers (intranet) and regularly need to check newly published sub web sites. It would save time if I could click a link that just changes the server name and leaves the rest of the URL intact. Is this achievable? :o
xataku_nakusute
07-30-2003, 03:54 AM
you could do so with a dropdown menu...:
<script type="text/javascript">
function newurl()
{
new = document.f.s.value;
self.location.href = new+"the_page.html;
}
</script>
<form name="f">
<select name="s">
<option value="http://www.your_server1.com/">Your Server 1</option>
<option value="http://www.your_server2.com/">Your Server 2</option>
<option value="http://www.your_server3.com/">Your Server 3</option>
</select>
</form>
xataku_nakusute
07-30-2003, 04:00 AM
sorry, scratch that
malex
08-04-2003, 07:40 AM
Thanks for the reply, however I didn't explain my problem too well.
I want to add a Javascript URL to the Links bar (IE) so that only part of the URL is replaced by the (hard coded) server name.
Thanks.
Khalid Ali
08-04-2003, 08:01 AM
what you can do is reload the page with the new url but you can not change the value in the addressbar without loading the page.