Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question frames, popup & flash

    Hi ppl
    I have the main site default.php with lot of frames.

    one frame is named corner, which contains a text link
    one frame is named flash, which contains a button in flash

    both, the text link and the flash button open THE SAME POPUP

    There's another text link in the popup which calls this JS function
    openinparent('web.htm')

    function openinparent(website){
    window.opener.window.top.frames.corner.location=website;
    }

    When i open the popup from flash button and click the link (that is in the popup website) the web.htm does not change in the corner frame, but when i open the popup from the text link frame, it does.

    any ideas?

    thanks alot
    Henry Becerra
    Mambo & Joomla templates | www.beza.com.ar
    MSN: qbecerra @ hotmail.com
    San Juan - Argentina

  • #2
    New Coder
    Join Date
    Aug 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    U can look @ the picture posted...
    the flash button is located in a frame called flash
    the text link is located in the frame called corner
    both, the button & the text link open the popup...

    then, when i click the link in the popup, the contents of the corner frame must change, but the link in the popup only works when it is opened from text link...

    i'm astonished of this behaviour...
    Attached Thumbnails Attached Thumbnails frames, popup & flash-frames.jpg  
    Henry Becerra
    Mambo & Joomla templates | www.beza.com.ar
    MSN: qbecerra @ hotmail.com
    San Juan - Argentina

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When i open the popup from flash button and click the link (that is in the popup website) the web.htm does not change in the corner frame, but when i open the popup from the text link frame, it does.


    How about posting your text and flash code, and the code that opens the popup....


    -james
    "God so loved the world that he gave his only begotten son, so that whosoever believed in him would not perish, but have everlasting life. For God did not send his son into the world to condemn the world, but so that through him the world might be saved. "

  • #4
    New Coder
    Join Date
    Aug 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the code for the text link:
    Code:
    function openpopup(){
    MM_openBrWindow('popup.htm','popup','toolbar=not,location=not,status=not,scrollbars=yes,resizable=yes,width=700,height=550');
    }
    the actionscript code for the flash button
    Code:
    on(release){
       getURL('javascript:openpopup()');
    }
    both code works gr8 to open the popup...
    then, in the popup... i have a text link with this code

    Code:
    <a href="location1.php" onClick="openinparentframe('web.htm')">Click HERE</a>
    
    and the JS function is 
    
    function openinparentframe(website){
    window.opener.window.top.frames.corner.location=website; 
    }
    well, when i open the popup from flash, the corner frame does not change its contents when i click the link in the popup... but when i open the popup from the text link, it works...

    Henry Becerra
    Mambo & Joomla templates | www.beza.com.ar
    MSN: qbecerra @ hotmail.com
    San Juan - Argentina

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,949
    Thanks
    0
    Thanked 236 Times in 233 Posts
    It might be the opener property is null or something when the popup is opened by Flash ActionScript.

    Try this instead:

    function openinparentframe(website){
    window.open(website, "corner");
    }

  • #6
    New Coder
    Join Date
    Aug 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is incredible...
    glenngv, I thought your solution would be even easier !!
    I had the hope it'd work, but it didnt...
    Very strange...
    Henry Becerra
    Mambo & Joomla templates | www.beza.com.ar
    MSN: qbecerra @ hotmail.com
    San Juan - Argentina

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,949
    Thanks
    0
    Thanked 236 Times in 233 Posts
    What happened? It opened in a new window instead?

    Is the frame really named "corner" (all lowercase)?

  • #8
    New Coder
    Join Date
    Aug 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no m8...
    it didn't opened a new window...
    after I changed the code in the JS function to window.open(website,"corner"); ... I opened the popup from the text link, i clicked the link in the popup and the content of the corner frame changed, nice..
    When i opened the same popup from flash, i clicked the link in the popup, but the content didn't change in corner frame.
    I always check lowercase, etc. in my code... and yes, the frame is called corner...
    If it were not not 'corner', it should not change the contents when opened the popup from the text link ...

    I think that flash opens the popup like if it were a new window... and no relation is made between the popup and the parent window...
    Henry Becerra
    Mambo & Joomla templates | www.beza.com.ar
    MSN: qbecerra @ hotmail.com
    San Juan - Argentina

  • #9
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,949
    Thanks
    0
    Thanked 236 Times in 233 Posts
    It's weird. It shouldn't matter if the popup window is opened by the flash. It should work as long as the "corner" frame exists. If it didn't exist, it should open a new window which didn't happen to you. Probably it encountered a js error, please check it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •