Can a Javascript Window refresh normal parent

Z

zzapper

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='javascript:location.reload()'"
alt="refresh"> </form>

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

Erwin Moller

zzapper said:
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='javascript:location.reload()'"
alt="refresh"> </form>

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

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

Regards,
Erwin Moller
 
Z

zzapper

zzapper said:
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='javascript:location.reload()'"
alt="refresh"> </form>
Have tried this, but didn't work for me in IE

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

Regards,
Erwin Moller



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

zzapper
 
E

Erwin Moller

zzapper said:
zzapper said:
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='javascript:location.reload()'"
alt="refresh"> </form>
Have tried this, but didn't work for me in IE

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

Regards,
Erwin Moller



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
 
Z

zzapper

On Jun 7, 5:28 pm, Erwin Moller

Hi what finally worked

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

thanks
 
E

Erwin Moller

zzapper said:
On Jun 7, 5:28 pm, Erwin Moller

Hi what finally worked

<form><input type="button" value="Reload"
onclick="window.opener.location.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
 

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,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top