SQLExpress - Xb2.NET     ot4xb  
xb2net
How to open a new window
Thread Starter: Itai Dishon Started: 3/10/2008 10:56 PM UTC
Replies: 3
How to open a new window
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
Re: How to open a new window
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
Re: How to open a new window
Itai,

Try the following:

onClick="window.open(http://www.Url/ShowData,,'width=400,height=200,location=yes,resizable=yes,scrollbar=yes')"



At the server end write ShowData() that dispatches the html you need.



Take care,

-Itai
Re: How to open a new window
Itai,

Try the following:

onClick="window.open(http://www.Url/ShowData,,'width=400,height=200,location=yes,resizable=yes,scrollbar=yes')"



At the server write ShowData() that dispatches the html you need.



Take care,

-Itai