Posted: Tue Sep 23, 2008 7:04 am Dropdown display underneath
Ok, I have a helpsite for a game partially made up. I'm working on the admin area currently and am trying to make a Dropdown display on the upper portion of the admin panel.
What I want is to choose an option in the dropdown and have it load directly underneath the dropdown box for certain functions like adding, editing and deleting information from my database from lists or form pages I have made...
Can this be done to display those pages underneath or can it all be coded into one page as to where like..
Edit News > Gets and Displays News Edit Form
Add Item > Gets and Displays Item Add Form
and so on for each choice...
I used to know HTML coding real well until I stopped for about 3-4 years, now I'm learning it all over again...
If anyone can help me with this, I can show you my site and you can maybe figure things out a little better... perhaps we can talk over MSN or YIM as well so I can explain things better as well...
Something similar to this...
Code:
<script type="text/javascript">
function showSelection(theList) {
var selectedValue = theList.options[theList.selectedIndex].value;
document.getElementById('contentDiv').innerHTML = selectedValue;
}
</script>
<form>
<select name="category" onChange="showSelection(this);">
<option value=""> Select something </option>
<option value="You selected category 1">Category1</option>
<option value="You selected category 2">Category2</option>
<option value="You selected category 3">Category3</option>
</select>
</form>
<!--- this div will contain the selected list value --->
<div id="contentDiv"></div>
Except that I want it to display an actual page I have created...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum