[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GScript BASIC 1.2 uploaded
In article <nospam-AA3C51.04334428082008@news.motzarella.org>,
"John B. Matthews" <nospam@nospam.invalid> wrote:
> In article
> <de285b73-3211-4afe-896d-8bed51742f62@v39g2000pro.googlegroups.com>,
> limtc <thyechean@gmail.com> wrote:
>
> > I wanted to put your name in the credit below, so I move the list to
> > the readme file (the readme button is on top right).
>
> I'm flattered! But feel free to move me to a "Contributors" page:-)
>
> > We need some form of method for user to key in new script name, not
> > just playing with existing scripts (which is fun only for a little
> > while). The goal is to have an environment which we can run new
> > scripts easily. Any suggestions are welcome.
>
> Why not both?
>
> function runCombo() {
> var file = document.getElementById("combo").value;
> document.getElementById("script").src = "run.html?file=" + file;
> }
> ...
> Script <input id="file" type="text" size="30">
> <select id="combo" onChange="runCombo()">
> <option value="ball">ball</option>
> <option value="colors">colors</option>
> <option value="commands">commands</option>
> <option value="demo">demo</option>
> <option value="gs">gs</option>
> <option value="gscolors">gscolors</option>
> <option value="gspics">gspics</option>
> <option value="home">home</option>
> <option value="lores">lores</option>
> <option value="readme">readme</option>
> <option value="ufo">ufo</option>
> </select>
> ...
Oops, forgot to update the file element, so "list" will work:
function runCombo() {
var file = document.getElementById("combo").value;
document.getElementById("file").value = file;
document.getElementById("script").src = "run.html?file=" + file;
}
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews