S
scott
The below code in FIGURE 1 used to work fine from the click event on a form.
It should simply open a pop-up web page. About 1 month or so ago it quit
working. The page is launched so quick I can barely notice it and then
closes with no errors, etc. The html page I'm using is nothing but a plain
html file just for testing and works fine with code in FIGURE 2, leaving out
the javascript. In production it was an ASP file that ran a SQL DTS job.
One strange thing to note is that it will run on a Windows 2000 workstation,
but not on a Win XP pc and I've tried it on several pcs. As you'll notice,
I'm trying to access the localhost here, but that's just for a test. In
production, this opened an ASP page on a LAN Server.
I've exhausted all means of turning off pop-up blocking, etc. in IE, but
can't get FIGURE 1 to work again.
Any ideas?
FIGURE 1
sPage = "javascript:
resizeTo(670,500);moveTo(130,150);document.location.href='http://localhost/myweb/popup.htm"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
sCommand = sApp & " " & sPage & "'"
Call Shell(sCommand, 1)
FIGURE 2
sPage = "http://localhost/myweb/popup.htm"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
sCommand = sApp & " " & sPage
Call Shell(sCommand, 1)
It should simply open a pop-up web page. About 1 month or so ago it quit
working. The page is launched so quick I can barely notice it and then
closes with no errors, etc. The html page I'm using is nothing but a plain
html file just for testing and works fine with code in FIGURE 2, leaving out
the javascript. In production it was an ASP file that ran a SQL DTS job.
One strange thing to note is that it will run on a Windows 2000 workstation,
but not on a Win XP pc and I've tried it on several pcs. As you'll notice,
I'm trying to access the localhost here, but that's just for a test. In
production, this opened an ASP page on a LAN Server.
I've exhausted all means of turning off pop-up blocking, etc. in IE, but
can't get FIGURE 1 to work again.
Any ideas?
FIGURE 1
sPage = "javascript:
resizeTo(670,500);moveTo(130,150);document.location.href='http://localhost/myweb/popup.htm"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
sCommand = sApp & " " & sPage & "'"
Call Shell(sCommand, 1)
FIGURE 2
sPage = "http://localhost/myweb/popup.htm"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
sCommand = sApp & " " & sPage
Call Shell(sCommand, 1)