Solved

server name in window.open

Posted on 2011-09-27
1
259 Views
Last Modified: 2012-05-12
Hi everyone, I'm using a script command in my ASP intranet page.   The command is simple:

<script>window.open("myfilename.asp","mywindow")</script>

All was working fine until I have change my server name from "svradm" to "srvhadm" because when using window.open command, it tries to open the file in "srvadm".  

I need this command to open the right file or, at leat, that I can specify where the file is located?   Even when specifying directly svrhadm:80 in the code, it still doesn't wan't to open the file on the new server.

My feeling  is that there is some kind of variable I need to set in windows on my server but I have no idea where.

thank you for helping
0
Comment
Question by:Buropro-Citation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
MacAnthony earned 500 total points
ID: 36712313
If you have a <base href="svradmn"> attribute on the header of the page this could cause the issue. Normally window.open should try and open it using the current page's host if a relative path is supplied. If you used window.open('http://srvhadm/myfilename.asp','mywindow'), that should work as well.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Validating Date 4 28
Sending ASP to server side 8 29
Link not working 6 41
Jquery driving me nuts... 14 27
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question