Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Pop-up windows: how to remove address and scroll bars?

    How do I remove the Address Bar as well as the Status Bar from pop up windows?

    Also, how do I force a scrollbar?

  2. #2
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Pop-up windows: how to remove address and scroll bars?

    Actually, I just figured out how to force a scroll bar:

    Add this to the stylesheet with all the popup windows:
    overflow-y: scroll;

    So I guess some similar declaration should remove the address and status bar.

    Any clues?

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,369
    Plugin Contributions
    0

    Default Re: Pop-up windows: how to remove address and scroll bars?

    From one of the posts down at the bottom of this page...

    "What you do to add scroll bars is go to /public_html/includes/modules/pages/product_info/ and edit jscript_main.php"

    And that's where you control all aspects of the popup window.

    Rob
    Breakfast: the most important donut of the day.

  4. #4
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Pop-up windows: how to remove address and scroll bars?

    Quote Originally Posted by rstevenson View Post
    From one of the posts down at the bottom of this page...

    "What you do to add scroll bars is go to /public_html/includes/modules/pages/product_info/ and edit jscript_main.php"

    And that's where you control all aspects of the popup window.

    Rob
    That is not part of the template override is it?

    I was able to take care of the scroll bar in the stylesheet.

    There is no CSS way to disable address and status bars?

  5. #5
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Pop-up windows: how to remove address and scroll bars?

    I am back again trying to resolve this question.

    What kind of works
    I now have a vertical scrollbar that works without having an horizontal scrollbar.

    Here is how:
    Set /includes/modules/pages/product_info/jscript_main.php to "scrollbars=yes"

    Add this to your override stylesheet file (#popupAdditionalImage):
    overflow-y: auto;
    overflow-x: hidden;


    This keeps the vertical scrollbar active and the horizontal one invisible to allow customers to scroll up and down if they resize the window or if the window is somehow not sized correctly (somehow the horizontal sizing is fine and the vertical is different by browser). Also this avoids the presence of empty white space to the right and the left of the "larger image" popup window, which appears if there is no vertical scrollbar and is filled when the vertical scrollbar is set to yes.

    Ideally there should be a way for all browsers to automatically pop a perfectly sized window, but I guess I would be asking for too much.


    What does not work
    It does not seem possible to hide the address bar and/or the status bar (just hiding the address bar would be great).

    The javascript file linked above already sets location and status to "no". Google chrome is the only browser that does not show the status. The latest Firefox and IE always show it.

    Why is that? Are the new browsers showing the status and location no matter what the setting? (I am guessing for security reasons and to allow the customer to set their own javascript preferences in their browser?)

    Can anyone confirm or rectify? Or even add new ideas and tweaks for popups?

    Thank you.

  6. #6
    Join Date
    Jan 2004
    Posts
    60,305
    Blog Entries
    4
    Plugin Contributions
    51

    Default Re: Pop-up windows: how to remove address and scroll bars?

    Quote Originally Posted by hedron View Post
    The javascript file linked above already sets location and status to "no". Google chrome is the only browser that does not show the status. The latest Firefox and IE always show it.

    Why is that? Are the new browsers showing the status and location no matter what the setting? (I am guessing for security reasons and to allow the customer to set their own javascript preferences in their browser?)

    Can anyone confirm or rectify?
    Yes, the newer versions of those browsers ignore those settings, presumably for reasons similar to your suppositions.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,369
    Plugin Contributions
    0

    Default Re: Pop-up windows: how to remove address and scroll bars?

    Quote Originally Posted by hedron View Post
    Google chrome is the only browser that does not show the status. The latest Firefox and IE always show it.
    In Mac OS X v10.6, latest versions in all cases, Firefox shows the address bar and status bar but not scroll bars, Safari and Opera don't show any of it.

    Win XP, IE 8 shows the scroll bars, status bar and the address, but the address is not editable so it's not a standard address bar. Firefox shows both bars, as well as scroll bars even though without them they wouldn't be necessary (same as IE).

    Nasty browser makers fouling things up as best they can!

    Rob
    Breakfast: the most important donut of the day.

 

 

Similar Threads

  1. How to remove horizontal scroll
    By james739 in forum General Questions
    Replies: 2
    Last Post: 9 Jul 2008, 01:05 PM
  2. I want to remove these bars
    By lizar5- in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Sep 2007, 06:14 AM
  3. Adding Scroll Bars to Pop Up Images
    By estrange in forum General Questions
    Replies: 1
    Last Post: 30 Mar 2007, 07:41 AM

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
  •