Advance software forum
May 18, 2012, 08:13:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Ajax Search  (Read 1810 times)
0 Members and 2 Guests are viewing this topic.
StreetFamous.com
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: February 26, 2009, 06:39:05 PM »

Okay I have installed the Ajax Search with success but would like to know if it is possible to add this to my search fields that are not in the includes boxes on the catalog?

http://www.StreetFamous.com/catalog/
If you go there I have a search field at the top right which can be used anywhere on my website including outside my /catalog directory!

Here is the current code I am using
Code:
<?php echo tep_draw_form('search'tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords''''size="10" maxlength="30" class="searchbox1" style="width: ' . (100) . '%"') . tep_hide_session_id() .'</form>'?>

I want the Ajax Search suggestion to work with the code above. Thanks ahead of time!
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #1 on: February 27, 2009, 05:15:06 AM »

Hello,

Yes, I think it should work fine. However, you will need to manually place the code into your box, because default installation only shows how to add ajax suggest to default search box.
Logged
StreetFamous.com
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: February 27, 2009, 12:59:57 PM »

Could someone help me add this code to my original code that is posted up at the first post?
Logged
steve_s
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #3 on: February 27, 2009, 02:37:48 PM »

Hi this is what i did as i have a header search like you, place this code where you search form is, this should work for you
Remove the [/url] before </form bit auto added by WYSISWYG
<!-- search //-->
copy and paste code here from suggest.php

Code:
<?php echo tep_draw_form('search'tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get') . '<div id="content" onclick="hideSuggestions();"><div id="ie_fix">' tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords''''size="10" id="keyword" maxlength="30" onkeyup = "handleKeyUp(event)" style="width: 100%"') .'</div>'.'<div id="scroll"><div id="suggest"></div></div></div>' tep_hide_session_id() . '</a></form>'?>

<script language="JavaScript" type="text/javascript">
init();
</script>

<!-- EOF search //-->
« Last Edit: February 28, 2009, 07:47:39 PM by steve_s » Logged
StreetFamous.com
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: February 28, 2009, 04:42:14 PM »

Nope didnt work for me..could you put the code  in code brackets please thanks
Logged
steve_s
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #5 on: February 28, 2009, 07:48:59 PM »

maybe just play around with the above code or suggest.php might need to be altered to look in description field
Logged
StreetFamous.com
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #6 on: February 28, 2009, 07:56:13 PM »

Still cant get it to work, anyone?  Huh
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #7 on: March 05, 2009, 01:39:45 AM »

Well it should have worked as shown above. Install it again, and I'll point ya what is wrong.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 3.1.1 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!