473,569 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can a Javascript Window refresh normal parent

Hi,
I use a JavaScript window to access a library of songs when the user
picks one this is written to the users database record (PHP/MySQL).
When the use closes the JavaScript window he returns to the original
browser window.
Unfortunately unless he manually refreshes this window he cannot see
that he has succeeded in selecting a song.

Any ideas how I can force the refresh from the Javascript window, or
any other work-around?

Whoops just googled this

<input type="button" value="Reload"
onclick="parent .location='java script:location .reload()'"
alt="refresh"</form>

Have tried this, but didn't work for me in IE

--
zzapper
http://motivation-tips.co.uk/

Jun 7 '07 #1
5 12898
zzapper wrote:
Hi,
I use a JavaScript window to access a library of songs when the user
picks one this is written to the users database record (PHP/MySQL).
When the use closes the JavaScript window he returns to the original
browser window.
Unfortunately unless he manually refreshes this window he cannot see
that he has succeeded in selecting a song.

Any ideas how I can force the refresh from the Javascript window, or
any other work-around?

Whoops just googled this

<input type="button" value="Reload"
onclick="parent .location='java script:location .reload()'"
alt="refresh"</form>

Have tried this, but didn't work for me in IE
What about onClick="parent .location.reloa d();"
?

Regards,
Erwin Moller
>
--
zzapper
http://motivation-tips.co.uk/
Jun 7 '07 #2
On Jun 7, 2:15 pm, Erwin Moller
<since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
zzapper wrote:
Hi,
I use a JavaScript window to access a library of songs when the user
picks one this is written to the users database record (PHP/MySQL).
When the use closes the JavaScript window he returns to the original
browser window.
Unfortunately unless he manually refreshes this window he cannot see
that he has succeeded in selecting a song.
Any ideas how I can force the refresh from the Javascript window, or
any other work-around?
Whoops just googled this
<input type="button" value="Reload"
onclick="parent .location='java script:location .reload()'"
alt="refresh"</form>
Have tried this, but didn't work for me in IE

What about onClick="parent .location.reloa d();"
?

Regards,
Erwin Moller
--
zzapper
http://motivation-tips.co.uk/
Erwin
Looks more likely but sadly doesn't seem to work for me

zzapper

Jun 7 '07 #3
zzapper wrote:
On Jun 7, 2:15 pm, Erwin Moller
<since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
>zzapper wrote:
Hi,
I use a JavaScript window to access a library of songs when the user
picks one this is written to the users database record (PHP/MySQL).
When the use closes the JavaScript window he returns to the original
browser window.
Unfortunately unless he manually refreshes this window he cannot see
that he has succeeded in selecting a song.
Any ideas how I can force the refresh from the Javascript window, or
any other work-around?
Whoops just googled this
<input type="button" value="Reload"
onclick="parent .location='java script:location .reload()'"
alt="refresh"</form>
Have tried this, but didn't work for me in IE

What about onClick="parent .location.reloa d();"
?

Regards,
Erwin Moller
--
zzapper
http://motivation-tips.co.uk/

Erwin
Looks more likely but sadly doesn't seem to work for me
Why not?

Check the JavaScript error console for details.
In Firefox: Tools-Error Console
What does it say?

Regards,
Erwin Moller

>
zzapper
Jun 7 '07 #4
On Jun 7, 5:28 pm, Erwin Moller
<since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:

Hi what finally worked

<form><input type="button" value="Reload"
onclick="window .opener.locatio n.reload();" alt="refresh"</form>

thanks

--
zzapper
http://motivation-tips.co.uk/


Jun 13 '07 #5
zzapper wrote:
On Jun 7, 5:28 pm, Erwin Moller
<since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:

Hi what finally worked

<form><input type="button" value="Reload"
onclick="window .opener.locatio n.reload();" alt="refresh"</form>

thanks
Of course.
I told you to try 'parent' which of course should have been 'opener'.
My bad.
Sorry for the confusion. :-/

Regards,
Erwin Moller
--
zzapper
http://motivation-tips.co.uk/
Jun 14 '07 #6

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

Similar topics

4
3824
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.