Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
accessing window.opener with firefox
Old 10-08-2006, 02:34 AM accessing window.opener with firefox
Junior Talker

Posts: 1
Name: dr john
Trades: 0
Hi - I've just joined this forum and had a fair look around for answers to my problem but can't see any.

I am attempting to change an image from a child window with the window.opener property.

Works fine in IE5

Basically the opening document is part of a frameset with an image array and displays the image with:-

var image=new Array()
image[0]=new Image()
image[0].src="num1.gif"
document.write('<img src="'+image[0].src+'" name="one">')
window.open("fred.html")

Then from fred.html, I say:-

opener.parent.mainFrame.one.src="num2.gif"


As I say. OK in IE but the image doesn't change in firefox - any suggestions?

Last edited by drjohn; 10-08-2006 at 02:38 AM..
drjohn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2006, 10:29 PM Re: accessing window.opener with firefox
logic ali's Avatar
Super Talker

Posts: 104
Trades: 0
Quote:
Originally Posted by drjohn View Post
+image[0].src+'" name="one">')
window.open("fred.html")
That will be blocked by anyone (almost everyone) using a popup blocker
Quote:
Then from fred.html, I say:-

opener.parent.mainFrame.one.src="num2.gif"

As I say. OK in IE but the image doesn't change in firefox - any suggestions?
I.E. often accepts ambiguous addressing; FX quite rightly does not. Try:
Code:
opener.parent.frames.mainFrame.document.images.one.src="num2.gif";
logic ali is offline
Reply With Quote
View Public Profile
 
Old 10-16-2006, 02:22 AM Re: accessing window.opener with firefox
seomumbai's Avatar
Skilled Talker

Posts: 98
Trades: 0
Javascript does not function as correctly with Firefox and opera. And if the POPups are blocked also this might not work. First check those
seomumbai is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to accessing window.opener with firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12019 seconds with 12 queries