Resize parent iframe from child iframe?
 
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> Widgets Discussion -> Javascript Snippets
View previous topic :: View next topic  
Author Message
mikeyj
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 7

PostPosted: Fri Feb 23, 2007 12:10 am    Post subject: Resize parent iframe from child iframe? Reply with quote

Hi All,

If it's possible, what might be the syntax for resizing a parent iframe from the onload of an iframe in the child page? Seems like something like this might work with the right syntax:

Code:
 onload="DYNIFS.resize('ifsubcont');DYNIFS.resize('parent.ifmaincont');"


Thx!
Mike
 
Back to top
View user's profile Send private message
mikeyj
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 7

PostPosted: Fri Feb 23, 2007 12:26 am    Post subject: Reply with quote

Maybe answered my own question! This seems to work. Does it look correct?

Code:
onload="DYNIFS.resize('ifsubcont'); parent.DYNIFS.resize('ifmaincont');"


Thx!
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> Widgets Discussion -> Javascript Snippets All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum