Page 1 of 1

Product Finder AJAX on filter?

Posted: Wed Apr 05, 2017 11:41 pm
by Odettes
Hi!

If I use an untouched version of Search.aspx and choose some filters under "Narrow by" it generates a GET to the Serach.aspx page.
To make AJAX work it need to be a POST. I'm I missing something here because if the Product Finder is not AJAX compatible it's pretty much useless.

The resultpart of the page works great with AJAX (where you select the sort-order).

Re: Product Finder AJAX on filter?

Posted: Fri Apr 07, 2017 5:28 am
by nadeem
Hi,
Yes you are right about the GET request to the search page. What actually you want to achieve, do you want to use search sidebar control to some where else? Also can you please explain why you think search page is useless using query parameters?

Thanks!

Re: Product Finder AJAX on filter?

Posted: Fri Apr 07, 2017 8:31 am
by Odettes
nadeem wrote:Hi,
Yes you are right about the GET request to the search page. What actually you want to achieve, do you want to use search sidebar control to some where else? Also can you please explain why you think search page is useless using query parameters?

Thanks!
The whole page reload using GET = page moves to top.
POST by Update Panel = pages reload selected content = page dont move.

The shift from POST to GET from Able7 to Gold is bad, really bad.

Re: Product Finder AJAX on filter?

Posted: Mon Apr 10, 2017 2:59 am
by nadeem
At least, you can try using MaintainScrollPositionOnPostback="true" attribute in the page directive to maintain the scroll position. OR use some jquery/javascript for this purpose.