First, are you sure you want to use the onChange method for a text field
(most often used for a dropdown) - change happens frequently when typing.
Perhaps onBlur or onClick of something might be better.
Since you are ciommunicating with different dcr movies you could rewrite the
page each time with javascript to replace the value of sw1 and the movie
name. You would use the document.write function to rewrite the ENTIRE page.
Here is a simple example of rewriting the page (watch for email linebreaks):
==============================================================
<script language="JavaScript1.2">
function getProperties(myDCR, myParam)
var page = "My dcr stuff would go here but written correctly, of
course:<br><br>";
page += "src=" + myDCR + "<br>";
page += "sw1=" + myParam;
return page;
}
function whichWord(something) {
var theDCR = "";
var theParam = "";
document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><html><head><title>Whatever</title></head></html>');
switch (something)
case "aaa":
theDCR = 'aaa.dcr';
theParam = 'aaa';
break;
case "bbb":
theDCR = 'bbb.dcr';
theParam = 'bbb';
break;
case "ccc":
theDCR = 'ccc.dcr';
theParam = 'ccc';
break;
}
document.write(getProperties(theDCR, theParam));
document.close();
}
</script>
<a href="javascript:whichWord('aaa');">aaa</a><br/><br/>
<a href="javascript:whichWord('bbb');">bbb</a><br/><br/>
<a href="javascript:whichWord('ccc');">ccc</a><br/><br/>
============================================================
> True I wanted to try send different messages to different dcr movies
> onChange a text field in a form.
>
> Just thinking of certain permutation combis.
>
> Thanx
>
> and regards to both
>
> Gopinath
> > Hi Kerry
> >
> > Guess it is all in what the intention is, if it is to pass info in at
only
> > the start then using externalParamValue works like a charm. But if the
> > desire is to have continuous communication between javascript and the
> > browser, then you have to pull your hair out (that is if you have any
left)
> > :-)
> >
> > Sincerely
> >
> > Mark
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]