MarkiyanMatsekh / iAmOpen

web application for convenient search of institutions
markiyan.dyndns.biz
1 stars 0 forks source link

Implement client-side functionality for querying institutions #11

Open MarkiyanMatsekh opened 12 years ago

MarkiyanMatsekh commented 12 years ago

While Lyubomyr is implementing server-side logic for querying institutions, you should make it easy to use it from the browser. So your task is:

  1. Write simple html markup with elements, that will be bound to javascript functionality(use css classes for that)
  2. Write a new controler( in terms of jmvc framework), which will be repsonsible for business logic operations related to institution management and querying. Add a new action to it. This action should be triggered after click on some html element(doesn't really matter which one).
  3. Implement action's logical parts properly :
    • read parameters from corresponding html elements,
    • wrap them to specific transport-level-object (here you should colaborate with Lyubomyr)
    • transfer this object to server along with the request
    • wait for callback(any error processing should be implemented in corresonding methods e.g onProcessFailed etc)
    • show the results on page (follow the existing example)