jibo Posted June 6, 2006 Share Posted June 6, 2006 im wanting a drop down menu so when i click on my selection it opens in a frame, i know this is probably so basic to you guys lol so please help!! I did have a code for a drop down box but i havent anymore and cant findd it anywhere... pesky impatientness CHEERS!!! Link to comment Share on other sites More sharing options...
justsomeguy Posted June 6, 2006 Share Posted June 6, 2006 You might be able to use this:http://www.quirksmode.org/js/select.htmlI searched on Google for "select javascript" and that was the first link. Link to comment Share on other sites More sharing options...
scott100 Posted June 6, 2006 Share Posted June 6, 2006 Here's one, all you need to do is change showframe to the name of the frame you want to target: <select onchange="parent.showframe.location=this.value;"><option value="http://www.google.com">Google</option><option value="http://www.yahoo.com">Yahoo</option></select> Link to comment Share on other sites More sharing options...
jibo Posted June 6, 2006 Author Share Posted June 6, 2006 thanks justsomeguy.. i cudnt use that MUCH to confusing lol im only a newbie and javascript goes way over my head and thats scott jus what i needed Link to comment Share on other sites More sharing options...
Little Goat Posted June 6, 2006 Share Posted June 6, 2006 actually, they are both about the same, except Scott's is simpler because it doesn't use a function.LG Link to comment Share on other sites More sharing options...
scott100 Posted June 6, 2006 Share Posted June 6, 2006 actually, they are both about the same, except Scott's is simpler because it doesn't use a function.LG<{POST_SNAPBACK}> Well not realy, the one justsomeguy posted changes the full page, it doesn't target a frame... Link to comment Share on other sites More sharing options...
jibo Posted June 6, 2006 Author Share Posted June 6, 2006 Well not realy, the one justsomeguy posted changes the full page, it doesn't target a frame...<{POST_SNAPBACK}> PLUS i didnt understand justsomeguys version but im a bit of an idiot Link to comment Share on other sites More sharing options...
scott100 Posted June 6, 2006 Share Posted June 6, 2006 PLUS i didnt understand justsomeguys version but im a bit of an idiot <{POST_SNAPBACK}> Well you did say you are a newbie and javascript can take a while to get used too, stick with it and it'll soon begin to make sense. Link to comment Share on other sites More sharing options...
Err Posted June 6, 2006 Share Posted June 6, 2006 Well you did say you are a newbie and javascript can take a while to get used too, stick with it and it'll soon begin to make sense. <{POST_SNAPBACK}> I've been trying to learn JavaScript also, it's just too confusing! Maybe when I'm old and wise I will have the ablity to understand it better. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 6, 2006 Share Posted June 6, 2006 I think Javascript syntax is pretty easy to understand. Not necessarily the object model or things like that, but the syntax is pretty straightforward. Languages like Javascript, PHP, C/C++ etc have very similar control structures and statements. As opposed to VB, which was designed to be a teaching tool that people have tried to use for actual applications. I consider the syntax of VB to be fairly confusing, or counter-intuitive, but that's only because the first language I learned was C++ and we never even touched on BASIC or VB in school. VB seems to require a lot of workarounds or hacks for things that other languages have implicit support for. I don't really like how VB handles arrays or functions at all. Most languages have the concept of a return value, including an explicit 'return' statement, but in VB you assign the name of the function some return value, that seems weird to me.Anyway, to each his own, but if at all possible I recommend basically ignoring VB, Microsoft will be dropping support for it soon and expecting everyone to move to VB.NET (which, again, has an alternative in C#). Anything you would use VB for has an alternative. The only frustrating thing is trying to find examples of things like ASP using Jscript instead of VBscript (people seem to equate ASP with VB), but there are plenty of examples if you know where to look. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now