ajax - Ruby on Rails jQuery Visual Effect -


I am working on a search function which is basically just a cool visual effect when a user search button Clicks.

Here is the code for my view.rhtml

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Tutor & lt; / Title & gt; & Lt;% = javascript_include_tag: default% & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; & Lt; / H1> & Lt;% = form_remote_tag: url = & gt; {: Action = & gt; : Search_results} ,: update = & gt; "Result"%> & Lt; Fieldset & gt; & Lt; Legend & gt; Teacher Search & Lt; / Legend & gt; & Lt; Label = "searchItField" & gt; keyword search. & Lt; / Label & gt; & Lt; Input class = "tiffield" type = "text" value = "find your tundor here" name = "searchitfiled" id = "searchfiled" /> & lt; Span id = "submit_search" & gt; & Lt; Span id = "submit_search_hover" & gt; Input  gt; & Lt; / Span & gt; & Lt; / Span & gt; & Lt; / Fieldset & gt; & Lt; / Form & gt; & Lt; Div id = "result" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Here is search_results.rhtml which is displayed in the search div in search.rhtml

  & lt;% tutors% tutors in & gt; & Lt;% = tutors.first_name% & gt; & Lt; Br / & gt; & Lt;% end% & gt;  

And finally here are my controllers and actions. <

  class tutors controller <  

What I want to do is create an effect basically, when the search results are loaded because of the AJAX call it will slide. I'm using gels to actually get this site How To

In short, to get you started, you will need to:

  • Use inspection_field on the input field, which receives data from an administrator
  • Create a related control method that will retrieve those items (use your search_results )
  • Create a scene for the controller that will show the data the effect and animation.

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -