external.menuArguments failiure ie6

B

bba

os:xp pro sp1
ie 6.2800.1106

For some reason any java scripts that refers
to 'external' fails:
example:

external.menuArguments.document.body.style.zoom="100%";

error message:
'external.menuArguments' is null or not an object
code=0

This behaviour started recently after some fix from
microsoft was installed.

Anyone have any ideas?
 
R

Richard Cornford

bba said:
For some reason any java scripts that refers
to 'external' fails:
example:

external.menuArguments.document.body.style.zoom="100%";

error message:
'external.menuArguments' is null or not an object
code=0

This behaviour started recently after some fix from
microsoft was installed.

Anyone have any ideas?

The IE proprietary global external object has methods such as;
addDesktopComponent, addFavorite, importExportFavorites and
queryInterface. It does not contain frame objects, documents etc.

My guess is that you have given a frame the name or ID 'external' and
that has been working by overwriting the built in IE external object but
Microsoft have recently done something like making the global 'external'
property read only. Your only option is to re-name/ID the frame, but it
is generally better to never use the same character sequence for an ID
or name as is already in use as a browser DOM property name.

Richard.
 
L

Lasse Reichstein Nielsen

Richard Cornford said:
The IE proprietary global external object has methods such as;
addDesktopComponent, addFavorite, importExportFavorites and
queryInterface. It does not contain frame objects, documents etc.

The menuArguments property refers to the window object of a
contextmenu event.

Another detail about the external object, is that it is IE only. Not only
doesn't it exist in other browsers, but it doesn't even exist in other
skins for the Microsoft HTML renderer (e.g., MyIE2, that I use when I
need to test for IE).

/L
 
B

bba

Richard Cornford said:
The IE proprietary global external object has methods such as;
addDesktopComponent, addFavorite, importExportFavorites and
queryInterface. It does not contain frame objects, documents etc.

My guess is that you have given a frame the name or ID 'external' and
that has been working by overwriting the built in IE external object but
Microsoft have recently done something like making the global 'external'
property read only. Your only option is to re-name/ID the frame, but it
is generally better to never use the same character sequence for an ID
or name as is already in use as a browser DOM property name.

Richard.


Richard Cornford said:
The IE proprietary global external object has methods such as;
addDesktopComponent, addFavorite, importExportFavorites and
queryInterface. It does not contain frame objects, documents etc.

My guess is that you have given a frame the name or ID 'external' and
that has been working by overwriting the built in IE external object but
Microsoft have recently done something like making the global 'external'
property read only. Your only option is to re-name/ID the frame, but it
is generally better to never use the same character sequence for an ID
or name as is already in use as a browser DOM property name.

Richard.

Actually what I was trying to do was to add some extra item to the context
menu by adding some strings to the registry.

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\25%]
@="javascript:void(external.menuArguments.document.body.style.zoom=\"25%\")"

It appears that this used to work, however I've tried on two xp pro's and
one 98se and I get the same error.
 

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

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top