This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

How do I get the URL of this result page?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How do I get the URL of this result page?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15166
    ArmandArmand
    Participant

    你好:

    這裡有一個搜尋功能,其中使用了顏色與尺寸兩個過濾器,
    http://mody.taipei/ball/
    我想要直接連結到”顏色-紅色,尺寸-大”這個結果頁,該如何取得網址,或該如何操作?

    謝謝

    (translation)
    Hello there:

    Here’s a search function that uses two filters in color and size,
    http://mody.taipei/ball/
    Do i want to link directly to the “color-red, size-large” this result page, how do I get the URL, or how to do it?

    Thank you

    #15177
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    A direct link cannot be made, because the search form information is submitted as well. However if the search is visible on the page, then you can make an API call for a search redirect via javascript, like so:

    [php]ASP.api(1, ‘searchRedirect’, "");[/php]

    This code will make a searchRedirect function call on the search instance ID=1, with an empty ” search phrase. You could possibly make an event handler on the onclick event of the link, and execute this API call, which will trigger a search request.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.