CN101814030A - Menu updating method in Widget - Google Patents

Menu updating method in Widget Download PDF

Info

Publication number
CN101814030A
CN101814030A CN201010152430A CN201010152430A CN101814030A CN 101814030 A CN101814030 A CN 101814030A CN 201010152430 A CN201010152430 A CN 201010152430A CN 201010152430 A CN201010152430 A CN 201010152430A CN 101814030 A CN101814030 A CN 101814030A
Authority
CN
China
Prior art keywords
widget
menu
client
server
xml file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010152430A
Other languages
Chinese (zh)
Inventor
卢虹宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201010152430A priority Critical patent/CN101814030A/en
Publication of CN101814030A publication Critical patent/CN101814030A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a computer software technology, and provides a method for dynamically updating menus in Widget with a server, which comprises the steps that: a. the server creates an XML (Extensible Markup Language) file for describing the Widget menus; b. a Widget menu loading function is triggered on a client, and the XML file for describing the Widget menus is obtained from the server; c. the client analyzes the XML file; and d. the client creates the Widget menus according to the XML file. Through the method, the Widget can configure the XML file on the server, so that the client can randomly select favorite menus. The Widget menu loading function is triggered by a user, so as to update the Widget menus according to the need of the client at any time.

Description

Menu update method among a kind of Widget
Technical field
The present invention relates to computer software technology, the internet, applications technology under particularly a kind of embedded software environment.
Background technology
The Widget original meaning is meant the desktop small tool, a series of small tool is showed different personalizations by a specific platform (Widget engine) for the user information.Operation and the displaying of Widget in a kind of platform or a kind of concrete environment needs the Widget engine to realize.The Widget technology can be in a lot of rapid widespread uses in field, and one of them key factor is because Widget development process simple to operation.A common Widget has tens of extremely hundreds of capable XML/JavaScript/VBScript source codes to add that some pictures combine, and the Widget engine then is responsible for resolving these source codes and is also reallocated resources for widget.
Usually the menu in Widget is local realization, not easy care and renewal.
Summary of the invention
Technical matters to be solved by this invention is that a kind of method of utilizing server to dynamically update menu among the Widget is provided.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, menu update method among a kind of Widget may further comprise the steps:
A, server are created XML (extend markup language) file that is used to describe the Widget menu;
B, trigger Widget menu value-added tax function, obtain to describe the XML file of Widget menu from server in client;
C, client analyzing XML file;
D, client are according to XML document creation Widget menu.
Make the Widget can be by said method, the menu that selection oneself that client can be random is liked by the mode of configuration XML file on server.Widget menu value-added tax function is triggered by the user, can carry out the renewal of Widget menu according to the client needs at any time.
Concrete, the XML file of describing the Widget menu comprises master menu label, submenu label; Client is by parsing the master menu label in the XML file, the establishment that the submenu label is realized the Widget menu.
The invention has the beneficial effects as follows, the simple function that realizes that an online menu loads on Widget, the Widget menu of server definition is presented at the Widget platform of client, has reusability, can be used for the dynamically updating of various data under the Widget, avoid the unicity of Widget menu and alleviate the complexity of replacing.
Description of drawings
Fig. 1 is the embodiment process flow diagram.
Embodiment
Ajax (asynchronous JavaScript and XML) is a kind of client-side technology, and by sending and response data to server, server end returns a plain text stream, brings in processing by the client again.Text flow can be XML form, Html fragment, JavaScript step or character string.Client uses the XMLHttpRequest object to send request, after the server-side processes text flow is returned to client.Client asynchronous obtain the response data of server after, utilize the JavaScript script of client to handle, and the result shown.The menu update method just is based on the Ajax technology to realize on-line loaded Widget menu among the Widget of the present invention.As shown in Figure 1, specifically may further comprise the steps:
1) one of definition loads agreement, and server end loads agreement according to this and describes the Widget menu.This loads agreement and utilizes XML to finish, and has defined following two labels:
A:<mainmenu〉</mainmenu〉be used to describe master menu
B:<submenu〉</submenu〉be used for the descriptor menu
XML file at the description Widget menu of server end definition comprises this two labels.
Create the XML file about the Widget menu according to top agreement, form is as follows:
<mainmenu>
<submenu></submenu>
</mainmenu>
The Widget menu description file is kept in the server, and the file life is menu***.xml.
2) utilize the Ajax technology,, obtain the menu file menu***.xml that defines in the server by using the XMLHttpRequest technology.
3) utilize JavaScript to resolve the menu***.xml file, and generate a final JavaScript object about menu.
4) handle this JavaScript object, generate the menu***.js file, move this menu***.js file and demonstrate the Widget menu in client.
With step 2) to 4) described method is registered on the local menu item, when client triggered this menu item, client all can start the Widget updating menu like this.

Claims (2)

