Note that there are some explanatory texts on larger screens.

plurals
  1. POAsynchronous Searching & Reordering
    primarykey
    data
    text
    <p>I'm after some advice in what direction to take the develop of a new feature in ongoing project. I've been asked to build a new search to act like the hotel search results on hipmunk or kayak - where I load the data in small blocks, say for example 10 hotels per call and reorder as the data comes in. </p> <p>The site is written in Laravel 4 and the old search was using a basic search with pagination through infinite scroll. Someone mentioned that it would be easier to build this feature in a javascript framework like AngularJS, although this site is already built but I would consider rewriting if there was the benefit. </p> <p>Currently the project is set up with a backend team who provide us with an API for the data, originally we had considered AngularJS but the data generally requires editing to be useful. The other option may be to use the current Laravel site and turn it into a middle API ready for a javascript framework.</p> <p>I'm not really sure what direction to take on this. Write my own custom jquery plugin to handle it and keep the current site, or go for AngularJS. I'd really appreciate any advice</p> <p>I have found a useful plugin that may help me a lot: <a href="http://mixitup.io/" rel="nofollow noreferrer">http://mixitup.io/</a></p> <p>Below is an example of the hipmunk search, you can see they have different hotels. I took these screenshots right after each other. I'm trying to recreate a search system like this.</p> <p><img src="https://i.stack.imgur.com/J0ufA.png" alt="enter image description here"></p> <p><strong>[Update]</strong></p> <p>After doing further research into different options I found using an Observable Array to keep track of everything was a good idea. I found small library to be used with underscore.js:</p> <p><a href="https://github.com/mennovanslooten/Observable-Arrays" rel="nofollow noreferrer">https://github.com/mennovanslooten/Observable-Arrays</a></p> <p>Now its just a case of handling the updating and filtering of the array which I've got a large amount written so far. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload