Closed (fixed)
Project:
Search API ajax
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
2 Jul 2012 at 16:55 UTC
Updated:
8 Sep 2017 at 10:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jsacksick commentedI think we should use BBQ which is already used in Drupal, it's already in the misc folder and I think the overlay is using it.
Here are some examples :
http://benalman.com/code/projects/jquery-bbq/examples/fragment-advanced
Comment #2
Anonymous (not verified) commentedThat is a very good suggestion, I will check it out.
Comment #3
davidseth commentedUsing BBQ (native Drupal) would be awesome! Thanks @jsacksick for the great idea. I am very happy to see this project moving forward :)
Comment #4
jsacksick commentedOk I replaced and tested a bit, and everything seems ok. I also removed the livequery plugin as I don't really understand why we're using it.
I replace all the livequery by a jquery live and it still works.
Tested with views + facetapi.
Comment #5
jsacksick commentedComment #6
Anonymous (not verified) commentedI was testing this with Facet API blocks. When I applied the patch, clicking on Facet links resulted in an incorrect request path. The query part of the path included the base path of the page, rather than just adding the query.
Reverting the patch restored the expected behavior.
Comment #7
Anonymous (not verified) commentedWill be able to review this patch next week. I would like to add fragments for order, sort, page etc. as well, like I did here #1667922: Improve AJAX, implement Pretty Facet Paths #path, Views #page, etc. (need to merge that patch with this one).
Comment #8
Anonymous (not verified) commentedI have an exciting patch ready. It merges jsacksick's work on jQuery BBQ, along with my improvements from #1667922.
This patch completely drops YUI and also is a "re-write" (more of a cleanup) of search_api_ajax.js.
This patch supports not just 1 hash state, but many:
Important note: this patch makes facetapi_pretty_path a dependency,... because it's so much easier to work with the AJAX.
I'm eager to commit this patch soon. Maybe we can add more states? I've implement Views stuff like items_per_page and page for pagination, sort and order. This patch should support Search API Ranges, and Seach API Sorts.
So please try it...
Comment #9
Anonymous (not verified) commentedAfter some more testing I decided to go ahead and patch this up.
http://drupalcode.org/project/search_api_ajax.git/commit/5f08d16