FlyFind Demo Site source download

Vote:
 

Is the source available for download? 

 

#63107
Nov 09, 2012 11:03
Vote:
 

Hello,

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. http://world.episerver.com/Blogs/Allan-Thran/Dates/2012/10/Welcome-aboard-EPiServer-Find--We-hope-youll-have-a-pleasant-flight/

/Marcus

#63130
Nov 09, 2012 14:54
Vote:
 

Any updates on this one?

#70086
Apr 11, 2013 16:01
Vote:
 

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?

#70090
Apr 11, 2013 16:19
Vote:
 

Yes, I'm interested in the code for the destionations page (http://flyfind.demo.episerver.com/Destinations/). I'm curious to how client side filtering is implemented.

#70091
Apr 11, 2013 16:26
Vote:
 

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: http://flyfind.demo.episerver.com/Destinations/?c=Europe&tt=City+weekend&d=0-1000&t=-20%2040

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.

#70092
Apr 11, 2013 16:38
Vote:
 

Thanks, Joel! :)

#70118
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.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.