1. menu update method among the Widget is characterized in that, may further comprise the steps:
A, server are created the XML file that is used to describe the Widget menu;
B, trigger Widget menu value-added tax function, obtain to describe the XML file of Widget menu from server in client;
C, client are resolved described XML file;
D, client are according to described XML document creation Widget menu.
2. menu update method among a kind of according to claim 1 Widget is characterized in that described XML file comprises master menu label, submenu label; Client realizes the establishment of Widget menu by the master menu label in the analyzing XML file, submenu label.
CN201010152430A 2010-04-22 2010-04-22 Menu updating method in Widget Pending CN101814030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010152430A CN101814030A (en) 2010-04-22 2010-04-22 Menu updating method in Widget

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010152430A CN101814030A (en) 2010-04-22 2010-04-22 Menu updating method in Widget

Publications (1)

Publication Number Publication Date
CN101814030A true CN101814030A (en) 2010-08-25

Family

ID=42621293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010152430A Pending CN101814030A (en) 2010-04-22 2010-04-22 Menu updating method in Widget

Country Status (1)

Country Link
CN (1) CN101814030A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207967A (en) * 2011-06-03 2011-10-05 奇智软件(北京)有限公司 Method and system for automatically providing new browser plugin
CN102495729A (en) * 2011-12-02 2012-06-13 曙光信息产业(北京)有限公司 Application-based web page job submission display method
CN102693238A (en) * 2011-03-23 2012-09-26 青岛海信电器股份有限公司 Widget application method and system and multimedia terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991827A (en) * 2005-12-30 2007-07-04 腾讯科技(深圳)有限公司 Method and system for webpage development
US20080077855A1 (en) * 2006-09-21 2008-03-27 Shirel Lev Generic website
CN101202665A (en) * 2007-12-06 2008-06-18 中兴通讯股份有限公司 Method for generating graphical user interface
CN101552836A (en) * 2009-05-18 2009-10-07 浙江大学 Mobile Widget engine realizing method applied in cell phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991827A (en) * 2005-12-30 2007-07-04 腾讯科技(深圳)有限公司 Method and system for webpage development
US20080077855A1 (en) * 2006-09-21 2008-03-27 Shirel Lev Generic website
CN101202665A (en) * 2007-12-06 2008-06-18 中兴通讯股份有限公司 Method for generating graphical user interface
CN101552836A (en) * 2009-05-18 2009-10-07 浙江大学 Mobile Widget engine realizing method applied in cell phone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《科技咨询导报》 20071230 尹锋 利用JavaScript实现页面的弹出式菜单 , 第30期 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693238A (en) * 2011-03-23 2012-09-26 青岛海信电器股份有限公司 Widget application method and system and multimedia terminal
CN102693238B (en) * 2011-03-23 2015-09-16 青岛海信电器股份有限公司 Widget application process, system and multimedia terminal
CN102207967A (en) * 2011-06-03 2011-10-05 奇智软件(北京)有限公司 Method and system for automatically providing new browser plugin
CN102207967B (en) * 2011-06-03 2013-05-08 奇智软件(北京)有限公司 Method and system for automatically providing new browser plugin
CN102495729A (en) * 2011-12-02 2012-06-13 曙光信息产业(北京)有限公司 Application-based web page job submission display method

Similar Documents

Publication Publication Date Title
US11150874B2 (en) API specification generation
CN106575166B (en) Method for processing hand input character, splitting and merging data and processing encoding and decoding
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US9888088B2 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
US8073857B2 (en) Semantics-based data transformation over a wire in mashups
US10007532B1 (en) Data infrastructure for cross-platform cross-device API inter-connectivity
US9565148B2 (en) Method and apparatus for processing micro web log messages
US8020051B2 (en) Message handling in a service-oriented architecture
CN101382893B (en) On-line assembling method for component based on Web service
CN102271121A (en) Service-model-oriented cloud computing development platform realization method
CN101390103A (en) Customizable service provider user interface
US20140359578A1 (en) Generating visually encoded dynamic codes for remote launching of applications
US20220147498A1 (en) Generation of schemas with error resolve
CN101814030A (en) Menu updating method in Widget
Prehofer et al. Modeling restful web of things services: Concepts and tools
US10169055B2 (en) Access identifiers for graphical user interface elements
US20140297736A1 (en) Data interchange system
US10169478B2 (en) Optimize data exchange for MVC-based web applications
CN105335160A (en) Method for agile development of WEB-side components based JSF (Java Server Face)
JP2011053874A (en) Application server, method and program for managing object
CN105791342A (en) Configuration-based monitoring method, device and system
JP2015037310A (en) Multi-character set character code input method, multi-character set character code input system, and device for executing multi-character set character code input program
Li et al. A Web application framework for end-user-initiative development with a visual tool
EP3537350A1 (en) Method and system for customized transfer of data
CN104253844A (en) Microblog data downloading method and system, user terminal and downloading server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20100825

RJ01 Rejection of invention patent application after publication