Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Inserting variable into Javascript command |
| From: | Markus Gut |
| Date: | Sun, 6 Feb 2000 00:05:21 GMT |
Try to set the URL to something like this:
"javascript:launchwin('"+sample+"', 'newwindow', 'height=350,width=350')"
Note: '"+sample+"' is single quote, double quote, +sample+, double quote,
single quote, and the whole thing is an expression. If 'sample' contains
'sample1a.swf', Flash will try to open following URL:
javascript:launchwin('sample1.swf', 'newwindow', 'height=350,width=350')
Which is the way you need it, I guess?
HTH,
Markus Gut
> I've tried that, but the problem is that now the Javascript doesn't work.
> It needs the single quote marks around the file name. I've tried making
> those a part of the variable, but with no better success.
>
> >
> > Don't use quotes when you pass 'sample' as an argument if it is a
> > variable. If you do that, the word 'sample' will be literally
interpreted
> > as that, and it will try to open the document 'sample', instead of the
> > one that you want. For example...
> > javascript:launchwin(sample, 'newwindow', 'height=350,width=350')
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
RE: FLASH: Inserting variable into Javas, patrickf
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

