PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

Clickonce application not launched within HTTP onload event handler using IE 7

 
 
james
Guest
Posts: n/a
 
      2nd Feb 2007
Dear,

As following sample, if the Clickonce application launched within HTTP
onload event , it seems not work.
But if it called from onclick event, everything is just fine.
I have already turned off IE Popup-blocker in IE7.

Thanks a lot

ex:
<html>
<head>
<script language="javascript" type="text/javascript">
function DoLoad()
{
window.open("http:/localhost/TestClickOnce/TestClickOnce.application");
}
</script>
</head>
<body onload="DoLoad;">
<form>
<input type="button" value="ClickOnce" onclick="DoLoad()" />
</form>
</body>
</html>

James Lin


 
Reply With Quote
 
 
 
 
Markus
Guest
Posts: n/a
 
      2nd Feb 2007

> <body onload="DoLoad;">


ever tried onload="DoLoad()" ? Seems you miss some brackets.

maybe this helps
Markus
 
Reply With Quote
 
james
Guest
Posts: n/a
 
      2nd Feb 2007
Dear Marjus,

Thanks a lot for your help.
But it just typing mistake in the mail body. My source code is shown as
following.

<body onload="DoLoad();">

It does not work as the same,

I thought it may be some sort of security issues like Popup-blocker.

James Lin

"Markus" <difh04-(E-Mail Removed)>
???????:(E-Mail Removed)...
>
>> <body onload="DoLoad;">

>
> ever tried onload="DoLoad()" ? Seems you miss some brackets.
>
> maybe this helps
> Markus



 
Reply With Quote
 
Markus
Guest
Posts: n/a
 
      2nd Feb 2007
> I thought it may be some sort of security issues like Popup-blocker.

You might test this out by including your site as a trusted site (or in
the sites enabling pop-up windows)... however, this will not be a good
solution for your customers...

but another solution:
why don't you use redirects? You could either use a server side redirect
(asp or asp.net - just one line of code), or use standard html
meta-refresh tags... then you don't need the pop-up.

Not solving your problem - but giving you other solution perspectives...

otherwise, I am also running out of ideas ;-).
Markus
 
Reply With Quote
 
james
Guest
Posts: n/a
 
      5th Feb 2007
Dear Markus,

Thanks again for you help.
I tried your solutions, but it not works.
I have turned off pop-up for all sites and using server side redirect.
The problem seems only occured in IE 7.

James Lin


"Markus" <difh04-(E-Mail Removed)>
???????:u$(E-Mail Removed)...
>> I thought it may be some sort of security issues like Popup-blocker.

>
> You might test this out by including your site as a trusted site (or in
> the sites enabling pop-up windows)... however, this will not be a good
> solution for your customers...
>
> but another solution:
> why don't you use redirects? You could either use a server side redirect
> (asp or asp.net - just one line of code), or use standard html
> meta-refresh tags... then you don't need the pop-up.
>
> Not solving your problem - but giving you other solution perspectives...
>
> otherwise, I am also running out of ideas ;-).
> Markus



 
Reply With Quote
 
Markus
Guest
Posts: n/a
 
      5th Feb 2007
> I have turned off pop-up for all sites and using server side
> redirect. The problem seems only occured in IE 7.


So, what's the problem right now? Before, there was the problem, that
pop-ups did not work. Now we do not have pop-ups any more, so what's the
exact problem?
Because with a server-side (or client-side) redirect, you ARE moving to
the defined page.

Maybe you post your server-side or client-side redirect script for
further analysis.

Markus
 
Reply With Quote
 
kimo kimo
Guest
Posts: n/a
 
      8th Mar 2010
If you have developed a custom Web page that launches a ClickOnce application using Active Scripting, you may find that the application will not launch on some machines. Internet Explorer contains a setting called Automatic prompting for file downloads, which affects this behavior. This setting is available on the Security Tab in its Options menu that affects this behavior. It is called Automatic prompting for file downloads, and it is listed underneath the Downloads category. The property is set to Enable by default for intranet Web pages, and to Disable by default for Internet Web pages. When this setting is set to Disable, any attempt to activate a ClickOnce application programmatically (for example, by assigning its URL to the document.location property) will be blocked. Under this circumstance, users can launch applications only through a user-initiated download, for example, by clicking a hyperlink set to the application's URL.



james wrote:

Clickonce application not launched within HTTP onload event handler using IE 7
02-Feb-07

Dear,

As following sample, if the Clickonce application launched within HTTP
onload event , it seems not work.
But if it called from onclick event, everything is just fine.
I have already turned off IE Popup-blocker in IE7.

