473,324 Members | 2,501 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,324 software developers and data experts.

JavaScript Problem with SP2

I have a big problem after I install SP2 in XP Box, some functions -
window.resizeBy() - in my code, give a error like this:

Access Denied.

Some similar experience ?, any ideas what's happening here ?,

Thanks in advanced.

Esteban.

Jul 23 '05 #1
3 2085
SP2 denies access to a number of window methods (resizeBy() being one of
them) for security reasons. I'm not sure, but a signed script might help.
This is the price paid for having IE so intricately tied to Windows
operating system.

Ken

"eft0" <ef**@gmx.nospam.net> wrote in message
news:56****************@jagger.tie.cl...
I have a big problem after I install SP2 in XP Box, some functions -
window.resizeBy() - in my code, give a error like this:

Access Denied.

Some similar experience ?, any ideas what's happening here ?,

Thanks in advanced.

Esteban.

Jul 23 '05 #2
It has nothing to do with how IE is "intricately tied to Windows".

Resizing browser windows can be disabled in Gecko-based browsers with the
following line in prefs.js: user_pref("dom.disable_window_move_resize", true);
It can also be set by using "about:config" and adding a new Boolean, or though
the specific preferences UI of the Gecko-based browser (assuming it's exposed
in the UI). Gecko-based browsers are not "intricately tied to Windows" and in
fact run on several operating systems.

Resizing browser windows can be disabled in Opera 7+ by going to Tools >
Preferences.. > Multimedia > JavaScript options... > Allow resizing of
windows. Opera 7+ is not "intricately tied to Windows" and in fact runs on
several operating systems.

Disabling resizing or moving of browser windows is a function of the HTTP
client, in an attempt to protect the user from hostile Web authors who do not
know it is not polite to monkey around with the host operating system UI. But
understanding the facts is not nearly as much fun as taking an uninformed
potshot at Microsoft, which makes you appear "intelligent" and
"knowledgeable".

Bottom line, unless you have control over the user agent configuration (such
as in a corporate Intranet or an Extranet application where you can demand
your users conform to a particular configuration), do not expect to be able to
open new windows, if you can open new windows, do not expect them to be
separate windows on the desktop or have the chrome you specify (they may be
tabs in an existing application), even if you can open them with the chrome
you specify and as separate windows, do not expect that you can resize or
position them (or any existing window) like you want.

Kenneth Bergmann wrote:
SP2 denies access to a number of window methods (resizeBy() being one of
them) for security reasons. I'm not sure, but a signed script might help.
This is the price paid for having IE so intricately tied to Windows
operating system.

Ken

"eft0" <ef**@gmx.nospam.net> wrote in message
news:56****************@jagger.tie.cl...
I have a big problem after I install SP2 in XP Box, some functions -
window.resizeBy() - in my code, give a error like this:

Access Denied.

Some similar experience ?, any ideas what's happening here ?,

Thanks in advanced.

Esteban.


--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #3
That's right, BTW, the IE Windows is resized always, just show the
error, and it's sucks.. i don't know how to don't showit..

Thanks in advanced.
Grant Wagner wrote:
It has nothing to do with how IE is "intricately tied to Windows".

Resizing browser windows can be disabled in Gecko-based browsers with the
following line in prefs.js: user_pref("dom.disable_window_move_resize", true);
It can also be set by using "about:config" and adding a new Boolean, or though
the specific preferences UI of the Gecko-based browser (assuming it's exposed
in the UI). Gecko-based browsers are not "intricately tied to Windows" and in
fact run on several operating systems.

Resizing browser windows can be disabled in Opera 7+ by going to Tools >
Preferences.. > Multimedia > JavaScript options... > Allow resizing of
windows. Opera 7+ is not "intricately tied to Windows" and in fact runs on
several operating systems.

Disabling resizing or moving of browser windows is a function of the HTTP
client, in an attempt to protect the user from hostile Web authors who do not
know it is not polite to monkey around with the host operating system UI. But
understanding the facts is not nearly as much fun as taking an uninformed
potshot at Microsoft, which makes you appear "intelligent" and
"knowledgeable".

Bottom line, unless you have control over the user agent configuration (such
as in a corporate Intranet or an Extranet application where you can demand
your users conform to a particular configuration), do not expect to be able to
open new windows, if you can open new windows, do not expect them to be
separate windows on the desktop or have the chrome you specify (they may be
tabs in an existing application), even if you can open them with the chrome
you specify and as separate windows, do not expect that you can resize or
position them (or any existing window) like you want.

Kenneth Bergmann wrote:

SP2 denies access to a number of window methods (resizeBy() being one of
them) for security reasons. I'm not sure, but a signed script might help.
This is the price paid for having IE so intricately tied to Windows
operating system.

Ken

"eft0" <ef**@gmx.nospam.net> wrote in message
news:56****************@jagger.tie.cl...
I have a big problem after I install SP2 in XP Box, some functions -
window.resizeBy() - in my code, give a error like this:

Access Denied.

Some similar experience ?, any ideas what's happening here ?,

Thanks in advanced.

Esteban.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.