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:30:35 GMT |
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')
HTH,
Eric Dunham
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of
patrickfbestweb [dot] net
Sent: Saturday, February 05, 2000 2:25 PM
To: flasherchinwag [dot] com
Subject: FLASH: Inserting variable into Javascript command
Hello all!
I've got a simple question (I hope). I've got a "Get URL" command that
calls a piece of
Javascript:
javascript:launchwin('sample' , 'newwindow' , 'height=350,width=350')
Here's my dilemma:
The word 'sample' is actually the name of a variable that contains the
correct file name that
should be opened in the new window.
- Currently I've got the URL window set to "string litteral".
- I tried it with the URL window set for "Expression" with equally negative
results.
- With the Get URL window set to either mode, it actually works as far as
opening up a
separate window, but doesn't supply the file name that the variable "sample"
contains (it is
"sample1a.swf", in this case).
Any feedback would be appreciated.
Patrick
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
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
FLASH: Inserting variable into Javascrip, patrickf
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]