Click to See Complete Forum and Search --> : HELP!!! HELP!!! need a proffesional to help me with this:
BigPimp
08-20-2003, 06:47 AM
I tried to make a nice inner-menu with a drop down menu..
i want to make these hyperlinks (htm files) inside another frame (main), i even described the whole page target frame, but NOTHING... tried also to add "target=main" after the "sepage01..." but again NOTHING.
how can i make this drop down menu possible to open these selections inside MAIN frame and not the same one???
please help me with this guys.
thanks a lot.
<select class="input" onchange="location = this.options[this.selectedIndex].value;" name="select" method="get">
<option selected>News archive</option>
<option value="se_page01h3.htm">September 2002-January 2003
</option>
<option value="se_page01h2.htm">January 2002 - March 2002
</option>
<option value="sepage01h1.htm">June 2001 - November 2001
</option>
<option value="sepage01h0.htm">Back to current news</option>
</select></a>
requestcode
08-20-2003, 06:54 AM
This should be posted in the javascript section. Try creating a function like this:
<script language="javascript">
function gothere(linkid)
{parent.main.location=linkid}
</script>
Then change your select to this:
<select class="input" onchange="gothere(this.options[this.selectedIndex].value)" name="select">
Not sure why you have "method" in your select tag. I have not seen that before and don't think it is correct. I would also change the name "select" to something else as that could cause problems with JavaScript.
Or:
<select class="input" onchange="top.main.location.href = this.options[this.selectedIndex].value;" name="select">
BigPimp
08-21-2003, 09:18 AM
Sorry for not writing earlier... these f*ckers just cut off my internet connection (not paying bills, as always:cool: )
it worked like magic.. without any trouble..
so somehow i can say, you're the most efficient fart i ever had :) thanks a lot!
PeOfEo
08-21-2003, 09:25 PM
<form>
<select name="PullDown"
onChange="PageChanger(this.option[this.selectedIndex].value)">
<option value="default">Select</option>
<option value="link">link</option>
<input type="button" name="go" value="go" onClick="PageChanger(document.NavForm.PullDown.optione[NavForm.PullDown.selectedIndex].value)">
</form>
<script language="JavaScript">
<!--
function pagechanger(page)
{
document.location=page;
document.NavForm.PullDown.options[0].selected=true;
}
//--></script>
What's that? (besides invalid and non-working...)
PeOfEo
08-22-2003, 04:18 PM
Well, the function has to go in the 'head' apparently and the other stuff the body, just to clear that up. I have not tested it I just saw it and thought it was relavent. It should work, It is a combo box and onchange it redirects you to another page or on click of the button. Why did you try it and get a runtime error? Oh I see part of the problem is pagechanger should be PageChanger in the function.
Originally posted by PeOfEo
...did you try it and get a runtime error?Yes, there are error all over the script... Typo's, incorrect form references, incomplete HTML tags, etc...
PeOfEo
08-23-2003, 02:12 PM
Thats because I typed it up real fast real late at night, so sue me (I am also not a huge fan of java script)
Guess I was just curious why you thought it necessary to add anything at all to the thread, as apparently his question had already been answered, and you wern't providing a better or easier way of doing anything...
PeOfEo
08-23-2003, 09:40 PM
Just wanted to throw my two cents in.