Thread: get input onchange into link
Results 1 to 3 of 3
Related
-
HTML input question, how do I add an input field to a single URL? Forum: HTML Forum
Replies: 15 -
input to link to htm page Forum: Website Scripts Forum
Replies: 4 -
Form input link Forum: HTML Forum
Replies: 9
-
12-13-2004, 10:39 PM #1
get input onchange into link
I have some links such as web,images and Sound file and an input text with default value(query). When no changes in input text and user click on any link,it will go to search the qurey according to the link.
But the problem is when there is changes in input text and user click on the link.It keep to search the old query according to link.
I wish it able to detect and search new query.
Here my code:
Code:<script LANGUAGE="JavaScript"> function setquery(newquery) { var query = newquery; } </script> print qq(<a href="/cgi-bin/result.cgi?cat=1&query=$query">WEB</a> <a href="/cgi-bin/result.cgi?cat=2&query=$query">IMAGES</a> <a href="/cgi-bin/result.cgi?cat=3&query=$query">SOUND FILE</a> <br> <form name="form_search" method="post" action="/cgi-bin/result.cgi"> <div align="center"> <input type="text" name="query" value="$query" size="30" onchange="setquery(this.value)"> <input type="submit" name="submit" value="Web Search" style="background-color: #FFFAFA;"> <a href="/adsearch.html" class="one"><font size="-1">advanced web search</a> <input type="hidden" name="cat" value=1> </div> </form>); }
Last edited by HTML; 12-14-2004 at 10:15 AM.
-
12-14-2004, 05:53 PM #2
Could you post a link to it? I would like to view source on it after it has been parsed by perl
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
12-15-2004, 10:48 PM #3
i solve the problem
i solve this problem by having some new links for old query and set input text for new query only
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum