Currently my site includes a search bar in my index.ejs file that uses {{action createSearch}} to call my controller's "createSearch" function when a user presses enter or clicks my search button. This works perfectly! Now I am testing out new functionality and want to call my newSearch function directly from my index.ejs file without any user interaction. I've tried using jquery on load to simulate the key press / click but the controller but that doesn't seem to invoke the action event.
edit: functional index.js code included
{{view Ember.TextField id="new-search" placeholder="enter a few keywords"
valueBinding="newSearch" action="createSearch"}}
<div id="gobutton" {{action createSearch}}><div id="gobutton_inner">SEARCH</div></div>
index.ejs
look like, code is much appreciated – intuitivepixel Jul 12 at 20:38createSearch
action? from inside another controller maybe? – intuitivepixel Jul 12 at 22:55