By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,817 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,817 IT Pros & Developers. It's quick & easy.

window.opener.location.reload();

P: n/a
<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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.