Results 1 to 7 of 7

Thread: Disabling ToolBar onload of a Page

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

    Default Disabling ToolBar onload of a Page

    Hello Folks,
    i want to make ToolBar visibility=false onload of a page

    please assist me how to accomplish it..
    Regards,
    Jignesh

  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

    That can only be done if you launch the page in a new window:
    HTML Code:
    <a href="some.htm" onclick="window.open(this.href, 'newWin', 'status, scrollbars, resizable, location, directories, menubar');return false;">Some Page</a>
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thx for the reply..
    actually it is my login page which is my 1st page of application...so will not be able to use that code.....
    Kindly suggest if another alternative....

    Regards,
    Jignesh

  4. #4
    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

    There are many sites that, for various reasons, want the browser window customized for the user's visit to the site. Usually this is a bad idea because, although you think you can, you really cannot anticipate all of the consequences for the user that this may entail. In many cases, rather than add to the functionality or appearance of your site, as you may intend, it can detract from them. Your content should not be dependant upon such things anyway. That being said, the way folks do this is to have an initial page load in the users browser as usual but have only a greeting there, perhaps a logo and/or one image. On this page is also a link something like:
    HTML Code:
    <a href="pages/index.html" onclick="window.open(this.href, 'newWin', 'status, scrollbars, resizable, location, directories, menubar');return false;">Click to Enter</a>
    That pops up the rest of the site (which in this example is in the directory 'pages') in the custom window.
    - John
    ________________________

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

  5. #5
    Join Date
    Sep 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx for the reply..
    actually its a web-application in which user whenever logs out he is directed back to Login Page.But sometimes he presses "Back" button and gets into the application which we want to avoid.
    so i was trying...to change this....

    Regards,
    Jignesh

  6. #6
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Have we found a solution to this? I have a similar issue. In my case I have a page with a list displayed. The Print Button opens a _new window. (The form's target is set to _new.) I want the tool/statusbars taken off onLoad since this is printable "static" list and we don't need any toolbars. Navigation is provided back to the opener via a simple window.close() button. I will not use a pop-up in this case. I need the input parameters that are present on the opener page. Using a window.open() will force me to sloppily fake a true request. We can live with the toolbars there rather than overhauling the application.

    Thanks,

    Mr.Wampler

  7. #7
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by JigsJS
    thx for the reply..
    actually its a web-application in which user whenever logs out he is directed back to Login Page. But sometimes he presses "Back" button and gets into the application which we want to avoid.
    so i was trying...to change this....

    Regards,
    Jignesh

    The application needs to force the log-out altogether. A user doesn't need to "press the Back button," he can press Backspace (like I do) or Alt+LeftArrow to do a Back Event. Your application needs to check for log-in status on every request. Eliminating the toolbars does not avoid this user behavior in your case.

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
  •