Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Pop up box for website loads initially but then shrinks completely - works fine on all other browers - this is a mozilla specific problem

more options

Hi there,

Our website is www.breastfeedingexperience.com

We have a green button at the top of the homepage "Click to call" where customers can call us from their computers if they wish.

What should happen is that when you click on the green button, it should pop up with a box that gives you further instructions. This happens initially (you can see it load for a couple of seconds) but then the box shrinks to a tiny size where you cant see anything. The box should stay open to the specified size

The box stays at the required full size on all other browsers, it is just Firefox that has this issues and is what we need help with. Please try this on an alternative browser to see what I mean.

We have tried this on both PC and MAC with the same results.

Please help as we loads of clients using Mozilla who can't see the details.

I also want to confirm that we know for a fact that the coding is correct and as mentioned, this works perfectly on all other browsers.

Thank you.

Hi there, Our website is www.breastfeedingexperience.com We have a green button at the top of the homepage "Click to call" where customers can call us from their computers if they wish. What should happen is that when you click on the green button, it should pop up with a box that gives you further instructions. This happens initially (you can see it load for a couple of seconds) but then the box shrinks to a tiny size where you cant see anything. The box should stay open to the specified size The box stays at the required full size on all other browsers, it is just Firefox that has this issues and is what we need help with. Please try this on an alternative browser to see what I mean. We have tried this on both PC and MAC with the same results. Please help as we loads of clients using Mozilla who can't see the details. I also want to confirm that we know for a fact that the coding is correct and as mentioned, this works perfectly on all other browsers. Thank you.

All Replies (7)

more options

This is a problem in the RingCentral script. It is supposed to set the height of the window to fit the document, but it uses an obsolete method which results in the window being too short. Can you contact the folks at RingCentral and point them to this thread and the following page?

For their reference:

function init() {
 window.focus();
 document.input.number.focus();
 var bodyH = (window.ie ? document.body.scrollHeight + 50 : document.height + 120);
 window.resizeTo(380, bodyH);
}

document.height is undefined in Firefox 6 and later. This article lists an alternate property:

https://developer.mozilla.org/en-US/docs/DOM/document.height

more options

By the way, the pop-up should be resizable by dragging the lower right corner, and maximize-able by double-clicking the title bar, so hopefully people will be able to persevere and use it even if they encounter the initial obstacle of finding the window too small.

more options

Wouldn't the code for IE work for Firefox as well?

  • window.resizeTo(380, document.body.scrollHeight + 50);
more options

Hi cor-el, I think you're right that IE and Fx both should return the same value for document.body.scrollHeight. Whether 50 pixels are enough to accomplish the objective or 120 are needed, I don't know.

more options

I get an acceptable window size if I paste and execute that code in the Scratchpad window.

Btw, that button doesn't work with the browser.link.open_newwindow.restriction pref set to 0 with my default setting to open JS links in a new tab.

more options

Hi guys and thanks very much for your reply.

This is the response I have got from ringcentral since sending them your information above. Could you let me know your thoughts please? I ferar that you are going to tell me that it is them needing to make the repair, not each individual user who uses Mozilla? This is sooooooo frustrating!!!!!!


Hi Neil

To repair the problem, please do the following: 1) Open Firefox and in the address bar type, “about:config” 2) Find the entry “dom.disable_window_open_feature.resizable” and change it to TRUE. This will allow the popup window to be resized by clicking and dragging the mouse on the window 3) Find the entry “dom.disable_window_move_resize” and change it to TRUE. This will allow the popup window to be displayed at the correct size when it pops up.

If the problem still exists, please contact Mozilla for further support.

more options

Hi firefoxaskaway, yes, changing that Firefox setting will block their script and all other websites from resizing windows, whether erroneously or correctly. That seems rather drastic compared with them fixing their script. Not the best customer service.

One alternative might be to let the user's regular tabbed browsing setting take effect. In other words, if users normally open new windows in a tab, you could let that happen with the RingCentral popup. The script cannot resize a tab.

To do that, delete the last part of your onclick handler:

, "resizable=no,width=500,height=500"

By removing these requirements, Firefox will not force a popup and fewer users will be affected. If you need the floating window because users will want to refer back and forth to your website during the call, then this workaround probably would be less convenient.