473,508 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting around popup blocker

Hi,
I am using Button web server control which responds to a
onclick event .In the onclick event handler i am using the
serverside javascript for opening anew window.Heres the
Snippet of the code.
If someone has Popupblocker on their machine the new
window doesnt showup

-----------------------------------------------------------
---
private void butt_sales_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
string strJscript = "<script language='javascript'>";
strJscript += "window.open
('sales.aspx','','menubar=yes,scrollbars=yes,resiz able=yes,
width=640,height=500');";

strJscript += "</script" + ">";
Response.Write(strJscript);

}
-----------------------------------------------------------
-

Jul 21 '05 #1
1 1004
Blockers normally work by looking for typical strings of text, for example
window.open.

You could try changing it so that window.open is put together when the page
loads for example and does not exist as a string in its own right. Might
work - might not!!!

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"TomASPNET" <sh*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hi,
I am using Button web server control which responds to a
onclick event .In the onclick event handler i am using the
serverside javascript for opening anew window.Heres the
Snippet of the code.
If someone has Popupblocker on their machine the new
window doesnt showup

-----------------------------------------------------------
---
private void butt_sales_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
string strJscript = "<script language='javascript'>";
strJscript += "window.open
('sales.aspx','','menubar=yes,scrollbars=yes,resiz able=yes,
width=640,height=500');";

strJscript += "</script" + ">";
Response.Write(strJscript);

}
-----------------------------------------------------------
-

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
5820
by: dave yan | last post by:
hi, i have some forms which use javascript for data validation, e.g., checking to make sure all required fields are completed, checking that data falls within valid ranges for certain fields,...
1
2254
by: QA | last post by:
Go to http://dictionary.reference.com/search?r=67&q=apple you see this <!-- FASTCLICK.COM POP-UNDER CODE v2.0 for dictionary.com (12 hour) --> <script language="javascript"><!-- var...
26
6777
by: Raffi | last post by:
Hi, We have a database application that runs in a popup Internet Explorer application window. The reason for this is to isolate the casual user from the address bar and the typical IE navigation...
3
4496
by: Yisehaq | last post by:
Hi guys I am trying to prepare few html pages which contain OLAP cubes on a CD. The problem I have is that the popup blocker blocks the OLAP modules from being shown. Therefore, I wanted to write...
6
1896
by: Yisehaq | last post by:
Hi guys I am trying to prepare few html pages which contain OLAP cubes on a CD. The problem I have is that the popup blocker blocks the OLAP modules from being shown. Therefore, I wanted to write...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.