Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

server name in window.open

Posted on 2011-09-27
1
Medium Priority
?
268 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

604 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