Webdesign question
Hi all.
I need to code some html but haven´t got the faintest idea how to do what I want.
Here is the deal: I want a input field and a drop box. When an item in the drop box is selected it should open a link that contains information from the input box.
An example: The drop box has the items MacNN, AI etc. and the input box desides what thread should be opened in the first forum of the site. Like if I put in 002683 and choose "AI" it opens another window with <a href="http://forums.appleinsider.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=01&t=002683" target="_blank">http://forums.appleinsider.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=01&t=002683</a> ASO.
The tricky part for me is to combine the input from the input box and drop box to create a new url. I don´t know how its done.
ANd if anyone know any resources on the net about this please let me know.
Thanks
I need to code some html but haven´t got the faintest idea how to do what I want.
Here is the deal: I want a input field and a drop box. When an item in the drop box is selected it should open a link that contains information from the input box.
An example: The drop box has the items MacNN, AI etc. and the input box desides what thread should be opened in the first forum of the site. Like if I put in 002683 and choose "AI" it opens another window with <a href="http://forums.appleinsider.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=01&t=002683" target="_blank">http://forums.appleinsider.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=01&t=002683</a> ASO.
The tricky part for me is to combine the input from the input box and drop box to create a new url. I don´t know how its done.
ANd if anyone know any resources on the net about this please let me know.
Thanks
Comments
(as you can tell i aint a clue and am talking shite)
You can probably do this with either Java or Perl. However, it's highly unlikely that you'll be able to find a prebuilt solution (which is probably what I'd want, because I'm more of a designer than a developer).
So, it looks like you'll have to learn some scripting. Check out webmonkey.com and/or webdeveloper.com. Also, about.com has lots of good resources, but you'll have to dig around a bit.
Good Luck!
Run a Google search for "javascript examples": there are tons of sites out there with downloadable scripts out there, and usually there's one that's close enough that a little tweaking will make it behave as you wish.
<strong>Java script??? I would think it was much more simple than that and was covered in HTML?</strong><hr></blockquote>
Okay, in technical terms, what you're trying to do is parse two text strings and treat the resulting string as a URL that's loaded into a new window when you hit the Input button.
Unless I'm mistaken, HTML (being a mark-up language) doesn't have any parsing capabilities. Certainly I haven't come across any!
Javascript, on the other hand, can perform operations on text strings and then open a window into which it loads the results, and it can easily pass a string as a URL. I've seen similar things in action.
It probably won't be too scary or even require a huge amount of code, and I bet if you follow Ebby's link, you'll find one that suits, or can be modified without too much in-depth Javascript knowledge.
<a href="http://www.echoecho.com/tooldropdown.htm" target="_blank">http://www.echoecho.com/tooldropdown.htm</a>
and...
<a href="http://www.echoecho.com/htmlforms08.htm" target="_blank">http://www.echoecho.com/htmlforms08.htm</a>
Have Fun