[BNM] Opening pop ups in flash: firefox issue

Ali ali at nubz.com
Tue Mar 7 17:57:19 GMT 2006


The concatenation will certainly work and produce a valid argument for the javascript to deal with

you just need to make sure that the picUrl variable is simple to deal with e.g. make it the path to the image and the PHP in the popped up page would be as simple as echo "<img src='$pic' />";

Ali

  Hi Ali,

  That may well answer my question in another way! I can just use that 
  concatenation that you've demonstrated quite happily to me to pass the 
  variable, without the need for the line in the next frame.

  If it works - it's a deceptively simple solution to a problem that's 
  become needlessly complicated!

  Cheers,

  Dan.

  Ali wrote:

  >Hi Dan
  >
  >Is it possible to use PHP for the image page?
  >
  >If so why not pass the picUrl to the pop-up page in the javascript in one go?
  >
  >getURL 
  >("javascript:openNewWindow('img_page.php?pic=" + _root.picUrl + "','thewin','width=390,height=470,toolbar=no,scrollbars=no')");
  >
  >HTH
  >
  >Ali
  >

  >
  >  Hello,
  >
  >  I'm venturing into an area I know little about modifying an existing 
  >  flash website.
  >
  >  The site has a popup window bit that opens a window from a thumbnail, 
  >  showing a full size image in an html file.
  >
  >  The problem comes when viewing in firefox - the window does not get 
  >  reloaded with the appropriate html file. It's fine in IE
  >
  >  The loader uses the following simple actionscript:
  >
  >  getURL 
  >  ("javascript:openNewWindow('empty.html','thewin','width=390,height=470,toolbar=no,scrollbars=no')");
  >     
  >  Then, in the next frame,
  >
  >  stop();
  >  getURL (_root.picUrl,'thewin');
  >
  >  Where picUrl will be the name of the html file for this thumbnail.
  >
  >  I've tried extending the time between the window opening and it being 
  >  loaded with the appropriate file, in case the two requests are 
  >  overlapping, due to client side rendering times.
  >
  >  Sorry this is a bit vague, I'm really fumbling around in the dark with 
  >  actionscript. Can't get the fourth dimension to the programming...!
  >
  >  Cheers,
  >
  >  Dan.
  >
  >  -- 
  >  Daniel Eastwell
  >
  >  http://www.thoughtballoon.co.uk



More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service