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?

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15166
    Armand
    Armand
    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

    Attachments:
    You must be logged in to view attached files.
    #15177
    Ernest Marcinko
    Ernest 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:

    ASP.api(1, 'searchRedirect', "");

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.