|
|
|
|
![]() ![]() |
Dec 13 2005, 01:42 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 182 Joined: 27-August 05 Member No.: 11,179 |
i added a javascript search to my site
Search basically i wanted to have links on there so that when u click the link it runs the search. instead of making ppl type it into the textarea and clicking go. or have it so when u click the link it enters text into the text area and then searchs... anyone know what im chatting about? ~thanks This post has been edited by mayank: Dec 13 2005, 02:05 PM |
|
|
|
Jan 30 2006, 01:30 AM
Post
#2
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 40 Joined: 29-January 06 Member No.: 17,841 |
let us say your java script function is called myfunction().
Then in your link (a tag) instead of href, specify onclick attribute. Ex: CODE <A href="" onclick="javascript:myfunction()">link text</a> |
|
|
|
Jan 30 2006, 02:13 AM
Post
#3
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
QUOTE(Compute @ Dec 13 2005, 11:42 PM) or have it so when u click the link it enters text into the text area and then searchs... If you're talking about the input/textarea dynamically autocompleting as people type a few letters, then you need to look into AJAX. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 23rd November 2008 - 12:42 AM |