Trouble with anchors.

Discussion in 'JavaScript' started by dmanto2two, Mar 2, 2010.

  1. #1
    I need to append info from a textbox to an and anchor. How would i go about doing this?
    Something like
    <form action="#anchor + info from textbox">
    <input type='text' />
    </form>
    only working. Would i create a function to pull the info from the textbox and send it to a function and the go to that anchor plus the appended text? Any ideas would be apreciated. if i do need to input the anchor to the browser how would i do that?
    thanks
    Also the design change is a shock. but kinda kool=)
     
    dmanto2two, Mar 2, 2010 IP
  2. dmanto2two

    dmanto2two Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    huh i just read back over that and this needs a little clarification. What i want to do is have my user input information into the searchbox then have the information put into an anchor. like user.php#search[info from the textbox goes here]. then once the info is in the url i have a function all set out to read what the url is and then take the information in the url send it to a php file then send the response back and display the search. is there some way i can put my information from the textbox and put in where those brackets are? I completely baffled. Any sugestions would be great thanks
     
    dmanto2two, Mar 2, 2010 IP
  3. dmanto2two

    dmanto2two Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Srry i figured it out. for anyone else who needs to kno just append strings to a replace window. thanks to all anyways=)
     
    dmanto2two, Mar 2, 2010 IP