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

J

james

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
 
J

james

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
 
M

Markus

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
 
J

james

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
 
M

Markus

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
 
K

kimo kimo

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:

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

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

maybe this helps
Markus

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" <[email protected]>
???????:[email protected]...

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

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" <[email protected]>
???????:[email protected]...

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/tutorial...9-c0b45fb68b78/creating-a-wpf-custom-con.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top