FlyFind Demo Site source download


Is the source available for download? 


Nov 09, 2012 11:03


No not at them moment. It might be released later. For now you have to make due with Allans blogpost that covers a lot of the intresting parts.


Nov 09, 2012 14:54

Any updates on this one?

Apr 11, 2013 16:01

Mari, I don't have any update info but out of curiosity, is there some functionality in particular that you are interested in source code for?

Apr 11, 2013 16:19

Yes, I'm interested in the code for the destionations page ( I'm curious to how client side filtering is implemented.

Apr 11, 2013 16:26

Ah, well, for that you can view the source :)

The gist of it is this:

The three filters are sent to the server using different querystring parameters. When the server receives the request it responds with the full page with the filters applied. For example the following URL returns the page with filters for Europe, City Weekend and 0-1000km applied:

When you click on one of the checkboxes the URL is built up and the request is sent to the server. When the server responds the following happens:

1. The DOM-element with the list of destinations is extracted from the response and inserted in place of the list of destinations on the page.

2. The map, which is built up using information in the list of destinations, is updated.

3. The DOM-elements for two of the filters is extraced from the response and inserted in place of the corresponding filters on the page.

Now, the trick here is in #3. Only two of the three filters are updated. The filter that triggered the request isn't updated. This gives the effect that you can continue to choose Australia after you've choosen Europe even though the facet for continents won't contain Australia.

Apr 11, 2013 16:38

Thanks, Joel! :)

Apr 12, 2013 8:52
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.