Javascript Help

  • Started
  • Last post
  • 2 Responses
  • fifty50

    This is a really simple thing for you guys probably, so I'm expecting a quick response to this one...

    My current page features links from a flash environment telling a window to pop up at a certain size and without address bars, etc. My first intention was to make this a javascript link directly in the flash file, but when I tested the site out on a windows computer, it didn't work. It only seems to work on a Mac. Could someone on a PC check out my link and tell me what I'm doing wrong? Thanks...

    http://www.cdgdisplays.com/flash…

    Choose Products > Fabric Displays. In the scrolling area to the right, choose any product and click on More Info. That's where the bad code is.

  • mrock0

    It actually works but causes the parent window leave that window as well. Have you tried calling the function from outside the .SWF container? E.G. with in the GetUrl of flash have it call to a window popup function outside of flash. I'm sure there other solutions, but this should work. You can look at the source code at http://www.darkerimagecalendar.c… and search for a function called popWin. Good Luck!!

  • mrock0

    oh actually you can use the same function in your code. Just make a call to from flash to the "function MM_openBrWindow" and the parameters are already there.
    theUrl = the name of the popup file.
    winName = name of window, may wanna keep this the same to keep from a lot of windows spawning.
    features = 'width=375,height=450,toolbar=no...