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 10 of 10
  1. #1
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts

    how can i onLoad for the status bar to be shown?

    i need the users to see info in the status bar on one page i'm working on.... can i force it to appear?
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Sure, use


    window.status='Hello World'

  • #3
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    and that will force the browser to show the status bar, even if they have the option unclicked in "view"?
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Ah, but you did not say to show the status bar you said to show info in the status bar.

    The only way you could ensure that the status bar is shown is to use a new window

  • #5
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    now while i understand that you can force a status bar on a new window, can you not do the same thing using the <body onLoad""> function?

    i mean, from a purely logical point of view that's what you're doing when you open a new window aren't you... you're just defining the parameters of the environment in which your page is shown... so why can't it be done on the main page in the statement that is activated when the page loads (onLoad)?
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd be a little hesitant to try and go around forcing changes like that onto a user's browser, altho i'd be even more hesitant to turn off my status bar (site note: does anyone know how to enable status bar as defaul in my Docs etc on win XP?)

    could you perhaps absolutely position an element at the bottom of the screen and then alter that?

    Another point is that while window.status will change the status bar, if the UA changes it it (hovering over a link etc) it will not revert to what you have set, try window.defaultStatus instead.

    according to http://www.devguru.com/Technologies/...ef/window.html

    self.statusbar.visible = true;

    should do the trick nicely. Untested so dont ask me about browser compatibility though.
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)

  • #7
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    do i put self.statusbar.visible = true; in the <body onLoad="">?

    i.e <body onLoad="self.statusbar.visible = true;">?
    ...
    apparently not ... where do i stick this beast?

    it only needs to work in I.E
    Last edited by canadianjameson; 06-16-2004 at 03:47 AM.
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #8
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    also, once i get the status bar to appear when i want it to, i'm going to try to write a JS script to read the user's current status of the status bar (on or off)... if its on i'll leave it, but if it's off i'll turn it on, and then onPageExit i'll revert it back to off so to not annoy people who actually choose to keep it off.
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #9
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Quote Originally Posted by canadianjameson
    do i put self.statusbar.visible = true; in the <body onLoad="">?

    i.e <body onLoad="self.statusbar.visible = true;">?
    ...
    apparently not ... where do i stick this beast?

    it only needs to work in I.E
    Unfortunately, that only works in NS/Moz.

    I don't know there is a setting in IE to hide the status bar. Where is it?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #10
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    boo... okay, i'll drop the idea.... i didn't really need it as a core function of the page, i just have extra instructions appearing in the status bar.

    Thanks for trying guys.
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)


  •  

    Posting Permissions

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