Positioning and drop box auto-update

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
method_man
Forum Contributor
Posts: 257
Joined: Sat Mar 19, 2005 1:38 am

Positioning and drop box auto-update

Post by method_man »

I have two questions,

1. How can I have the drop down box be at the top of the left column

and

2. How can I have what you click on in the drop down box apear in the right column?

Here is the url.
http://twarowsk.freeownhost.com/mnsite/ ... _page.html

thanks,

matt
thegreatone2176
Forum Contributor
Posts: 102
Joined: Sun Jul 11, 2004 1:27 pm

Post by thegreatone2176 »

well for one i believe you will need a submit button to send the data. also your page is .html its going to need to be .php

then learn how to handle variables and include whatever data is in those galleries
method_man
Forum Contributor
Posts: 257
Joined: Sat Mar 19, 2005 1:38 am

Post by method_man »

actually ive seen sites where u dont need a submit button for it to show up.
u just click the option on the scroll down bar and it shows up in the other column.
bobsta63
Forum Commoner
Posts: 28
Joined: Thu Apr 21, 2005 7:03 pm
Location: Ipswich, UK

Post by bobsta63 »

thegreatone2176 wrote:well for one i believe you will need a submit button to send the data. also your page is .html its going to need to be .php

then learn how to handle variables and include whatever data is in those galleries
Yer I know for a fact that you can have a drop down memnu and then once you have selected the option it then automatically submits the data however I think you need abit of Javascript in their somewhere I think they refer to the Javascript as a Jump Box and you could prob download the code from a script site like http://www.hotscripts.com
method_man
Forum Contributor
Posts: 257
Joined: Sat Mar 19, 2005 1:38 am

thanks

Post by method_man »

thanks,

matt
bobsta63
Forum Commoner
Posts: 28
Joined: Thu Apr 21, 2005 7:03 pm
Location: Ipswich, UK

Post by bobsta63 »

You could prob do your thing using a http variable for example:

<Form method="post" action="thispage.php?msg=OptionX">

Then set up a simple $HTTP_GET_VARS func, then post msg like

Code: Select all

<?php echo['msg'] ?>
Im pretty sure that would work, Well atleast something like that.

Soz if that don't work im just trying to help :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

method_man please edit your thread title!

"help please" tells us absolutely nothing about your problem :roll: (done!)

Your link goes to CPanel even if cut & pasted.
Yes you will need javascript to get a select box option's value to appear elsewhere in the page without a submission to the server.

There's a number of way you can do. I'd suggest using innerHTML in some block level element.

The select box value will be something like

Code: Select all

var selectEl = document.getElementById('theSelectBox')
var theValue = selectEl.options&#1111;selectEl.selectedIndex].value;
d11wtq
Post Reply