Plasson wrote:
<script language="JavaScript">
window.opener.location.reload();
setTimeout(window.close(), 5000);
</script>
I have this code in a popup in which I let user login using PHP (2 passages:
insert data, submit). The second command does work alone, while the first
there is not way to make it work.
<FAQENTRY>
Q: My script does not work. How do I make it work?
A: "Does not work" is a useless error description. [psf 4.11]
Suggestions?
If JavaScript support is present and enabled, debug the script.
Internet Explorer
------------------
Select Internet Settings, Extras(?; last tab), then
[X] Show script errors
To use a debugger:
[_] Disable script debugging
The Microsoft Script Debugger can be downloaded from
http://www.microsoft.com/downloads/d...displaylang=en
The How-To can be found at
http://msdn.microsoft.com/library/de...ml/sdbug_1.asp
A script debugger is also included in Microsoft Visual Studio.
Netscape 3.x+ and
Mozilla/5.0 (incl. Netscape 6+, Mozilla Firebird, ...)
-------------------------------------------------------
Type `javascript
:' in the Location Bar to show the JavaScript Console.
Mozilla/5.0
------------
In Mozilla, select Tools (menu), Web Development, JavaScript Console.
In Netscape 6+, select Extras(?), Tasks(?), JavaScript Console.
Select Tools, Web Development, JavaScript Debugger. If Venkman, the
JavaScript Debugger for Mozilla/5.0 is not yet installed, either update
your Mozilla/5.0 and select `Debugger' in the Custom Setup, or download
and install Venkman as Cross Platform Installation (XPI) from
<http://www.hacksrus.com/~ginda/venkman/>
How-Tos can be found there, too.
Opera
------
Select File, Preferences, Multimedia, then
[X] Enable JavaScript
[X] Open JavaScript console on error
$Foobar
--------
RTFM.
</FAQENTRY>
PointedEars