My browser window is moved by an un-found instruction

Discussion in 'Javascript' started by Fabrice Baro, Feb 26, 2008.

  1. Fabrice Baro

    Fabrice Baro Guest

    I'm working with a (complex) site written in php/javascript. A link,
    when clicked, causes a centering of the browser window on the screen.
    I would like to find what causes this moving. I suspect it's a
    javascript command.

    The behavior is slightly different for IE than FF: when the browser
    window is on my second screen, IE is brought back in the center of the
    main screen, whereas FF stays "stuck" on the left of the 2nd screen.

    The link in the generated html:
    /article/index.php?
    g=3331&c=6&sc=259&ssc=237&a=56874&u=&read_article=1&reset=&second_time=1

    in the php: echo "<a href='/article/index.php?g=$g&c=$c&sc=$sc&ssc=
    $ssc&a=$main_article_id&u=$u&read_article=1&reset=
    $reset&second_time=1'>";
     
    Fabrice Baro, Feb 26, 2008
    #1
    1. Advertising

  2. Fabrice Baro wrote:
    > I'm working with a (complex) site written in php/javascript. A link,
    > when clicked, causes a centering of the browser window on the screen.
    > I would like to find what causes this moving. I suspect it's a
    > javascript command.


    There are no commands, there are statements and expressions.

    > [...]
    > The link in the generated html:
    > /article/index.php?
    > g=3331&c=6&sc=259&ssc=237&a=56874&u=&read_article=1&reset=&second_time=1
    >
    > in the php: echo "<a href='/article/index.php?g=$g&c=$c&sc=$sc&ssc=
    > $ssc&a=$main_article_id&u=$u&read_article=1&reset=
    > $reset&second_time=1'>";


    That doesn't help at all as there is no client-side script code. You have
    the best chance of finding the cause when doing a fulltext search for
    "moveTo", "moveBy", "resizeTo" or "resizeBy" (basic DOM knowledge really).
    Good luck.


    PointedEars
    --
    realism: HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness: XHTML 1.1 as application/xhtml+xml
    -- Bjoern Hoehrmann
     
    Thomas 'PointedEars' Lahn, Feb 27, 2008
    #2
    1. Advertising

  3. Fabrice Baro

    Fabrice Baro Guest

    Hi Bjoern,
    > "moveTo", "moveBy", "resizeTo" or "resizeBy"

    Thanks, that's the help I was expecting.

    >(basic DOM knowledge really).

    Mmm, not so much for me, obviously!
     
    Fabrice Baro, Feb 27, 2008
    #3
  4. Fabrice Baro

    Fabrice Baro Guest

    Hi Bjoern,
    > "moveTo", "moveBy", "resizeTo" or "resizeBy"

    Thanks, that's the help I was expecting.

    >(basic DOM knowledge really).

    Mmm, not so much for me, obviously!
     
    Fabrice Baro, Feb 27, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt MC
    Replies:
    13
    Views:
    5,074
  2. Erick Crouse
    Replies:
    0
    Views:
    374
    Erick Crouse
    Mar 27, 2008
  3. Christine
    Replies:
    1
    Views:
    103
    Christine
    Feb 19, 2004
  4. Matt MC
    Replies:
    13
    Views:
    176
  5. David Mark
    Replies:
    7
    Views:
    125
    David Mark
    May 12, 2010
Loading...

Share This Page