3/11/2008 8:01 AM UTC
Re: How to open a new window
Ronald van Veelen

Op Mon, 10 Mar 2008 15:56:17 -0700 schreef Itai Dishon:
Hi,
I want to open small "help" window, when a user enter date he can click a button and get an auxiliary window with a list of employees for example.
This is what I am trying to use to open the new window.
<input type="Button" value="ShowData" onClick="window.open('ShowData','ShowData','width=400,height=200,location=yes,resizable=yes,scrollbar=yes')"
when the button is clicked it opens the new window but it dos not hit the server in the address bar of the new window I get
http://localhost/ShowData with the message HTTP 404 when I check the server with the debugger I see that the call for the new window never hit the server loop.
Any idea what am I doing wrong?
Thank you
Itai Dishon
Hi
I think it has something to do with the URL you try to open. try for
example window.location.href + "Showdata" or something.
here is a tip:
http://www.getfirebug.com
It is easy to use (you ll need firefox) and you will be able to debug your
html, javascript and css.
good luck