This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > March 2007 > Javascript help





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 Javascript help
Brett

2007-03-05, 10:16 pm

Hello,
I've got a simple text list, to where when I selected a value and click the
button a new windows pops up with the desired imaged gif file.
I need it to load in the "Main" frame of a frameset.
My frame has a simple, Top, Side and Main frames. The JScript in located
in the "side" frame.

any help would be appreciated.
I looked up the options for the window.open event.. there is nothing
describing where you want the page to open up to...



<form>
<a target="Main" href="page1.htm">
<select id="Choice" style="color: #0000FF" size="1" name="mySelect">
<option value="">Select one</option>
<option value="jan/1.htm">Image1</option>
<option value="jan/2.htm">Image2</option>
<option value="jan/3.htm">Image3</option>
</select></a>

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



David Berry

2007-03-05, 10:16 pm

See the sample scripts at http://javascript.internet.com/navigation/

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



"Brett" <flir48@yahoo.com> wrote in message
news:c6mdndc0r-4RNnHYnZ2dnUVZ_u-unZ2d@ptd.net...
> Hello,
> I've got a simple text list, to where when I selected a value and click
> the button a new windows pops up with the desired imaged gif file.
> I need it to load in the "Main" frame of a frameset.
> My frame has a simple, Top, Side and Main frames. The JScript in located
> in the "side" frame.
>
> any help would be appreciated.
> I looked up the options for the window.open event.. there is nothing
> describing where you want the page to open up to...
>
>
>
> <form>
> <a target="Main" href="page1.htm">
> <select id="Choice" style="color: #0000FF" size="1" name="mySelect">
> <option value="">Select one</option>
> <option value="jan/1.htm">Image1</option>
> <option value="jan/2.htm">Image2</option>
> <option value="jan/3.htm">Image3</option>
> </select></a>
>
> <input type="button" value="Go"
> onclick="window.open(Choice.options[Choice.selectedIndex].value)">
> </form >
>
>
>


Jon Spivey

2007-03-06, 6:16 pm

Hi,
Like this
<form>
<a target="Main" href="page1.htm">
<select name="Choice">
<option value="">Select one</option>
<option value="jan/1.htm">Image1</option>
<option value="jan/2.htm">Image2</option>
<option value="jan/3.htm">Image3</option>
</select></a>

<input type="button" value="Go"
onclick="if(this.form.Choice.selectedIndex>0)parent.Main.location.href=this.form.Choice.options[this.form.Choice.options.selectedIndex].value;">
</form >

Cheers,
Jon

"Brett" <flir48@yahoo.com> wrote in message
news:c6mdndc0r-4RNnHYnZ2dnUVZ_u-unZ2d@ptd.net...
> Hello,
> I've got a simple text list, to where when I selected a value and click
> the button a new windows pops up with the desired imaged gif file.
> I need it to load in the "Main" frame of a frameset.
> My frame has a simple, Top, Side and Main frames. The JScript in located
> in the "side" frame.
>
> any help would be appreciated.
> I looked up the options for the window.open event.. there is nothing
> describing where you want the page to open up to...
>
>
>
> <form>
> <a target="Main" href="page1.htm">
> <select id="Choice" style="color: #0000FF" size="1" name="mySelect">
> <option value="">Select one</option>
> <option value="jan/1.htm">Image1</option>
> <option value="jan/2.htm">Image2</option>
> <option value="jan/3.htm">Image3</option>
> </select></a>
>
> <input type="button" value="Go"
> onclick="window.open(Choice.options[Choice.selectedIndex].value)">
> </form >
>
>
>



Sponsored Links


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