| | |
pop up window opening behind main
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jun 2008
Posts: 11
Reputation:
Solved Threads: 0
I have an input form that requests a date from the user and have a pop-up window with a calendar in it. Problem is the window shows for less than a second and then goes behind the main page. I have used this exact code in several other places with no problem. The only difference that I know of/ can see is the name of the textbox that it fills when a date is selected. Here is the piece of code from the .aspx file.
Once i bring up the window via the task bar, it works as expected. As far as i can tell, there are no javascript or asp errors.
any help would be appreciated. This is the only thing preventing this project from going live.
Thank you in advance.
Greg
ASP.NET Syntax (Toggle Plain Text)
<asp:TextBox ID="txtDate" runat="server" ForeColor="#3366CC" BackColor="#E1ECFC" TabIndex="1"></asp:TextBox> <a onclick="window.open('popup.aspx?textbox=txtDate','cal','width=250,height=225,left=270,top=180')" href="javascript:;"><asp:ImageButton ID="imgDate" AlternateText="cal" ImageUrl="Images/SmallCalendar.gif" runat="server" TabIndex="20" /></a>
Once i bring up the window via the task bar, it works as expected. As far as i can tell, there are no javascript or asp errors.
any help would be appreciated. This is the only thing preventing this project from going live.
Thank you in advance.
Greg
•
•
•
•
onclick="window.open('popup.aspx?textbox=txtDate','cal','width=250,height=225,left=270,top=180')"
href="javascript:;"
ASP.NET Syntax (Toggle Plain Text)
onclick="window.open('popup.aspx?textbox=txtDate','cal','width=250,height=225,left=270,top=180');return false;" href="javascript:void(0);"
And if that fails you could always try
ASP.NET Syntax (Toggle Plain Text)
onclick="var w = window.open('popup.aspx?textbox=txtDate','cal','width=250,height=225,left=270,top=180');w.focus();return false;" href="javascript:void(0);"
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
•
•
Join Date: Jun 2008
Posts: 11
Reputation:
Solved Threads: 0
[QUOTE=Fungus1487;696738]Try
Thanks... that worked great!!!
ASP.NET Syntax (Toggle Plain Text)
onclick="window.open('popup.aspx?textbox=txtDate','cal','width=250,height=225,left=270,top=180');return false;" href="javascript:void(0);"
Thanks... that worked great!!!
![]() |
Similar Threads
- control panel won't open and can't remove hacktool.root kit (Viruses, Spyware and other Nasties)
- Please Help!! I can't get rid of this virus! (Viruses, Spyware and other Nasties)
- Opening Blank Page from within Pop-up (HTML and CSS)
- Opening New Blank Window from within Pop-up (JavaScript / DHTML / AJAX)
- Browser keeps opening on its own (Viruses, Spyware and other Nasties)
- Source Code that don't work? (Java)
- Hey check out my prog. It has an error can u find it? (Java)
- New Laptop .... Browser keeps opening (Viruses, Spyware and other Nasties)
- Problem with Generic Host Process popup and Internet Explorer opening very slow (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
Views: 2296 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol advice ajax application asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child class click compatible confirmationcodegeneration content contenttype countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownmenu edit feedback flash flv folder form forms google grid gridview homeedition hosting identity iframe iis index javascript jquery list maps menu mono mssql multistepregistration nameisnotdeclared object objects order problem profile ratings refer rotatepage save search security serializesmo.table session silverlight smartcard software sql suse textbox tracking typeof unauthorized update validation vb vb.net video view virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt wizard xml





