This application contains subject matter related to commonly assigned U.S. patent application Ser. No. 12/288,460 filed Oct. 21, 2008, which is hereby incorporated by reference in its entirety.
1. Field of the Invention
Embodiments of the present invention generally relate to a network based computer interaction and, more particularly, to a method and apparatus for updating a user interface of a client device.
2. Description of the Related Art
Computer systems exist that enable a user to remotely access computer information, e.g., a database. In some instances a user will use a client device, e.g., cell phone, personal digital assistant (PDA), lap top computer, application specific device, and the like, to connect via a network to a server hosting the information. Such devices have a predefined interface for accessing the computer information from the server. The interface may be created by a program or agent executing on the device; however, such programs or agents require substantial processing resources and memory availability which make them unsuitable for many devices. The interface, produced by such programs or agents, is static—the user enters data and/or queries in predefined fields.
More recently, to accommodate a wide range of devices, browsers have been used to launch web pages that form the interface to the computer information (i.e., web-based user interface). Although web-based user interfaces generally utilize less computer resources than application (program) based interfaces, the interface remains static, i.e., once created, the interface remains the same for each user. The static nature of the interface may impact worker productivity in that the interface cannot be easily optimized to their work habits.
While applications exist that allow run-time modification of such interfaces, they typically require a large install, significant processing power, and a significant amount of data to be transmitted to and from the application server. These requirements make the applications unsuitable for uses on many types of devices, such as mobile devices. These devices are often limited to static interfaces for these reasons.
It would be advantageous if it were possible to modify the user interface of a web-based application at run time. Therefore, there is a need in the art for a dynamic web-based user interface updater.
An embodiment of the present invention comprises a method and apparatus for updating a web-based user interface. The method comprises generating a user interface for a host application, accessing the user interface in a web browser, and modifying the user interface within the web browser during run-time of the application.
The apparatus comprises a user interface, a user interface updater, a web browser, and a host application. The web browser provides a way to display, access, and modify the user interface for communicating with the host application. The user interface updater generates the user interface and modifies the user interface in response to command information received from the web browser.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
In one embodiment the host computer 102 is a computing device such as those generally known in the art. The host computer 102 includes a central processing unit (CPU) 108, support circuits 110, and memory 112. The CPU 108 may comprise one or more commercially available microprocessors or microcontrollers that facilitate data processing and storage. The various support circuits 110 are utilized to facilitate the operation of the CPU 108 and include such circuits as clock circuits, power supplies, cache, input/output circuits, and the like. The memory 112 may comprise random access memory, read only memory, removable storage, optical disk storage, disk drive storage, and combinations thereof. The memory 112 stores a server operating system 120, a host application 128, client interface data 124, a user interface updater 126, an interface information packet 130, and a gateway interface 121. In operation, the CPU 108 executes the operating system 120 to control the general utilization and functionality of the host computer 102.
The CPU 108 also executes the host application 128. The host application 128 listens for incoming command information from the client device 106. When the command information is received, the host application 128 executes the user interface updater 126. The user interface updater 126 parses the command information and updates a client interface state 131 in the client interface data 124 accordingly. The client interface data 124 may be stored in volatile memory, non-volatile memory, or a mixture of both. In one embodiment, information describing the base, unmodified client interface may be stored in volatile memory, with individual client interface states 131 loaded on-demand from non-volatile memory.
In one embodiment, the client interface state 131 may be represented as a script. The script may correspond to and represent the changes that must be made to a base interface also stored within the client interface data. The base interface is sent to the client device 106 and represents a “clean” user interface as sent prior to any changes. As changes are made, the script associated with that particular client device 106 is modified reflecting the updates. By saving only the differences from a base interface, the memory footprint of the client interface data 124 is minimized. In one embodiment, the gateway interface 121 may be executed by the CPU 108 to provide access to a database application server 105.
The client device 106 is a computing device such as those generally known in the art. The client device 106 may comprise any device capable of executing a web browser, for example, a hand-held bar code reader, a cellular phone, a personal digital assistant, or a personal computer. The client device 106 includes a CPU 114, support circuits 116, and memory 118. The CPU 114 may comprise one or more commercially available microprocessors or microcontrollers that facilitate data processing and storage. The various supporting circuits 116 are utilized to facilitate the operation of the CPU 114 and include such circuits as clock circuits, power supplies, cache, input/output circuits, and the like. The memory 118 may comprise random access memory, read only memory, removable storage, optical disk storage, disk drive storage, and combinations thereof. The memory 118 stores an operating system 132, a web browser 134, and an update packet 136. In operation, the CPU 114 executes the operating system 132 to control the general utilization and functionality of the client device 106.
The CPU 114 also executes the web browser 124. The web browser 124 displays the user interface 138, and executes a display engine 140 to interpret and execute commands provided in a scripted language. In one embodiment, these commands may be provided in the JAVASCRIPT language. The web browser 124 provides an interface for and is coupled with the database application server 105 by via the host computer 102. The user interface 138 receives input and can be modified at run-time. In this manner, the invention advantageously allows the user to seamlessly transition from a data entry mode to an editor mode during run-time. For example, the user interface 138 may provide list boxes, radio buttons, check boxes, and other fields for data input. These fields may be moved, added, deleted, renamed, or otherwise modified without the need to execute a separate editor program. When a modification occurs, an update packet 136 containing command information is generated and sent to the host computer 102 by way of scripted commands running on the display engine 140 contained within the web browser 124.
Exemplary modifications include drag-and-drop and resizing operations. In one embodiment, a drag-and-drop operation may be implemented by the following process:
In one embodiment, the display engine 140 adds a small but visible hook object (e.g. span tag) to the lower right corner of that object to make an object resizable (such as a div node element). The display engine 140 then makes that hook element drag-and-droppable (as above). As that hook element is dragged, the display engine 140 dynamically calculates and sets the new width and height of the resizable object. When the hook element is dropped, the display engine 140 stops calculating and setting new width and height, leaving the last set width and height as the object's new dimension.
At step 204, the display engine 140 parses the array containing the modifications to the user interface 138. In one embodiment, the display engine 140 creates the update packet 136 by collecting the XY position coordinates, width and height, default text, default foreground and background colors, and the like. This data is saved into a JAVASCRIPT Object Notation (JSON) object to be transmitted to the host computer 102. The client 106 sends the update packet 136 to the host computer 102. The update packet 136 comprises data describing the modification, as described below with respect to
At step 206, the host computer 102 receives the update packet, and modifies the client interface data 124 in accordance with the update packet 136. The host computer 102 matches the elements in the update packet 136 to element identifiers associated with each element of the user interface 138. The elements of the client interface data 124 associated with the element identifiers of the update packet 136 are modified in response to the data received in the update packet 136. In one embodiment, the client device 106 may be associated with a specific interface state 131 located within the client interface data 124, and therefore only that object of the client interface data 124 will be modified.
At step 208, the host computer 102 may send information to the client device 106 reflecting the changes contained in the update packet 136. In this manner, an embodiment of the invention may provide “What You See Is What You Get” (WYSIWYG) modification functionality to the web browser environment, as the host computer 102 generates an updated user interface 138 for the client device 106 as modifications are made and sent on the client side via update packets 136.
In one embodiment, the client interface data 124 modified may correspond to an identifier associated with the state 131 of a specific client device 106. In this manner, an update for a single user interface 138 may be performed, even if the host computer 102 provides interfaces for multiple client devices 106. At step 310, in one embodiment, the user interface updater 136 may notify the host application 128 that the user interface 138 for the client device 106 has been updated. At step 312, the host application 128 may then send an update to the client device 106 reflecting the change to the user interface 138 recorded in the client interface data 124. In this manner, it is possible to update the user interface 138 immediately after a command has been entered, without requiring any design and development software on the client device other than a web browser 134. The method ends at step 314 after the update has been sent.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
Number | Name | Date | Kind |
---|---|---|---|
6058375 | Park et al. | May 2000 | A |
6108309 | Cohoe et al. | Aug 2000 | A |
6397220 | Deisinger et al. | May 2002 | B1 |
6760745 | Tan et al. | Jul 2004 | B1 |
6822663 | Wang et al. | Nov 2004 | B2 |
6970823 | Yago et al. | Nov 2005 | B1 |
6993712 | Ramachandran et al. | Jan 2006 | B2 |
7093195 | Lynch et al. | Aug 2006 | B2 |
7137127 | Slotznick | Nov 2006 | B2 |
7278110 | Wugofski | Oct 2007 | B1 |
7386485 | Mussman et al. | Jun 2008 | B1 |
7493591 | Charisius et al. | Feb 2009 | B2 |
7577601 | Rademacher et al. | Aug 2009 | B1 |
7752299 | Bookman et al. | Jul 2010 | B2 |
7792784 | Gupta | Sep 2010 | B2 |
7805523 | Mitchell et al. | Sep 2010 | B2 |
7809600 | Como et al. | Oct 2010 | B1 |
7899763 | Machulsky et al. | Mar 2011 | B2 |
7970943 | Lin et al. | Jun 2011 | B2 |
8010605 | Chang | Aug 2011 | B2 |
8166130 | Reinart | Apr 2012 | B2 |
20020083154 | Auffray et al. | Jun 2002 | A1 |
20030014496 | Spencer et al. | Jan 2003 | A1 |
20030231750 | Janveja et al. | Dec 2003 | A1 |
20060041618 | Chang | Feb 2006 | A1 |
20060212846 | O'Farrell et al. | Sep 2006 | A1 |
20060265662 | Gertzen | Nov 2006 | A1 |
20070094597 | Rostom | Apr 2007 | A1 |
20070112958 | Kim | May 2007 | A1 |
20070124670 | Finck et al. | May 2007 | A1 |
20070150820 | Salvo | Jun 2007 | A1 |
20070220527 | Tolgu et al. | Sep 2007 | A1 |
20070234235 | Scott | Oct 2007 | A1 |
20070238488 | Scott | Oct 2007 | A1 |
20070238489 | Scott | Oct 2007 | A1 |
20070256003 | Wagoner | Nov 2007 | A1 |
20080040653 | Levine | Feb 2008 | A1 |
20090013267 | Cudich et al. | Jan 2009 | A1 |
20090013281 | Helfman et al. | Jan 2009 | A1 |
20090204583 | Hechler et al. | Aug 2009 | A1 |
20090228490 | Faenger | Sep 2009 | A1 |
20090318126 | Schimitzek | Dec 2009 | A1 |
20100005053 | Estes | Jan 2010 | A1 |
20100100823 | Ewe et al. | Apr 2010 | A1 |
20110111742 | Neil et al. | May 2011 | A1 |
20110307630 | Lange et al. | Dec 2011 | A1 |
20120110209 | Bonefas et al. | May 2012 | A1 |
20130060845 | Chalana et al. | Mar 2013 | A1 |
20130097095 | Rumig et al. | Apr 2013 | A1 |
20130103391 | Millmore et al. | Apr 2013 | A1 |
Number | Date | Country |
---|---|---|
WO 2008031625 | Mar 2008 | WO |
Entry |
---|
GuiXT Designer Installation Guide, GuiXT® by Synactive, 2009, Synactive, Inc, Foster City, CA, 17 pages. |
GuiXT Designer Configuration Guide, GuiXT® by Synactive, 2009, Synactive, Inc, Foster City, CA, 13 pages. |
International Search Report and Written Opinion mailed on May 3, 2010 for PCT/US2009/061469. |