How do I remove the Address Bar as well as the Status Bar from pop up windows?
Also, how do I force a scrollbar?
How do I remove the Address Bar as well as the Status Bar from pop up windows?
Also, how do I force a scrollbar?
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?
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
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.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
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.
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
Bookmarks