JavaScript Problem with SP2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eft0

    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.

  • Kenneth  Bergmann

    #2
    Re: JavaScript Problem with SP2

    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" <eft0@gmx.nospa m.net> wrote in message
    news:566rd.907$ 4r3.2247@jagger .tie.cl...[color=blue]
    > 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.
    >[/color]


    Comment

    • Grant Wagner

      #3
      Re: JavaScript Problem with SP2

      It has nothing to do with how IE is "intricatel y 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:conf ig" 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 "intricatel y 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 "intricatel y 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 "intelligen t" 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:
      [color=blue]
      > 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" <eft0@gmx.nospa m.net> wrote in message
      > news:566rd.907$ 4r3.2247@jagger .tie.cl...[color=green]
      > > 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.[/color][/color]

      --
      Grant Wagner <gwagner@agrico reunited.com>
      comp.lang.javas cript FAQ - http://jibbering.com/faq

      Comment

      • eft0

        #4
        Re: JavaScript Problem with SP2

        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:[color=blue]
        > It has nothing to do with how IE is "intricatel y 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:conf ig" 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 "intricatel y 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 "intricatel y 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 "intelligen t" 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:
        >
        >[color=green]
        >>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" <eft0@gmx.nospa m.net> wrote in message
        >>news:566rd.90 7$4r3.2247@jagg er.tie.cl...
        >>[color=darkred]
        >>>I have a big problem after I install SP2 in XP Box, some functions -
        >>>window.resiz eBy() - in my code, give a error like this:
        >>>
        >>>Access Denied.
        >>>
        >>>Some similar experience ?, any ideas what's happening here ?,
        >>>
        >>>Thanks in advanced.
        >>>
        >>>Esteban.[/color][/color]
        >
        >
        > --
        > Grant Wagner <gwagner@agrico reunited.com>
        > comp.lang.javas cript FAQ - http://jibbering.com/faq
        >[/color]

        Comment

        Working...