Webdesign question

in General Discussion edited January 2014
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.



  • Reply 1 of 7
    ah of course easy, renavigate the protone drive via the electic buzz and design the cyberbuild in the frate!

    (as you can tell i aint a clue and am talking shite)
  • Reply 2 of 7

    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!
  • Reply 3 of 7
    overhopeoverhope Posts: 1,123member
    I suspect that could be done with a spot of javascript, though my skills aren't up to writing the code: I tend to find something similar, rip it to bits and make it do what I want.

    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.
  • Reply 4 of 7
    andersanders Posts: 6,523member
    Java script??? I would think it was much more simple than that and was covered in HTML?
  • Reply 5 of 7
    ebbyebby Posts: 3,110member
    <a href="http://javascript.internet.com/master-list/"; target="_blank">Java script source</a> has a lot of javascript code. I have found that some are easy to configure for your site.
  • Reply 6 of 7
    overhopeoverhope Posts: 1,123member
    [quote]Originally posted by Anders:

    <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.
  • Reply 7 of 7
    cubedudecubedude Posts: 1,556member
    EchoEcho.com's got a drop menu tool, as well as an input box tutorial.

    <a href="http://www.echoecho.com/tooldropdown.htm"; target="_blank">http://www.echoecho.com/tooldropdown.htm</a>;


    <a href="http://www.echoecho.com/htmlforms08.htm"; target="_blank">http://www.echoecho.com/htmlforms08.htm</a>;

    Have Fun
Sign In or Register to comment.