Thanks a lot

ex:
<html>
<head>
<script language="javascript" type="text/javascript">
function DoLoad()
{
window.open("http:/localhost/TestClickOnce/TestClickOnce.application");
}
</script>
</head>
<body onload="DoLoad;">
<form>
<input type="button" value="ClickOnce" onclick="DoLoad()" />
</form>
</body>
</html>

James Lin

Previous Posts In This Thread:

On Friday, February 02, 2007 4:22 AM
james wrote:

Clickonce application not launched within HTTP onload event handler using IE 7
Dear,

As following sample, if the Clickonce application launched within HTTP
onload event , it seems not work.
But if it called from onclick event, everything is just fine.
I have already turned off IE Popup-blocker in IE7.

Thanks a lot

ex:
<html>
<head>
<script language="javascript" type="text/javascript">
function DoLoad()
{
window.open("http:/localhost/TestClickOnce/TestClickOnce.application");
}
</script>
</head>
<body onload="DoLoad;">
<form>
<input type="button" value="ClickOnce" onclick="DoLoad()" />
</form>
</body>
</html>

James Lin

On Friday, February 02, 2007 5:11 AM
Markus wrote:

ever tried onload="DoLoad()" ?
ever tried onload="DoLoad()" ? Seems you miss some brackets.

maybe this helps
Markus

On Friday, February 02, 2007 7:15 AM
james wrote:

Dear Marjus,Thanks a lot for your help.
Dear Marjus,

Thanks a lot for your help.
But it just typing mistake in the mail body. My source code is shown as
following.

<body onload="DoLoad();">

It does not work as the same,

I thought it may be some sort of security issues like Popup-blocker.

James Lin

"Markus" <difh04-(E-Mail Removed)>
???????:(E-Mail Removed)...

On Friday, February 02, 2007 7:29 AM
Markus wrote:

You might test this out by including your site as a trusted site (or inthe
You might test this out by including your site as a trusted site (or in
the sites enabling pop-up windows)... however, this will not be a good
solution for your customers...

but another solution:
why don't you use redirects? You could either use a server side redirect
(asp or asp.net - just one line of code), or use standard html
meta-refresh tags... then you don't need the pop-up.

Not solving your problem - but giving you other solution perspectives...

otherwise, I am also running out of ideas ;-).
Markus

On Sunday, February 04, 2007 11:01 PM
james wrote:

Dear Markus,Thanks again for you help.I tried your solutions, but it not works.
Dear Markus,

Thanks again for you help.
I tried your solutions, but it not works.
I have turned off pop-up for all sites and using server side redirect.
The problem seems only occured in IE 7.

James Lin


"Markus" <difh04-(E-Mail Removed)>
???????:u$(E-Mail Removed)...

On Monday, February 05, 2007 2:15 AM
Markus wrote:

So, what's the problem right now?
So, what's the problem right now? Before, there was the problem, that
pop-ups did not work. Now we do not have pop-ups any more, so what's the
exact problem?
Because with a server-side (or client-side) redirect, you ARE moving to
the defined page.

Maybe you post your server-side or client-side redirect script for
further analysis.

Markus


Submitted via EggHeadCafe - Software Developer Portal of Choice
Creating a WPF Custom Control
http://www.eggheadcafe.com/tutorials...ustom-con.aspx
 
Reply With Quote
 
Wilson, Phil
Guest
Posts: n/a
 
      8th Mar 2010
Thank you, but this was resolved for James more than three years ago ;=)

