rosegarden
August 7, 2012, 08:01 PM
I have implement the following code to create textlink that lead to the refine search box.
It works well on my PC but somehow it does not when i use the Ipad, it could be the onclick event
anyone can advise how to get this to work well?
================================================== =============
<!-- refine search block country -->
<div class="refine" style="display:none;">
<form method="{$listing_type.Submit_method}" action="/listing/advanced-search/search-results.html">
<input type="hidden" name="action" value="search" />
{assign var='post_form_key' value=$listing_type.Key|cat:'_advanced'}
<input type="hidden" name="post_form_key" value="{$post_form_key}" />
<input type="hidden" name="f[b_country]" value="" class='b_country'/>
<input type="hidden" name="search" value="" />
</form>
</div>
<!-- refine search block tpl end -->
<div><a href="javascript:;" onclick="javascript:jQuery('.refine form :input.b_country').val('viet_nam');jQuery('.refine form').submit();">> Viet Nam</a></div>
<div><a href="javascript:;" onclick="javascript:jQuery('.refine form :input.b_country').val('united_states');jQuery('.r efine form').submit();">> USA</a></div>
It works well on my PC but somehow it does not when i use the Ipad, it could be the onclick event
anyone can advise how to get this to work well?
================================================== =============
<!-- refine search block country -->
<div class="refine" style="display:none;">
<form method="{$listing_type.Submit_method}" action="/listing/advanced-search/search-results.html">
<input type="hidden" name="action" value="search" />
{assign var='post_form_key' value=$listing_type.Key|cat:'_advanced'}
<input type="hidden" name="post_form_key" value="{$post_form_key}" />
<input type="hidden" name="f[b_country]" value="" class='b_country'/>
<input type="hidden" name="search" value="" />
</form>
</div>
<!-- refine search block tpl end -->
<div><a href="javascript:;" onclick="javascript:jQuery('.refine form :input.b_country').val('viet_nam');jQuery('.refine form').submit();">> Viet Nam</a></div>
<div><a href="javascript:;" onclick="javascript:jQuery('.refine form :input.b_country').val('united_states');jQuery('.r efine form').submit();">> USA</a></div>