V
vfpuglia
Hi,
Lets get it out there... I'm a newbie to javascript.
I'm trying to build a string for the external source file destination
and be able to change the keywords in the string based on what the
user presses/inputs. So here is what I have so far
<script>
.... some javascript to get the keyword arguments out of the URL ...
//build the src destination w/ the keywords
var $myURL;
$myURL = "http://www.foo.com/?keyword=";
$myURL += qsParm['keyword'];
</script>
..
..
some HTML for the page
..
..
<script src=" XXX "></script>
How do I get the XXX to be my variable that I built up at the top of
my page? I feel like I've tried everything... If I printout the
variable to the page - it is correct so its there, just dont know how
to pass it to src.
Please help
Thanks!
Vince
Lets get it out there... I'm a newbie to javascript.
I'm trying to build a string for the external source file destination
and be able to change the keywords in the string based on what the
user presses/inputs. So here is what I have so far
<script>
.... some javascript to get the keyword arguments out of the URL ...
//build the src destination w/ the keywords
var $myURL;
$myURL = "http://www.foo.com/?keyword=";
$myURL += qsParm['keyword'];
</script>
..
..
some HTML for the page
..
..
<script src=" XXX "></script>
How do I get the XXX to be my variable that I built up at the top of
my page? I feel like I've tried everything... If I printout the
variable to the page - it is correct so its there, just dont know how
to pass it to src.
Please help
Thanks!
Vince