--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"kimo kimo" wrote in message news:(E-Mail Removed)...
> If you have developed a custom Web page that launches a ClickOnce
> application using Active Scripting, you may find that the application will
> not launch on some machines. Internet Explorer contains a setting called
> Automatic prompting for file downloads, which affects this behavior. This
> setting is available on the Security Tab in its Options menu that affects
> this behavior. It is called Automatic prompting for file downloads, and it
> is listed underneath the Downloads category. The property is set to Enable
> by default for intranet Web pages, and to Disable by default for Internet
> Web pages. When this setting is set to Disable, any attempt to activate a
> ClickOnce application programmatically (for example, by assigning its URL
> to the document.location property) will be blocked. Under this
> circumstance, users can launch applications only through a user-initiated
> download, for example, by clicking a hyperlink set to the application's
> URL.
>
>
>
> james wrote:
>
> Clickonce application not launched within HTTP onload event handler using
> IE 7
> 02-Feb-07
>
> Dear,
>
> As following sample, if the Clickonce application launched within HTTP
> onload event , it seems not work.
> But if it called from onclick event, everything is just fine.
> I have already turned off IE Popup-blocker in IE7.
>
> Thanks a lot
>
> ex:
> <html>
> <head>
> <script language="javascript" type="text/javascript">
> function DoLoad()
> {
> window.open("http:/localhost/TestClickOnce/TestClickOnce.application");
> }
> </script>
> </head>
> <body onload="DoLoad;">
> <form>
> <input type="button" value="ClickOnce" onclick="DoLoad()" />
> </form>
> </body>
> </html>
>
> James Lin
>
> Previous Posts In This Thread:
>
> On Friday, February 02, 2007 4:22 AM
> james wrote:
>
> Clickonce application not launched within HTTP onload event handler using
> IE 7
> Dear,
>
> As following sample, if the Clickonce application launched within HTTP
> onload event , it seems not work.
> But if it called from onclick event, everything is just fine.
> I have already turned off IE Popup-blocker in IE7.
>
> Thanks a lot
>
> ex:
> <html>
> <head>
> <script language="javascript" type="text/javascript">
> function DoLoad()
> {
> window.open("http:/localhost/TestClickOnce/TestClickOnce.application");
> }
> </script>
> </head>
> <body onload="DoLoad;">
> <form>
> <input type="button" value="ClickOnce" onclick="DoLoad()" />
> </form>
> </body>
> </html>
>
> James Lin
>
> On Friday, February 02, 2007 5:11 AM
> Markus wrote:
>
> ever tried onload="DoLoad()" ?
> ever tried onload="DoLoad()" ? Seems you miss some brackets.
>
> maybe this helps
> Markus
>
> On Friday, February 02, 2007 7:15 AM
> james wrote:
>
> Dear Marjus,Thanks a lot for your help.
> Dear Marjus,
>
> Thanks a lot for your help.
> But it just typing mistake in the mail body. My source code is shown as
> following.
>
> <body onload="DoLoad();">
>
> It does not work as the same,
>
> I thought it may be some sort of security issues like Popup-blocker.
>
> James Lin
>
> "Markus" <difh04-(E-Mail Removed)>
> ???????:(E-Mail Removed)...
>
> On Friday, February 02, 2007 7:29 AM
> Markus wrote:
>
> You might test this out by including your site as a trusted site (or inthe
> You might test this out by including your site as a trusted site (or in
> the sites enabling pop-up windows)... however, this will not be a good
> solution for your customers...
>
> but another solution:
> why don't you use redirects? You could either use a server side redirect
> (asp or asp.net - just one line of code), or use standard html
> meta-refresh tags... then you don't need the pop-up.
>
> Not solving your problem - but giving you other solution perspectives...
>
> otherwise, I am also running out of ideas ;-).
> Markus
>
> On Sunday, February 04, 2007 11:01 PM
> james wrote:
>
> Dear Markus,Thanks again for you help.I tried your solutions, but it not
> works.
> Dear Markus,
>
> Thanks again for you help.
> I tried your solutions, but it not works.
> I have turned off pop-up for all sites and using server side redirect.
> The problem seems only occured in IE 7.
>
> James Lin
>
>
> "Markus" <difh04-(E-Mail Removed)>
> ???????:u$(E-Mail Removed)...
>
> On Monday, February 05, 2007 2:15 AM
> Markus wrote:
>
> So, what's the problem right now?
> So, what's the problem right now? Before, there was the problem, that
> pop-ups did not work. Now we do not have pop-ups any more, so what's the
> exact problem?
> Because with a server-side (or client-side) redirect, you ARE moving to
> the defined page.
>
> Maybe you post your server-side or client-side redirect script for
> further analysis.
>
> Markus
>
>
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> Creating a WPF Custom Control
> http://www.eggheadcafe.com/tutorials...ustom-con.aspx


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Http Handler Factory and Possible Concurrency Issues on Application Start Jordan S. Microsoft ASP .NET 6 2nd Jun 2008 06:11 PM
Custom Http Handler Factory and Possible Concurrency Issues on Application Start Jordan S. Microsoft Dot NET 6 2nd Jun 2008 06:11 PM
adding a event handler in MFC application for c# event Mayur Gadhave Microsoft VC .NET 2 30th Aug 2006 08:14 AM
adding a event handler in MFC application for c# event Mayur Gadhave Microsoft C# .NET 0 30th Aug 2006 07:38 AM
Onload event handler Brand Microsoft Frontpage 5 10th Apr 2004 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.