473,379 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

My browser window is moved by an un-found instruction

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'>";
Feb 26 '08 #1
3 1437
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
Feb 27 '08 #2
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!
Feb 27 '08 #3
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!
Feb 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: aa | last post by:
I have an UTF-8 PHP file which generates HTML Then I cut the beginning of that file, pasted into another UTF-8 file ind included this second file into the first one. After that the whole page...
4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
4
by: David Off | last post by:
I run a blog called www.pistehors.com. The stylesheet is supposed to render a classic three pane design. Head, Menubar and Text. The size of the menubar and header are fixed. I've had a lot of...
1
by: F | last post by:
If I open a new browser window with the function window.open() on internet explorer for Mac, the new window is moved a few pixel orizontally and vertically with reference to the previous window. I...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
2
by: Dan | last post by:
Hello, I am just now converting from the world of DOS. Making simple VB.NET apps was easier than I expected. Now I need some control over the window that the app is running in. Can a VB.NET...
5
by: fulmail | last post by:
Salve, ho un problema con questo codice ho creato un file html che dovrebbe aprire un altro file nella stessa cartella. Il codice utilizzato è: <form name="Mform"> <input type="Button"...
0
by: sagarp86 | last post by:
How to lock / deactivate "Refresh" and "Back" button on browser. Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database....
3
by: Marcel Saucier | last post by:
I have written a Console Application then created a shortcut to it on my desktop. I was able to minimize the DOS window when I click my shortcut so I dont see anymore the DOS window But, using...
7
by: Sébastien Ramage | last post by:
I've an idea and I've made some search but I found nothing really interesting. There is somebody who have (or can help me to) try to developp a python plugin for web browser just like java ?? I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.