473,398 Members | 2,343 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,398 software developers and data experts.

refresh problem

I have an webpage that opens a child window that displays an applet.
When the user calls this function for the second time the same window is
opened which is fine except I need the page to be refreshed other wise
the applet is not updated. Is this possible.

This needs to be called after the window.open in the parent.

Thanks
Clive
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Jul 20 '05 #1
4 5085
Clive Moore wrote:
I have an webpage that opens a child window that displays an applet.
When the user calls this function for the second time the same window is
opened which is fine except I need the page to be refreshed other wise
the applet is not updated. Is this possible.

This needs to be called after the window.open in the parent.

Thanks
Clive


Hi Clive,

use this:

var myAppletWindow = window.open(etc.etc

// to reload:
myAppletWindow.location.reload();

// to put something else in there:
myAppletWindow.location.replace("put url here");
good luck,

Regards,
Erwin Moller
Jul 20 '05 #2
Hi Erwin,

This is my Code.

var resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
resultsWindow.location.reload();
my problem is that i get a javascript error when the user opens the
child
window the first time. I think its due to the fact that
im doing a reload on a window that is only opening.

Any ideas
Clive
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Jul 20 '05 #3
Clive Moore wrote:
Hi Erwin,

This is my Code.

var resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
resultsWindow.location.reload();
my problem is that i get a javascript error when the user opens the
child
window the first time. I think its due to the fact that
im doing a reload on a window that is only opening.

Any ideas
Clive


Hi Clive,

If you think the problem has to do with the fact the window is not loaded
(very possible) try this maybe:

var resultsWindow;

function openResultWindow(){
// can open or re-load.
if (resultsWindow) {
resultsWindow.location.reload();
} else {
resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
resultsWindow.location.reload();
}

In that way you test if it is open already and do the right thing depending
on the existance of resultsWindow.

I didn't check this code, so maybe it has some typo.

Good luck,
Erwin Moller

Jul 20 '05 #4
Sorry typo:

var resultsWindow;

function openResultWindow(){
// can open or re-load.
if (resultsWindow) {
resultsWindow.location.reload();
} else {
resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
}

That is without the resultsWindow.location.reload(); in the else-block. :-)
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
4
by: Noel Wood | last post by:
Hello, I have a problem that I'm sure is simple but I have searched the newsgroup and have not found it posted before so I apologize if it has been asked heaps of times before. I have a page that...
3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
5
by: Steve | last post by:
Hi, I have a private website for 20 people that is similar to a web email client like hotmail. There are two frames, one on the left with links for "New", "History", "Todays" and a frame on the...
12
by: Tarken | last post by:
Hi, I am trying to do some refactoring of a web site to ensure that it displays in the most web clients possible. One of the pages requires to be redirected to another automatically, for one...
4
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
1
by: ppatel | last post by:
Problem I have a problem with web image button control click event. The click event does not get trigger until it has not been clicked once or page refresh occures(which is fine). When click...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.