Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Feb 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing window attributes

    hey guys

    javascript isn't my strong point, but it looks like i'm going to need it this time. i'm making a flash movie for a project at school, and basically, i need to change the size of an internet browser (ie) and get rid of the toolbar, status bar, etc.

    i know you can do all that stuff through the window.open command, but i need to do all this to the current window.

    this won't actually be going on the internet or anything, so i don't need to worry about any inconsistencies between browsers etc.

    if anyone could help it would be MUCH appreciated.

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Configure the InternetExplorer Object, in a script file, and run that.
    Modesty is often lacking in our transactions.

  • #3
    New Coder
    Join Date
    Feb 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry, the internet explorer object?

    how do i do that?

  • #4
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, its a long story...
    What all are you looking to do with the project, window-wise?

    Take a look at the HTA documentation, for a simpler, but less flexible set up.
    Modesty is often lacking in our transactions.

  • #5
    New Coder
    Join Date
    Feb 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    all i need is for the first window that i launch from flash (which has a local address) to be of a specific size, and without the toolbars/statusbar/any of that junk

  • #6
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, post your current code, so that someone might provide pointers, based on that.

    Be sure to read the manual, too, while you're at it.
    Modesty is often lacking in our transactions.

  • #7
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "God so loved the world that he gave his only begotten son, so that whosoever believed in him would not perish, but have everlasting life. For God did not send his son into the world to condemn the world, but so that through him the world might be saved. "

  • #8
    New Coder
    Join Date
    Feb 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, so i think maybe i was a bit misleading when i started ranting about my project being based around flash.

    just say for instance i have an html page that is just

    Code:
    <html>
    
    </html>
    is there something i can add to that code that would make the page a certain size, and get rid of toolbars etc.

    i am not opening a new window

  • #9
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, there are three ways to go about it, and each has already been pointed out.
    Modesty is often lacking in our transactions.

  • #10
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i am not opening a new window
    You can't change the attributes of the original window.


    -james
    "God so loved the world that he gave his only begotten son, so that whosoever believed in him would not perish, but have everlasting life. For God did not send his son into the world to condemn the world, but so that through him the world might be saved. "

  • #11
    New Coder
    Join Date
    Feb 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok then, thanks for your help guys

  • #12
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok then, thanks for your help guys
    Best you can do with Javascript, is to open a child window and immediately close the parent. I do this on my own site.

    A little js JuJitsu to bypass the window close prompt:

    <body onLoad="javascript:window.parent='';window.close();">



    -james
    "God so loved the world that he gave his only begotten son, so that whosoever believed in him would not perish, but have everlasting life. For God did not send his son into the world to condemn the world, but so that through him the world might be saved. "


  •  

    Posting Permissions

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