window.opener.location.reload();

P

Plasson

<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. Suggestions? I read someone having the
same problem on devshed, unsolved for him/her, too.

Thank you in advance.

A.

--
My homepage
http://antoniobonanno.debris.it/

My portfolios
http://www.debris.it/whois.php?i=6
http://www.usefilm.com/photographer/19053.html
http://www.photosig.com/go/users/view?id=99395
 
T

Thomas 'PointedEars' Lahn

Plasson said:
<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/...1F-BA7F-471E-A57D-F2216D81EC3D&displaylang=en

The How-To can be found at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdbug/Html/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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top