limtc <thyech...@gmail.com> wrote: > > Delightful! Here's a small change people might find appealing: In > > index.html, I replaced the input text field
> > <input id="file" type="text" size="30">
> > with a selection list
> > <select id="file" onChange="run(this.options[this.selectedIndex].value)"> > > <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> > Thinking of doing this too... convenient. But how does a user key in > their own script name when he writes a new script? Any idea?
I'd just modify the list. An alternative might be to keep the field and have the selection update it. I couldn't find a clean way to glob the scripts directory, but it appears possible.
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).
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.
On 8月28日, 下午3时34分, "John B. Matthews" <nos...@nospam.invalid> wrote:
In article <de285b73-3211-4afe-896d-8bed51742...@v39g2000pro.googlegroups.com>,
limtc <thyech...@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> ... -- John B. Matthews trashgod at gmail dot com home dot woh dot rr dot com slash jbmatthews
> In article > <de285b73-3211-4afe-896d-8bed51742...@v39g2000pro.googlegroups.com>, > limtc <thyech...@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.