Results 1 to 2 of 2

Thread: wierd prob, should be simple but isn't

  1. #1
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default wierd prob, should be simple but isn't

    Ok, so I have this art piece that consists of a small flash movie that at a certain point in it's timeline is set to open a new window of itself. That window then has this javascript:
    <script type="text/javascript">
    function cleanupAndMove() {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    window.locationbar.visible = false;
    window.menubar.visible = false;
    window.statusbar.visible = false;
    window.toolbar.visible = false;
    window.personalbar.visible = false;

    // cleaned up, now call resize
    moveAndResize(screen.width, screen.height);
    }

    function moveAndResize(screen_x, screen_y) {
    window.resizeTo(190,172);
    window.moveTo(Math.round((Math.random()*screen_x)+1),Math.round((Math.random()*screen_y)+1) );
    }
    </script>
    As you can see the goal is to eliminate excess browser toolbars, to resize it and to move it to a random position on the screen. This script works pretty well when run locally, but once I put it on my server discovered it does not work at all.

    However, if I eliminate the line
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    resize and reposition functioning returns... but all the toolbars remain.

    I tried to engineer a solution by adding javascript to my flash file in order to call the new window as a popup without toolbars. No matter what I did, however, all my browsers still treated it as a regular _Blank window (despite there being no target assigned in the getURL command).

    Here is a link to the movie file:
    http://www.geniuspad.com/dev/gallery...hage/movie.htm

    Here is a link to the source files:
    http://www.geniuspad.com/dev/gallery...urce/phage.zip

    Any help asap would be much appreciated. I have an entire site waiting to go live with this as the only hang up.

    Thank you in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by dzynz
    I tried to engineer a solution by adding javascript to my flash file in order to call the new window as a popup without toolbars. No matter what I did, however, all my browsers still treated it as a regular _Blank window (despite there being no target assigned in the getURL command).
    In live executions of this sort of thing, you are likely to run afoul of the various browser's security features and/or pop-up blockers. However, out of curiosity, did you try anything remotely resembling this:

    Code:
    window.open('some.htm','','width=300, height=250, top=175, left=250')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •