robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSOC 2008: Week 5

So, it’s time for an update. This week got off to a sketchy start, but it’s gained momentum. Let me enumerate what I have done thus far with the project. First, I’ve added AJAX using jquery. I figured I would use jquery mainly because it provided painless AJAX goodness. Prior to even thinking of using jquery, I wrote my own AJAX code using a tutorial that I found while googling. I had to tweak it a bit, but for the most part, it seemed very standard. However, after I wrote the AJAX equivalent code, it didn’t feel too elegant. So, first I’m going to show the AJAX code I wrote; then I’ll show you the jquery version; finally, I’m going to show you the servlet which handles the AJAX on the server-side.

First, the AJAX I wrote:


function AjaxValidation(url,callback) {
var req = init()

Organization: OpenMRS Original: Source

Breaking up the Data Set UI Across Multiple Pages

We decided that there were just too many functions to have them all on one page for the data set wizard. The UI is to be broken up in three stages where the user 1) selects the tokens, 2) applies modifiers, and 3) applies filters/cohorts. So, most of the work I’ve done this week was refactoring all the code into three separate modules and getting all the framework in place to handle this new paradigm.

Here’s the first page which provides a way to select tags for narrowing down the tokens, search the tokens, and move the desired tokens to the selection pane:

Here’s the second page that lists the selected tokens and provides the interface for applying modifiers to the tokens:

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSoC 2008: Groovy Forms getting some AJAX!

No, not the cleaning product! The “Web 2.0” kind of AJAX! Now where will this goodness be placed? The pages for creating the forms and managing the forms.

Organization: OpenMRS Original: Source
robbyoconnor's picture

GSoC 2008: Groovy Forms getting some AJAX!

No, not the cleaning product! The “Web 2.0” kind of AJAX! Now where will this goodness be placed? The pages for creating the forms and managing the forms.

Organization: OpenMRS Original: Source
Syndicate content