473,385 Members | 1,769 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,385 software developers and data experts.

Avoid pop up blocker

Hi,

I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop up
blocker?

thanks
Feb 19 '07 #1
9 11530
"NH" <NH@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop
up
blocker?
1) Public Internet or enclosed intranet?

2) Please show the JavaScript code you're using to open the window...
Feb 19 '07 #2
Try :
http://msdn.microsoft.com/library/de...up_Blocker.asp

Basically it should be the result of a user action.
"NH" <NH@discussions.microsoft.coma écrit dans le message de news:
82**********************************@microsoft.com...
Hi,

I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop
up
blocker?

thanks

Feb 19 '07 #3
Its an intranet application.

I just use this code below on the onClick event for a button. Note this code
uses the MS Ajax script manager....

Also the pop up window is not blocked on "plain" IE 7. A user just emailed
to say it was blocked, I guess they could have google toolbar or something
installed.

CType(Master.FindControl("scriptmanager"),
System.Web.UI.ScriptManager).RegisterClientScriptB lock(btnSaveSubmit,
GetType(Button), "Window",
"window.open('http://server/reportserver?/Reports/Expenses/ExpenseSummary&expenseID="
& hiddenExpenseID.Text & "&rs:Command=Render&rs:ClearSession=true',
'_blank','location=no,toolbar=no,resizable,left=10 0,top=15');window.location='http://server:3446/Expenses/Home.aspx'", True)
"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop
up
blocker?

1) Public Internet or enclosed intranet?

2) Please show the JavaScript code you're using to open the window...
Feb 19 '07 #4
I'm not sure how much access to the system you've got, but the way we did it,
we added our intranet location (eg. http://xxx.xxx.xxx.xxx:port) to the
"Trusted Sites" in IE. That prevents any popup blocking from the browser. Not
sure about a 3rd party blocker though, cos we don't allow anyone to install
stuff.

Anyway, to do it, you need to get your users to add the intranet site to
their trusted sites zone. Depending on your network setup (we're on roaming
logon with a 2k3 server), you can add the the site addy to Trusted Sites for
the default profile, and then delprof all the user accounts on all machines
(if someone knows a quicker way of doing that than indivudually by hand do
pass it on!).

HTH,
Dan

"NH" wrote:
Its an intranet application.

I just use this code below on the onClick event for a button. Note this code
uses the MS Ajax script manager....

Also the pop up window is not blocked on "plain" IE 7. A user just emailed
to say it was blocked, I guess they could have google toolbar or something
installed.

CType(Master.FindControl("scriptmanager"),
System.Web.UI.ScriptManager).RegisterClientScriptB lock(btnSaveSubmit,
GetType(Button), "Window",
"window.open('http://server/reportserver?/Reports/Expenses/ExpenseSummary&expenseID="
& hiddenExpenseID.Text & "&rs:Command=Render&rs:ClearSession=true',
'_blank','location=no,toolbar=no,resizable,left=10 0,top=15');window.location='http://server:3446/Expenses/Home.aspx'", True)
"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.
>
Is there a way of opening a new window that doesnt get caught by the pop
up
blocker?
1) Public Internet or enclosed intranet?

2) Please show the JavaScript code you're using to open the window...

Feb 19 '07 #5
"NH" <NH@discussions.microsoft.comwrote in message
news:BE**********************************@microsof t.com...
Its an intranet application.
In which case, I think that all you need to do is make sure all your users
have the web address of the intranet included in their Trusted Sites zone in
IE - you might even be able to do this centrally through a policy...
Feb 19 '07 #6
thanks

"Patrice" wrote:
Try :
http://msdn.microsoft.com/library/de...up_Blocker.asp

Basically it should be the result of a user action.
"NH" <NH@discussions.microsoft.coma écrit dans le message de news:
82**********************************@microsoft.com...
Hi,

I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop
up
blocker?

thanks


Feb 19 '07 #7
Ok thanks for the info.

After a bit more investigation and testing i have found that the pop up
window opends fines in IE 6 and 7 with pop up blocker on. But it wont open
when you have the google toolbal installed. The site doesnt even need to be
in the trusted zones list.

So, its not really a problem. Our policy is that users use IE 6 or 7 and
dont install any 3rd party apps.

"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.comwrote in message
news:BE**********************************@microsof t.com...
Its an intranet application.

In which case, I think that all you need to do is make sure all your users
have the web address of the intranet included in their Trusted Sites zone in
IE - you might even be able to do this centrally through a policy...
Feb 19 '07 #8
On Feb 19, 6:31 am, NH <N...@discussions.microsoft.comwrote:
Hi,

I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop up
blocker?
If there was, it would make popup blockers pretty useless.

What I do for internal apps is test for a popup blocker on the home
page of the app (lots of code out there to do such a thing), and if a
popup blocker is on, I put an alert box on the screen asking them to
disable their popup blocker for this site, etc. It gets annoying
enough where most users will figure out how to disable it for our site
so they don't get that message every time. Solve a LOT of help desk
calls.

Feb 19 '07 #9
Larry - for future reference, could you explain how you test for the popup
blocker ?

Cheers
Dan

"Larry Bud" wrote:
On Feb 19, 6:31 am, NH <N...@discussions.microsoft.comwrote:
Hi,

I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.

Is there a way of opening a new window that doesnt get caught by the pop up
blocker?

If there was, it would make popup blockers pretty useless.

What I do for internal apps is test for a popup blocker on the home
page of the app (lots of code out there to do such a thing), and if a
popup blocker is on, I put an alert box on the screen asking them to
disable their popup blocker for this site, etc. It gets annoying
enough where most users will figure out how to disable it for our site
so they don't get that message every time. Solve a LOT of help desk
calls.

Feb 19 '07 #10

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,...
4
by: Ashish | last post by:
Hi Friends, I am looking for an anti-popup blocker solution, which can open popup window, irrespective whether any popup blocker is on or off. Well, I have succeeded in creating the same...
3
by: Stephane | last post by:
Hi, I have a contact page which is opening in a new window using window.open. Since this is called when the user clicks a link, pop up blocker don't block it. However, I want to show a survey...
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...
2
by: domtam | last post by:
Hi all, Here is what I want: when a user clicks a <asp:button>, its event handler will do some server-side processing and then pop up a windows of another page. As far as I know, if no pop-up...
7
by: rob c | last post by:
Hi Does anyone know what triggers a "popup blocker"? I'm going to be opening some sub-windows from my main page and don't want to get caught in a blocker. Thanks Rob
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...
2
by: andrewwan1980 | last post by:
I have a problem with a child window using the parent's FORM to do a submission/post to open a new window. This is being blocked by IE7. This is happening when accessing an external website that is...
1
mageswar005
by: mageswar005 | last post by:
hi, how to detect yahoo popup blocker, in my site i open a popup window but some local pc yahoo popup blocker can control my popup window. how can i detect the popup blocker....
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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,...

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.