Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #330 (assigned enhancement)

Opened 2 years ago

Last modified 2 years ago

Degrade gracefully for search fields on non-AJAX capable browsers

Reported by: bmamlin Assigned to: bwolfe (accepted)
Priority: minor Milestone: OpenMRS 1.3
Component: OpenMRS Code Base Keywords:
Cc: djazayeri, pbiondich Introductory Ticket:

Description

Our web interface should take advantage of AJAX, but not be completely dependent on it. The first step in this process would be to adjust the generic search widgets so that, when JavaScript is not available, they submit the current page to itself with the search string within the URL and the same widget would render the results for any search in the URL as a default.

Change History

02/16/07 22:11:28 changed by djazayeri

This seems fiendishly difficult. Since there may be more than one of these widgets on a page. Unless Spring has some magic way how this can work with session-based forms...

02/16/07 22:15:37 changed by bwolfe

  • status changed from new to assigned.

The problem is that this will be a case by case basis. Each page that you want to degrade gracefully (probably just main patient search and concept search) will need to have something in the controller that picks it up returns the list of objects.

A generic "widget" can't really be created for all items that are searchable. Patients, Users, Concepts, Forms, Encounters...all are displayed differently.

The only way this will work is to simply put a default text search box in next to the dojo widget. The dojo widgets can be wise to these and so hide them when javascript is enabled. When javascript is disabled, the text box will still show and can be used for user input.