473,796 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=2 59&ssc=237&a=56 874&u=&read_art icle=1&reset=&s econd_time=1

in the php: echo "<a href='/article/index.php?g=$g& c=$c&sc=$sc&ssc =
$ssc&a=$main_ar ticle_id&u=$u&r ead_article=1&r eset=
$reset&second_t ime=1'>";
Feb 26 '08 #1
3 1461
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=2 59&ssc=237&a=56 874&u=&read_art icle=1&reset=&s econd_time=1

in the php: echo "<a href='/article/index.php?g=$g& c=$c&sc=$sc&ssc =
$ssc&a=$main_ar ticle_id&u=$u&r ead_article=1&r eset=
$reset&second_t ime=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
1911
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 moved down about one libe leaving a gap at the top of the browser window. Viewing the resulting code of the first file via VIEW-Source, I and see a square inserted before the included file. This does not show if I open the included file with a...
4
3018
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 compatibility with the standard browsers, supplied on all platforms: We live in the pre-press industry where folk use diverse platforms such as Sparc, Mac, PC (mnimum Win2K, or XP), using Netscape and Internet Explorer, etc.
4
2228
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 problems with getting the damn thing to render correctly on Firefox and different versions of IE, I haven't even tried to look with Opera and friends. The current problem is that when the browser is resized the text is moved down below the menu...
1
1126
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 tried to force the position of the genereted window with screenX=0,screenY=0 but it doesn't seem to help. Is there a solution? My intent is to make a fullscreen mode. F@bio
10
11623
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 IE. Thanks!
2
5804
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 application run some code when its window is closed/ minimized / restored /maximized / moved / resized ? ( and how of cource ) Can a VB.NET app know where it is located in X,Y pixels on the desktop ? (
5
2104
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" value="Go >>" onClick="javascript: window.open('Funziona.htm')">
0
3528
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. But when we click on "Refresh" button on the browser, the query is fired again and again one vote is added un-necessarily..Only one vote should be posted from each pc / user. Same thing is with "Back" button on browser. when we click on vote,...
3
2058
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 Task Manager to run the shortcut, I am not able to get rid of (minimize) the DOS window. Is there somebody that is aware of this problem ? My application is an agenda, so Task Manager runs it every 15 minutes, to
7
2342
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 search an how-to for creating a plugin for Firefox and only find how create extension... I've find some informations about Python Active Scripting but this is not what I want.
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.