I am writing a PHP/MySQL web-page based system on Firefox and wish to
run a separate page from an <Alink to run a separate PHP script,
then close that page. Firefox starts a new tab for this and it closes
OK but I am then left with an egg-timer at the mouse arrow when over
top or bottom toolbars areas of the parent page.
I am using <BODY onLoad='Javascr ipt:close()'to fire the tab closure.
I have tried opener.focus() with no effect.
I can't tell what is running. It doesn't happen with IE.
Any explanation/solution?
Ron Lowe
Jun 27 '08
13 5519
Thomas 'PointedEars' Lahn <Po*********@we b.dewrites:
Joost Diepenmaat wrote:
>Joost Diepenmaat <jo***@zeekat.n lwrites:
>>Erwin Moller <Si************ *************** *************** @spamyourself.c omwrites: Is there ANY use ever for javascript: ?? (I don't want to advise people to avoid it if it has actual use somewhere/somehow.) IIRC the purpose of the javascript: URLs (and URLs only) is to call a JS function
^^^^^^^^ or direct code. it seems to work more or less like eval() in that regard...
It is described how it is supposed to work, and that appears to match the
implementations ' behavior. I have posted the description in another thread
*today*, so there really is no need to post your wild assumptions.
A link to a description to how it's "supposed to work" would be
nice. It's unsurprisingly hard to search for this behaviour because of
the keywords involved.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Joost Diepenmaat wrote:
Thomas 'PointedEars' Lahn <Po*********@we b.dewrites:
>Joost Diepenmaat wrote:
>>Joost Diepenmaat <jo***@zeekat.n lwrites: Erwin Moller <Si************ *************** *************** @spamyourself.c omwrites: Is there ANY use ever for javascript: ?? (I don't want to advise people to avoid it if it has actual use somewhere/somehow.) IIRC the purpose of the javascript: URLs (and URLs only) is to call a JS function ^^^^^^^^ or direct code. it seems to work more or less like eval() in that regard...
It is described how it is supposed to work, and that appears to match the implementation s' behavior. I have posted the description in another thread *today*, so there really is no need to post your wild assumptions.
A link to a description to how it's "supposed to work" would be
nice. It's unsurprisingly hard to search for this behaviour because of
the keywords involved.
It isn't. http://groups.google.com/groups?as_q...5&as_maxy=2008
(Well, I have been off by 7 minutes ...)
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Thomas 'PointedEars' Lahn <Po*********@we b.dewrites:
>A link to a description to how it's "supposed to work" would be nice. It's unsurprisingly hard to search for this behaviour because of the keywords involved.
It isn't.
<http://groups.google.com/groups?as_q...num=10&scoring
=r&as_epq=&as_o q=&as_eq=&as_ug roup=comp.lang. javascript&as_u subject=&
as_uauthors=Poi ntedEars&lr=&as _qdr=&as_drrb=b &as_mind=13&as_ minm=5&
as_miny=2008&as _maxd=14&as_max m=5&as_maxy=200 8>
Neither of the two pages you mention in that post is in the first 100
results on a google search of '"javascript url"' (with quotes) or
'javascript url' (without quotes) for me. And not to be annoying, but
it looks to me like those pages are describing browser behaviour as it
was whenever they were written instead of any kind of standard (not
that there's anything wrong with that).
Anyway, thanks.
Joost.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Thanks, guys (& gals but I didn't notice any)
That got rather esoteric.
Just to be annoying I have rewritten the code using IFRAME instead!
The point with the PHP is that I have to fire code to set up a new
MySQL table but then return to the submitting page as it was.
Reloading PHP pages leads to very complicated if {}s and becomes
unintelligible.
Cheers
Ron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Blair |
last post by:
Hi,
I have a problem with our intranet, we are planning to install Firefox
instead of Internet Explorer onto some new PCs.
However, we can't get the following JavaScript to work in Firefox and
similar code is used in lots of the intranet stuff.
The code should bring up a message box with a warning and not allow
the user to continue unless they have filled in the entry in an html
form (the form is called 'myauthor').
|
by: nec |
last post by:
Hi,
I'm having trouble calling a function thats located in a iFrame from the
parent. Shortly, i can't figure out the location in DOM.
In IE it works fine with a simple line of
window.contens.alerter('wassa?'), but it doesnt, of course work in Firefox
(0.8).
I've tried document.getElementById('contens').alerter('wassa?') and
|
by: Colin Graham |
last post by:
Hi guys,
Just a quickie here that i hope someone can help me with. Basically i
want stop the user from closing the popup window using the small x
button in the top right hand corner. Im aware that i cant disable this
so i thought is it possible to do a check to see if a hidden text on
the main form has a value. E.g. if we close the popup correctly then
text box on the main form will say true. If we close the text box
using the x in the...
|
by: andreister |
last post by:
He there!
I've discovered that the
=================================================
document.links('link_id_here').href = "something";
=================================================
is not applicable for the Firefox (even for the 1.0.6), and I'm falling
into passing through the array and checking each link id.
|
by: Ashok |
last post by:
I have developed a custom IE application in C# using webbrowser
control. But i am facing couple of issues when user clicks on an Exit
link on a page the application is getting grayed out, but not closing.
I exposed a close button in my application for doing this (this. Close
(); ), but the end user wants the client JavaScript also ("Exit") to
work. Is there any way to do this? What I have to do to make the
JavaScript to work in my...
| |
by: luckyroom505 |
last post by:
Hello to you all.
I am trying to use an already installed dll on a Windows machine. I use
javascript, and the
OBJECT tag. On Internet Explorer this works fine, but on Firefox
(v1.04) not.
This is obviously because FF does not support ActiveX.
There is the FF ActiveX extension:
|
by: adbo_atoz |
last post by:
Hello All
I am trying to duplicate this code which works in IE to work in Firefox
<SCRIPT LANGUAGE="javascript">
function submitOnEnterKey()
{ if(event.keyCode == 13) {
event.returnValue = false;
} else {
event.cancelBubble = true
|
by: Yeezy |
last post by:
Hi,
I have the following javascript in my .aspx page where it will redirect you to another new .apsx. However, I have no problem with it when running on IE.. But when it's run with firefox, the script got hang with the words "Loading" and never get redirect to the new .aspx. Any ideas where went wrong? Kindly please advise. Thanks.
<script type="text/javascript" language="javascript">
function NewButtonClicked()
{
...
|
by: loveshack |
last post by:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem.
Firstly, everything i have written works fine in IE7 and beta IE8. My pages do not work however in Safari or Firefox, and please dont beat me, but i use Frontpage to write my site, and i use iframes as ive not discovered how to do this any differently!
So the issue is this, i have a...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |