Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Link In Search Form, Open a link inside a text area...
Compute
post 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

Notice from mayank:
Please make sure that Topic title has to be descriptive.


This post has been edited by mayank: Dec 13 2005, 02:05 PM
Go to the top of the page
 
+Quote Post
kvkv
post 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>
Go to the top of the page
 
+Quote Post
Tyssen
post 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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Reading From A Text File(8)
  2. Onclick Image ->> Add Text To Input(text)field?(3)
  3. How To Store The Text Typed In A Form?(5)
  4. Writing A Text File On Wen Host(1)
  5. Javascript Alert On When Clicking A Link(2)
  6. Getting A Link From Dropdownmenu In A Layer ?!1(1)
  7. How Do You Make Text In A <div> Change When You Click On A Link?(4)
  8. How To Make This Type Of Link?(1)
  9. Text Image Java Problem(1)
  10. Help: Disable All Buttons Inside A Div Element(8)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 12:42 AM