HighDots Forums  

Re: onclick="alert('hello');return false;" does not work in IE7?

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: onclick="alert('hello');return false;" does not work in IE7? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ASM
 
Posts: n/a

Default Re: onclick="alert('hello');return false;" does not work in IE7? - 12-05-2006 , 01:17 PM






alvin.yk (AT) gmail (DOT) com a écrit :
Quote:
other suggestions?
Perhaps you have a tag 'object' or 'embed' or 'applet' in same page ?
if yes, it is a problem with your Windows !
I've heard the last update added something blocking popups.

Microsoft have then published a medicine
(something to break the protection they have just created ... ! ! ! !)

You'ld have to put after last <object ...>

<script type="text/javascript" src="ieupdate.js"></script>

and have this ieupdate.js in same folder.

file 'ieupdate.js' :
====================
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}

<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp>

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date


Reply With Quote
  #2  
Old   
VK
 
Posts: n/a

Default Re: onclick="alert('hello');return false;" does not work in IE7? - 12-05-2006 , 01:30 PM







ASM wrote:
Quote:
Perhaps you have a tag 'object' or 'embed' or 'applet' in same page ?
if yes, it is a problem with your Windows !
I've heard the last update added something blocking popups.

Microsoft have then published a medicine
(something to break the protection they have just created ... ! ! ! !)

You'ld have to put after last <object ...

script type="text/javascript" src="ieupdate.js"></script

and have this ieupdate.js in same folder.

file 'ieupdate.js' :
====================
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
That is the old Eolas workaround, nothing to do with links or popups.
Eolas' "no activation w/o interaction" block is not IE or Windows
specific: it is the same for any law-obeyant UA made over the last
year-and-half. btw this old workaround was contested as legally clean
because the object tag source code is still coming from the page.
document.write from external file is the current way (see my "Eolas
workaround" post)



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.