Skip to main content
Participant
November 19, 2008
Question

cfwindow not working right in Firefox

  • November 19, 2008
  • 1 reply
  • 498 views
If you have a long page in Firefox that needs to scroll to view, when a cfwindow is displayed, the underlying window will jump to the top of its page when the cfwindow is displayed.
The behavior is correct in IE (the displayed cfwindow does not change the displayed page underneath).

Is there a fix for this ?

-thanx
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 19, 2008
    what's the code that displays your cfwindow?

    do you have something like:
    <a href="#" onclick="some_js_function_to_open_cfwindow()">...</a>?

    if so, try replacing the href="#" with href="javascript:void(0);"

    not 100% sure this will solve your problem, but it's worth a try...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    Phred1Author
    Participant
    November 19, 2008
    The code is irrelevant.

    The cfwindow gets created and displayed just fine. The problem is that if the underlying page has been scrolled when the cfwindow is displayed, the underlying page will scroll to the top - so that after the cfwindow has closed, the user will have to re-scroll to the place they were.

    This works fine in IE (underlying page does not scroll) ... but it does not work in Firefox .