473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

window.opener.location.reload();

<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
1 8082
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the...
1
by: Debbie Davis | last post by:
Hi there, I'm not very good at javascript but I'm using the following to close a child window and refresh a parent window after updating a database. It's within an ASP page. CODE <SCRIPT>...
2
by: Snolly | last post by:
Hi all, Here is my issue. I have a web page (lets call it page1) with an iframe in it that then opens a pop-up window (page2). The pop-up window is used to edit some data that was loaded into...
2
by: alex bazan | last post by:
I'm popping a window to a page with a different dns than the parent, and i want the opener's location reloaded when this window is closed. With Mozilla it seems that all the opener's methods and...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
5
by: Hemanth | last post by:
Hello there, I'm running a script that opens a popup window (which is basically a form with checkboxes and a submit button). When I click the submit button I want to run a PHP script and target...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
3
by: Dan M | last post by:
Is it possible to redirect or refresh the contents of Page1 from within Page2 where Page2 was opened by Page1?
1
by: JJ | last post by:
Hi All, How in ASP.NET, from PopUp window: 1) - save Data in Database; and after 2) a) - Reload the opener window b) -close PopYp window. Note:
7
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...

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.