Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Hyperlink search terms
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Hyperlink search terms
#29811
Hyperlink search terms 11 Years, 9 Months ago Karma: 0
Is it possible to use hyperlinks in the "caption" setting to fill in pre-defined search terms into the search input box? If so, can you advise how?

Meaning have a hyperlink that display a word, and when clicked, that word is inserted into the input box.
The administrator has disabled public write access.
 
#29814
Re:Hyperlink search terms 11 Years, 9 Months ago Karma: 748
Hello,

If you use "ARI Data Table" widget, set "Caption" parameter to the next value:

Code:


<a href="#" onclick="jQuery(this).closest('.dataTables_wrapper').find('.dataTables_filter input[type=text]').val(jQuery(this).html()); return false;">test</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#29819
Re:Hyperlink search terms 11 Years, 9 Months ago Karma: 0
Wow, that's great service. Thank you for the response so quickly. This works to put the text into the field, but the field doesn't respond to the new text in it. It currently requires pressing the "Enter/Return" key on the keyboard before the search is performed. Is there a way to fix this?
The administrator has disabled public write access.
 
#29822
Re:Hyperlink search terms 11 Years, 9 Months ago Karma: 748
Use the next code:

Code:


<a href="#" onclick="var filter = jQuery(this).closest('.dataTables_wrapper').find('.dataTables_filter input[type=text]');filter.val(jQuery(this).html()); filter.focus(); filter.keyup();return false;">test</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#29823
Re:Hyperlink search terms 11 Years, 9 Months ago Karma: 0
This helps to put the cursor in the search field, but it still doesn't apply the search until pressing "enter" on the keyboard.
The administrator has disabled public write access.
 
#29824
Re:Hyperlink search terms 11 Years, 9 Months ago Karma: 748
We have checked the code in FireFox browser and it works fine. Where we can see the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12