Sung, 

I was getting back to my web-based config CGI scripts again, and
I was wondering if you could give a bit more information about
the data sources used by your scripts. When I was working on it
before, one of the main stumbling blocks -- which you no doubt
ran into as well -- was that there appeared to be no straightforward
way to extract a usable list of configurable parameters from
existing code fragments.

Looking at your pages, it appears that you start out with a simple
static form, and then pass the data to a javascript page that
redirects to one of three static (?) pages depending on the board
selected. Those static pages (possibly they're run through some
server-side module, I can't tell) then present a form which will
collect some option variables and pass them to a CGI script
which will spit out the config file.

So I'm wondering if there is anything more to what you've done
than what I've just described. Do you have per-mainboard
parameter files which can be used to generate the form pages?
Or have you simply hand-coded those pages? Is your CGI script
in CVS somewhere, or if not can you send me a copy?

BTW, the javascript page will not of course work in lynx or any
browser where javascript has been disabled. I fiddled around
a bit and came up with a substitute for your "forward.html"
page that uses a python CGI script to generate a page with
a meta redirect tag along with a manual link. This should work
for any browser. I've attached a copy of it, if you'd like to
use it you'd most likely want to pretty it up a bit...

Thanks,
--Bob

On Tue, Oct 02, 2001 at 10:20:42PM -0600, Sung-Eun Choi wrote:
> 
> it's up and creating, but it dependent on the "status" info submitted
> by developers, so we're just at three: ASUS CUA, Winfast, Matsonic
> MS7308E.  it's not perfect, but give it a try..
> 
>       http://www.acl.lanl.gov/linuxbios/config/index.html
> 
> -- Sung
> 
> Ollie Lho writes:
> > Ronald G Minnich wrote:
> > > 
> > > Thanks for the note and I hope you are all OK.
> > > 
> > > Bob, you will be pleased to know there is a web page at www.linuxbios.org
> > > that will soon be creating config files for people.
> > > 
> > > ron
> > 
> > Great !! Is that the perl stuff you mentioned before ??
> > 
> > Ollie
#!/usr/bin/python
import os
import sys
import cgi


form = cgi.FieldStorage()

print 'Content-type: text/html\n\n'
print '<HTML>'

if form.has_key('mainboard'):
        pagedir = form['mainboard'].value
        print '<META HTTP-EQUIV="refresh" CONTENT="2; 
url=http://www.acl.lanl.gov/linuxbios/config/mainboards/' + pagedir + '/index.html">'
        print '<BODY>'
        print '<P>Redirecting to http://www.acl.lanl.gov/linuxbios/config/mainboards/' 
+ pagedir + '/index.html</P>'
        print '<P>If browser does not load new page in two seconds, click '
        print '<A HREF="http://www.acl.lanl.gov/linuxbios/config/mainboards/' + 
pagedir + '/index.html</P>">here</A></P>'
else:
        print '<META HTTP-EQUIV="refresh" CONTENT="2; 
url=http://www.acl.lanl.gov/linuxbios/config/index.html";>'
        print '<BODY>'
        print '<P>ERROR, no mainboard value. Redirecting back to 
http://www.acl.lanl.gov/linuxbios/config/index.html'
        print '<P>If browser does not load new page in two seconds, click '
        print '<A 
HREF="http://www.acl.lanl.gov/linuxbios/config/index.html";>here</A></P>'

print '</BODY>'
print '</HTML>'

Reply via email to