Show search page on clicking return key

Everything regarding the module ajaxSeach should be placed here.

Show search page on clicking return key

Postby ajyrds » Thu Mar 04, 2010 11:06 am

Hi,

I'm not sure if this is happening only to me, but whenever I click the return key in the search box on my website, the page gets redirected to the home page. Do have a look at www.TripNaksha.com. Is there any way to show the search page instead?

Regards,
Ajay
ajyrds
 
Posts: 4
Joined: Thu Mar 04, 2010 11:02 am

Re: Show search page on clicking return key

Postby admin » Fri Mar 05, 2010 10:53 am

If you insert a submit btn

Code: Select all
<input type="submit" class="btn" value="Go">


after the

Code: Select all
<div id"loading"></div


This should do it
admin
Site Admin
 
Posts: 1104
Joined: Thu Apr 02, 2009 9:17 pm

Re: Show search page on clicking return key

Postby ajyrds » Sun Mar 07, 2010 5:10 am

Thanks Jan.
Tried this, but it still redirects to the home page. Could you please suggest something else please?

Regards,
Ajay
ajyrds
 
Posts: 4
Joined: Thu Mar 04, 2010 11:02 am

Re: Show search page on clicking return key

Postby ajyrds » Sat Mar 27, 2010 2:35 am

It worked after I did the following -
1. Added method=post action="index.php" to the form tag
2. Added name="searchword" to the inputString element
3. Sent search component as a hidden variable to the form - <input type="hidden" name="option" value="com_search" />

Thanks!
Ajay
ajyrds
 
Posts: 4
Joined: Thu Mar 04, 2010 11:02 am

Re: Show search page on clicking return key

Postby darkadam » Thu Aug 26, 2010 4:39 pm

ajyrds wrote:It worked after I did the following -
1. Added method=post action="index.php" to the form tag
2. Added name="searchword" to the inputString element
3. Sent search component as a hidden variable to the form - <input type="hidden" name="option" value="com_search" />

Thanks!
Ajay



I have the same problem. How did you fix this exactly?
darkadam
 
Posts: 1
Joined: Thu Aug 26, 2010 4:37 pm

Re: Show search page on clicking return key

Postby admin » Mon Aug 30, 2010 6:22 pm

Try to show a link with the issue.

regards
admin
Site Admin
 
Posts: 1104
Joined: Thu Apr 02, 2009 9:17 pm


Return to ajaxSearch

Who is online

Users browsing this forum: No registered users and 1 guest

cron