Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Inserting variable into Javascript command |
From: | Eric Dunham |
Date: | Sat, 5 Feb 2000 23:57:58 GMT |
Try and run it through a separate function, like
function launchWin(sample)
{
window.open(sample, 'newwindow', 'height=350,width=350');
}
with "javascript:launchwin(sample)" in your GetURL statement...
Or you could try and run it through an eval statement like,
javascript:eval("window.open(\'" +sample+ "\', \'newwindow\',
\'height=350,width=350\')");
Even though I don't usually like popup windows (so I don't really deal with
them), I think that code should work...
HTH,
Eric Dunham
<snip>
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')
</snip>
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 helpchinwag [dot] com
Replies
RE: FLASH: Inserting variable into Javas, patrickf
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]