[thelist] JAVASCRIPT: can pop window only once
Chris W. Parker
cparker at swatgear.com
Tue Jul 16 13:43:01 CDT 2002
hi.
i've got a part of a website where you can click on a picture to see a
very large version of the picture. instead of just target="_blank" i am
using a javascript function to open the window sans-chrome. i.e.
navigation, etc. just the frame and title are left.
but i can only do it once. i have to reload the page before i can pop
the window again.
the error i get is "The callee (server [not server application]) is not
available and disappeared; all connections are invalid. The call did not
execute."
here is the javascript code...(maybe it's being done the wrong way, i
just grabbed a function from somewhere else and change it a little. [if
you'll notice there is a variable called 'myThanks' which does not get
used.])
(watch wrap)
function popThatWindow(path, winHeight, winWidth) {
var sFeatures, h, w, myThanks, i
h = window.screen.availHeight
w = window.screen.availWidth
sFeatures = "height=" + winHeight + ",width=" + winWidth +
",screenY=" + (h*.30) + ",screenX=" + (w*.33) + ",top=" + (h*.30) +
",left=" + (w*.33) + ",resizable"
popThatWindow = window.open(path,"",sFeatures)
}
and it's used in the page like this...
<a
href="javascript:popThatWindow('displayimg.asp?title=hello&theimage=
image.gif',333,400)">
any ideas?
chris.
More information about the thelist
mailing list