473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 999
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.