This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > February 2007 > choice lists





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author choice lists
Brett

2007-02-19, 10:17 pm

Hello Everyone....
I created a drop down list with predefined values...
I'm trying to push the button to load the value of one of the selected
entries in the choice list...

But I don't know how to pull the fieldvalue using frontpage...
Can someone please help?

<form method="POST">
<p><font size="1"><font face="Times New Roman"><select size="1"
name="checkinglist" style="font-size: 8pt" class="navchoicelist">
<option value="page1.gif">Page 1</option>
<option value="page2.gif">Page 2</option>
<option value="page3.gif">Page 3</option>
<option value="page4.gif">Page 4</option>
</select> </font><input type="button" value=" "
name="GetChecking" style="font-size: 8pt" class="navButton"></font></p>
</form>


I can do this in lotusscript all day long.. but in a straight web page.. I
just don't know...
Any help would be appreciated...

Thx.
Brett


Brett

2007-02-19, 10:17 pm

Let me put up an example and show you what I have:

<form>
<select id="Choice" style="color: #0000FF" size="1" name="mySelect">
<option value="">Select one</option>
<option value="page1.gif">Page 1</option>
<option value="page2.gif">Page 2</option>
</select>

<input type="button" value="Go"
onclick="window.open(Choice.options[Choice.selectedIndex].value)">
</form >

I can't make the page1.gif file open.. yet it exists in the same directory
this html page is exist in.....

Any advise would be appreciated...

thx,
Brett


Kathleen Anderson [MVP - FrontPage]

2007-02-19, 10:17 pm

Your script looks fine. Shouldn't page1.gif be page1.htm?

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/


"Brett" <flir48@yahoo.com> wrote in message
news:LsKcnbumptwR1EfYUSdV9g@ptd.net...
> Let me put up an example and show you what I have:
>
> <form>
> <select id="Choice" style="color: #0000FF" size="1" name="mySelect">
> <option value="">Select one</option>
> <option value="page1.gif">Page 1</option>
> <option value="page2.gif">Page 2</option>
> </select>
>
> <input type="button" value="Go"
> onclick="window.open(Choice.options[Choice.selectedIndex].value)">
> </form >
>
> I can't make the page1.gif file open.. yet it exists in the same directory
> this html page is exist in.....
>
> Any advise would be appreciated...
>
> thx,
> Brett
>
>



Brett

2007-02-20, 3:15 am

Kathleen,
Thanks for your response....I figured also it would work, but it doesn't.

Let me explain the setup...
I scan every document of importance as a gif file.
I then use a 'home only' web site (not viewable anywhere but home) to store
information etc,,, as a scanned gif image.. reciepts..etc....for future
reference.
For the last 8 years.. I've just been using links..and the gif file would
open in the "main" frame
and it worked fine. This type setup and storage is allowable by the IRS.

But now I'm trying to streamline it a bit. and wish to use a text choice
list and load the desired gif
I wish to show in a frame... (just like my example...)

I'm a lotus guy and I could do this with lotusscript easily on a domino
server, but the IRS rules say it must
be universally read so I'm trying to stay as straight as I can to HTML,
(with a little script and css here and there)

any help would be appreciated.

thx,
Brett





"Kathleen Anderson [MVP - FrontPage]" <spiderwebwoman@mvps.org> wrote in
message news:uzgxOyIVHHA.3500@TK2MSFTNGP05.phx.gbl...
> Your script looks fine. Shouldn't page1.gif be page1.htm?
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> web: http://www.spiderwebwoman.com/resources/
>
>
> "Brett" <flir48@yahoo.com> wrote in message
> news:LsKcnbumptwR1EfYUSdV9g@ptd.net...
>
>



Kathleen Anderson [MVP - FrontPage]

2007-02-20, 10:15 pm

Brett:
I copied your code, and with the gifs in the same folder as the page with
the dropdown menu, it works:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<form>
<select id="Choice" style="color: #0000FF" size="1" name="mySelect">
<option value="">Select one</option>
<option value="awstats.gif">Page 1</option>
<option value="canceled.gif">Page 2</option>
</select>

<input type="button" value="Go"
onclick="window.open(Choice.options[Choice.selectedIndex].value)">
</form >
</body>

</html>


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/


"Brett" <flir48@yahoo.com> wrote in message
news:deScnaB81-I78UfYUSdV9g@ptd.net...
> Kathleen,
> Thanks for your response....I figured also it would work, but it doesn't.
>
> Let me explain the setup...
> I scan every document of importance as a gif file.
> I then use a 'home only' web site (not viewable anywhere but home) to
> store
> information etc,,, as a scanned gif image.. reciepts..etc....for future
> reference.
> For the last 8 years.. I've just been using links..and the gif file would
> open in the "main" frame
> and it worked fine. This type setup and storage is allowable by the IRS.
>
> But now I'm trying to streamline it a bit. and wish to use a text choice
> list and load the desired gif
> I wish to show in a frame... (just like my example...)
>
> I'm a lotus guy and I could do this with lotusscript easily on a domino
> server, but the IRS rules say it must
> be universally read so I'm trying to stay as straight as I can to HTML,
> (with a little script and css here and there)
>
> any help would be appreciated.
>
> thx,
> Brett
>
>
>
>
>
> "Kathleen Anderson [MVP - FrontPage]" <spiderwebwoman@mvps.org> wrote in
> message news:uzgxOyIVHHA.3500@TK2MSFTNGP05.phx.gbl...
>
>



Brett Flagg

2007-02-21, 6:16 pm

Ok.. NOW it works...
Tried the code on my work pc and it works fine...
I will try it on the home front soon (both IE7)




"Kathleen Anderson [MVP - FrontPage]" <spiderwebwoman@mvps.org> wrote in
message news:eHOu%23sVVHHA.4260@TK2MSFTNGP06.phx.gbl...
> Brett:
> I copied your code, and with the gifs in the same folder as the page with
> the dropdown menu, it works:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html lang="en">
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body>
>
> <form>
> <select id="Choice" style="color: #0000FF" size="1" name="mySelect">
> <option value="">Select one</option>
> <option value="awstats.gif">Page 1</option>
> <option value="canceled.gif">Page 2</option>
> </select>
>
> <input type="button" value="Go"
> onclick="window.open(Choice.options[Choice.selectedIndex].value)">
> </form >
> </body>
>
> </html>
>
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> web: http://www.spiderwebwoman.com/resources/
>
>
> "Brett" <flir48@yahoo.com> wrote in message
> news:deScnaB81-I78UfYUSdV9g@ptd.net...
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews