flickr.js | |
---|---|
FlickrSearch is a simple web app to show off the powers of fidel | |
This is how you create a new Fidel Controller | undefined |
The elements attribute gives you easy access to any of the dom nodes inside of your widget.
You now have access to | undefined |
Events will automatically bind and proxy a selector to a function in your controller. In this case, every time you hit a key inside the search box, the function | undefined |
If you load str.js (inside ender in this case) along with fidel, you are able to directly render out a javascript template. The first step to get this working is setting the | undefined |
init gets called when you call | undefined |
Check if initialSearch was passed in | undefined |
If it was, call our search function | undefined |
| undefined |
Check if enter was pressed, otherwise don't do anything | undefined |
Grab the value from the search box, using | undefined |
Execute another method in our controller to execute the search. | undefined |
Called when clicking [data-action='searchAction'] | undefined |
Set the value of the search box to the search term. This is for if | undefined |
Give the user some input that things are happening. | undefined |
Make a jsonp request out to flickr, passing in our query. | undefined |
| undefined |
undefined |