HTML and CSS Reference
In-Depth Information
_searchresultcard -----contains the DOM element for the search
results card
_searchTimeout -----contains the search timeout timer
_viewScrolls -----contains the iScroll objects for the views
_searchScroll -----contains the iScroll object for the search
results
Declare these instance variables using the following code.
var app = app || {};
app.controller = app.controller || {};
app.controller.movies = function(){
var _self = this,
_searchfield = document.querySelector('#add-movie input[name="query"]'),
_searchform = document.getElementById('add-movie'),
_searchresultscard = document.getElementById('card-movie_search_results'),
_searchTimeout,
_viewScrolls = [],
_searchScroll = null;
this.init = function(){}
this.init();
}
Binding the Search Form
The first method you will create will bind the event listeners to the search form.
var app = app || {};
app.controller = app.controller || {};
app.controller.movies = function(){
...
/**
* Binds the search form
*/
this.bindSearchForm = function(){
}
...
 
Search WWH ::




Custom Search