?
Solved

Javascript Widow.open command has stopped working

Posted on 2003-03-31
3
Medium Priority
?
427 Views
Last Modified: 2007-12-19
People,

Someone can prevent me doing some serious damage to my laptop which will occur
When I throw it out of the window

I’m having a problem with the JavaScript Window.open command.
The actual code I’m using is

function nWin(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}

This has been working perfectly ok on my laptop throughout the site until recently and still works perfectly ok on
My desktop.

Now however when this command is run on the laptop a window outline appears with the proportions of winprop, but with nothing in it and the returned win
Object is null. It matters very little what url or page I use. In fact the same result can be had when the URL is blank.  I’ve tried re-installing IE & IIS without success. This has suddenly occurred on the site it all pages so it is a system problem not the specific code. It appears as if my virtual root has in some way been corrupted

I’m running IIS on Windows XP professional on my laptop
And win 2000 server on the desktop.

I’ve possible done some damage to my registry. I’m not sure if the error appeared after I had installed
Office XP possibly though, but I’ve uninstalled this as well and still got the problem.

Thanks for any help


Regards


Chris Pearce
0
Comment
Question by:chrisp101
[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
3 Comments
 

Accepted Solution

by:
brisbine earned 300 total points
ID: 8241635
at the command prompt navigate to the following location and type:

WINNT\Microsoft.NET\Framework
\v1.0.370\aspnet_regiis.exe -i

This command should recalculate everything for iis.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 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