[go: up one dir, main page]

WO2002075599A1 - Method at programming and a mechanism for handling html-document - Google Patents

Method at programming and a mechanism for handling html-document Download PDF

Info

Publication number
WO2002075599A1
WO2002075599A1 PCT/SE2002/000343 SE0200343W WO02075599A1 WO 2002075599 A1 WO2002075599 A1 WO 2002075599A1 SE 0200343 W SE0200343 W SE 0200343W WO 02075599 A1 WO02075599 A1 WO 02075599A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
function
functions
programming
wherewith
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.)
Ceased
Application number
PCT/SE2002/000343
Other languages
French (fr)
Inventor
Mikael Bergkvist
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.)
Labino Patent AB
Original Assignee
Labino Patent AB
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 Labino Patent AB filed Critical Labino Patent AB
Publication of WO2002075599A1 publication Critical patent/WO2002075599A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to a programming method, and particularly to a method of programming in JavaScript functions for carrying out a given task, particularly for facilitating the definition of new elements.
  • the invention also relates to a mechanism for handling the contents of an html document .
  • Self-defined or autodefined elements can be created in Microsoft Explorer, Version 5, and in later versions, by employing a given syntax, the use of which is, unfortunately, complicated. Firstly, it is necessary to declare a so-called name- space which is placed in the root element ⁇ HTML> .
  • ⁇ HTML xmlns:x> implies that all self-defined elements shall have the prefix "x".
  • an object of the present invention is to provide a novel method relating to the programming of functions for pages that can be read by a web reader, said method making it easier to create functions that can be interpreted by the web reader.
  • the object of the invention is achieved with a method which comprises creating a novel mechanism which formats one page beforehand and marks with a temporary ID, each element on the page provided with a namespace-prefix, wherein the mechanism calls a function that has the same name as the element and transmits with the given ID. This achieves synchronisation of function and element.
  • a further object of the invention is to provide such a mechanism that is able to handle the contents of an html document effectively.
  • the function called is aware of the ID of the element and initiates a process that reads in the data contained by the element, processes this data and writes to the element, all in a space of time shorter than a millisecond, and then releases the element.
  • the mechanism then passes to the next element and calls its function, wherewith the same sequence of events is repeated.
  • the first function is again summoned and again locks on the element, wherewith the process continues from where it was earlier. The entire process is much quicker than can be discerned by the eye and everything is therewith discerned as a whole.
  • the mechanism significantly simplifies the methodology of coupling functions to self-defined, or auto-defined elements. It suffices with a namespace declaration and the linked mechanism for the functions on the page to be able to co-act, because the values they read-in are public, i.e. available to all other functions. This also enables local script, written by the user himself, to integrate with functions defined by the mechanism.
  • the mechanism is such as to enable it to be extended.
  • the mechanism causes all summoned functions to be converted to a coherent group of functions, i.e. a program. Such a program will consist of functions associated with self- defined html elements and activate only those elements that are found. This means that the program will have different appearances, depending on which elements are found in the document or on said page.
  • links are used to call functions, it must be possible to switch off the link from one of the functions called by the mechanism, or, alternatively, to switch its goal to another goal.
  • This methodology is normally referred to as "smartlinks" .
  • creation of the inventive mechanism results in a mechanism that can organise several complicated script functions into a coherent unit, a program, by activating the script functions from an html document.
  • the mechanism can also nestle the functions if their associated elements are also nestled.
  • the mechanism When the mechanism is activated, it thus reads through an html document, or a page, and identifies the list of func- tions that shall be included. The mechanism then pre-formats the page for those functions that shall be included and then call these functions in sequence. This page is then updated by virtue of the mechanism constantly "flashing" the page, in the same way as a television (TV) updates the picture 32 times per second.
  • TV television
  • Multithread programming is actually an impossibility in a web reader and does not exist.
  • True multithread means that sev- eral calculations are execute in parallel in the processor, which is a technical impossibility from a web reader.
  • the inventive mechanism allows some sort of multithread execution, by virtue of the fact that several functions can be executed in parallel and call their attendant functions individually without affecting the other "threads". They can stop and start individually without affecting the other functions. It is thus a multithread technique in principle, but not in a conventional sense, i.e. as seen from the processor.
  • the inventive mechanism is adapted to stop completely, if it receives an error message. However, the mechanism is not stopped directly by the error, but as a result of a conscious act. The element that caused the error is then erased and the mechanism restarted. The worst that can happen in this respect is that a function is never initiated, although the remaining functions are executed nevertheless. With this type of error it is otherwise normal for the entire script to be blocked because the functions self-lock since it cannot iso- late and break with the element causing the error, meaning that the error is constantly repeated. In practice, this normally means that it also reads all other scripts on the page. In respect of the inventive mechanism, it makes no difference whether it is the element or the function that is in error. The one activates the other.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Devices For Executing Special Programs (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a method of programming, particularly of programming in JavaScript functions for performing a given task, wherein there is created a mechanism which formats an html page in advance and marks on the page each element provided with a namespace-prefix with a temporary ID, wherewith the mechanism calls a function that has the same as the element and transmits with the given ID. The invention also relates to such a mechanism.

Description

METHOD AT PROGRAMMING AND A MECHANISM FOR HANDLING HTML-DOCUMENT
The present invention relates to a programming method, and particularly to a method of programming in JavaScript functions for carrying out a given task, particularly for facilitating the definition of new elements. The invention also relates to a mechanism for handling the contents of an html document .
Self-defined or autodefined elements can be created in Microsoft Explorer, Version 5, and in later versions, by employing a given syntax, the use of which is, unfortunately, complicated. Firstly, it is necessary to declare a so-called name- space which is placed in the root element <HTML> . For example, <HTML xmlns:x> implies that all self-defined elements shall have the prefix "x". The thus created script is placed in an HTC-file, a text file with the file ending HTC, which gives the script a style-class via a series of attach com- ands through the syntax "Θmedia all", whereafter the element is coupled together with the function if said "class" is given to the element, for example <element class="function">. This gives rise to several HTC files and at least one CSS- file, these files being unable to co-act.
Consequently, an object of the present invention is to provide a novel method relating to the programming of functions for pages that can be read by a web reader, said method making it easier to create functions that can be interpreted by the web reader.
The object of the invention is achieved with a method which comprises creating a novel mechanism which formats one page beforehand and marks with a temporary ID, each element on the page provided with a namespace-prefix, wherein the mechanism calls a function that has the same name as the element and transmits with the given ID. This achieves synchronisation of function and element.
A further object of the invention is to provide such a mechanism that is able to handle the contents of an html document effectively.
As a result of the aforesaid mechanism, the function called is aware of the ID of the element and initiates a process that reads in the data contained by the element, processes this data and writes to the element, all in a space of time shorter than a millisecond, and then releases the element. The mechanism then passes to the next element and calls its function, wherewith the same sequence of events is repeated. When the mechanism has gone through all of the elements on said page and the page is recreated, the first function is again summoned and again locks on the element, wherewith the process continues from where it was earlier. The entire process is much quicker than can be discerned by the eye and everything is therewith discerned as a whole.
The mechanism significantly simplifies the methodology of coupling functions to self-defined, or auto-defined elements. It suffices with a namespace declaration and the linked mechanism for the functions on the page to be able to co-act, because the values they read-in are public, i.e. available to all other functions. This also enables local script, written by the user himself, to integrate with functions defined by the mechanism. The mechanism is such as to enable it to be extended. The mechanism causes all summoned functions to be converted to a coherent group of functions, i.e. a program. Such a program will consist of functions associated with self- defined html elements and activate only those elements that are found. This means that the program will have different appearances, depending on which elements are found in the document or on said page. If an element lies inwardly of another, i.e. is nestled, the functions belonging to the elements will also be nestled in each other, therewith influ- encing the result. This enables programs to be created in roughly the same way as if pieces of LEGO® have been placed together, by adding elements to the document and/or by nestling these elements together. This implies a totally novel script methodology and a completely novel type of the reuse of program codes.
Only element attributes, i.e. so-called element variables, can be used in coding the mechanism, meaning that variables cannot be used at all. In order for the mechanism to func- tion, it is assumed that all ongoing processes can be interrupted and again read-in from the element at any time whatsoever.
In order to save temporarily certain ongoing operations, there are used named, but empty, elements and their attributes instead of using global variables. Data tags is another name for such elements.
All mechanisms are supported with the aid of elements that can be called by the introduction of element ID or by rearranging their attributes. For example, an element can be made inactive or reactivated, by switching one of its attributes on or off. The functions include coupling attributes, i.e. attributes that are also recognised by other functions. This means that the next-laid element can ask the "father element" or the "child element" what values it has and adapt itself accordingly. In turn, this means that functions not only nestle where their elements nestle, but that they also take the context into account and, in reality, together form a new function.
If links are used to call functions, it must be possible to switch off the link from one of the functions called by the mechanism, or, alternatively, to switch its goal to another goal. This methodology is normally referred to as "smartlinks" .
Creation of the inventive mechanism results in a mechanism that can organise several complicated script functions into a coherent unit, a program, by activating the script functions from an html document. The mechanism can also nestle the functions if their associated elements are also nestled.
When the mechanism is activated, it thus reads through an html document, or a page, and identifies the list of func- tions that shall be included. The mechanism then pre-formats the page for those functions that shall be included and then call these functions in sequence. This page is then updated by virtue of the mechanism constantly "flashing" the page, in the same way as a television (TV) updates the picture 32 times per second.
Multithread programming is actually an impossibility in a web reader and does not exist. True multithread means that sev- eral calculations are execute in parallel in the processor, which is a technical impossibility from a web reader. However, the inventive mechanism allows some sort of multithread execution, by virtue of the fact that several functions can be executed in parallel and call their attendant functions individually without affecting the other "threads". They can stop and start individually without affecting the other functions. It is thus a multithread technique in principle, but not in a conventional sense, i.e. as seen from the processor.
The inventive mechanism is adapted to stop completely, if it receives an error message. However, the mechanism is not stopped directly by the error, but as a result of a conscious act. The element that caused the error is then erased and the mechanism restarted. The worst that can happen in this respect is that a function is never initiated, although the remaining functions are executed nevertheless. With this type of error it is otherwise normal for the entire script to be blocked because the functions self-lock since it cannot iso- late and break with the element causing the error, meaning that the error is constantly repeated. In practice, this normally means that it also reads all other scripts on the page. In respect of the inventive mechanism, it makes no difference whether it is the element or the function that is in error. The one activates the other. When this function is erased, the defect function is no longer actuated and, on the contrary, when the defect element is erased, the function is not required to handle the element that initiated the error. In the event of both the element and the function being de- fective, the relationship is, nevertheless, broken by the erasure. When the mechanism is restarted, after a millisecond or so, the conflict is eliminated and executed of the script continued.

Claims

1. A method of programming, particularly of programming JavaScript functions for performing a given action, characterised by creating a mechanism which pre-formats an html page and marks each element on said page with a namespace- prefix that has a temporary ID, wherewith the mechanism calls a function that has the same name as said element and transmits with the given ID.
2. A method according to Claim 1, characterised in that the function initiates a process that reads-in the data possessed by said element, processes said data, and writes-in the element, and thereafter releases the element.
3. A mechanism for handling the content of an html document, characterised in that the mechanism is designed to pre-read in an html page and mark each element on the page provided with a namespace-prefix with a temporary ID, wherein the mechanism is adapted to call a function that has the same name as the element and transmit with the given ID.
4. A mechanism according to Claim 3, characterised in that the mechanism is- designed to initiate a process that reads in the data possessed by the element, processes said data, and writes-in the element, and thereafter releases said element.
5. A mechanism according to Claim 4, characterised in that the mechanism is designed to then pass to the next element and call its function, wherewith the aforesaid procedure is repeated.
6. A mechanism according to Claim 5, characterised in that after having gone through all of the elements on the page, the mechanism functions to recreate said page and call the first function, wherewith the process according to Claims 4-5 is repeated.
7. A mechanism according to any one of Claims 3-6, characterised in that in the event of receiving an error message, the mechanism functions to stop working and erases the element that has caused the error, wherewith the mechanism restarts.
PCT/SE2002/000343 2001-03-21 2002-02-27 Method at programming and a mechanism for handling html-document Ceased WO2002075599A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
SE0100988-5 2001-03-21
SE0100988A SE522384C2 (en) 2001-03-21 2001-03-21 Programming procedure and mechanism for managing HTML documents

Publications (1)

Publication Number Publication Date
WO2002075599A1 true WO2002075599A1 (en) 2002-09-26

Family

ID=20283461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SE2002/000343 Ceased WO2002075599A1 (en) 2001-03-21 2002-02-27 Method at programming and a mechanism for handling html-document

Country Status (2)

Country Link
SE (1) SE522384C2 (en)
WO (1) WO2002075599A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092068A (en) * 1997-08-05 2000-07-18 Netscape Communication Corporation Marked document tutor
WO2000054175A1 (en) * 1999-03-09 2000-09-14 Koninklijke Philips Electronics N.V. Method of coding a document
WO2001008044A2 (en) * 1999-07-27 2001-02-01 Schlumberger Holdings Limited Publishing system for intranet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092068A (en) * 1997-08-05 2000-07-18 Netscape Communication Corporation Marked document tutor
WO2000054175A1 (en) * 1999-03-09 2000-09-14 Koninklijke Philips Electronics N.V. Method of coding a document
WO2001008044A2 (en) * 1999-07-27 2001-02-01 Schlumberger Holdings Limited Publishing system for intranet

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DINO ESPOSITO: "Scripting evolves to a more powerful technology--HTML behaviors in Depth", CUTTING EDGE: HTML BEHAVIORS IN DEPTH, MIND, April 1999 (1999-04-01), pages 1 - 9, XP002954576, Retrieved from the Internet <URL:http://www.microsoft.com/mind/0499/htmlbehaviors/htmlbehaviors.htm> *
KURT CAGLE: "Learn how to integrate XML and CSS markup to create truly extensible web pages using your own tag set and vocabulary", CREATE EXTENSIBLE WEB PAGES WITH XML AND CSS, 1999 - 2000, pages 1 - 8, XP002954574, Retrieved from the Internet <URL:http://www.xmlmag.com/upload/fee/features/xml/1999/01win99/kc3win99/kc3win99.asp> *
VIDUR APPARAO ET AL.: "Behavioral extensions to CSS, W3C working draft 04 Aug 1999", pages 1 - 17, XP002954575, Retrieved from the Internet <URL:http://www.w3.org/TR/1999/WD-becss-19990804> *

Also Published As

Publication number Publication date
SE522384C2 (en) 2004-02-03
SE0100988D0 (en) 2001-03-21
SE0100988L (en) 2002-09-22

Similar Documents

Publication Publication Date Title
CN101656949B (en) Method and terminals for aerial upgrade of firmware
CN101557583B (en) Remote-updating and version-switching method of repeater equipment embedded software
GB2392529A (en) Automatic replacement of corrupted bios image
EP1152338A2 (en) Method and apparatus for downloading firmware
US8671270B2 (en) System connected to a memory for storing an extended firmware having a bios emulator in which the bios emulator is overwritten using a interruption vector for handling a bios call
JP2004536405A (en) Embedded software update system
EP1168164A3 (en) Method of updating program in stored program control unit, and stored control program unit
CN101539859B (en) Development method of plug-in board for embedded Konqueor browser based on uCLinux
US7222342B2 (en) Execution on a machine, the start of an auxiliary downloader when storage of new software memory fails during execution of a first downloader
KR910017275A (en) Microprocessor device and its operation management method
WO1999028818A3 (en) Enhanced instruction decoding
WO2002075599A1 (en) Method at programming and a mechanism for handling html-document
WO1997016787A2 (en) Fault data collection as part of computer unit restart
KR100892311B1 (en) Software upgrade apparatus and method of digital broadcasting receiver
CN104915234A (en) Android mobile terminal upgrade reported method and system
CN111460849A (en) Method compatible with multiple sets of setting codes and code scanning equipment
CN100430894C (en) Method for updating TV system software with power-off protection
JP3734285B2 (en) Firmware update device and firmware update method
KR101695009B1 (en) Method for optimizing javascript library in mobile environment and apparatus for the same
KR20000020510A (en) Driver for recovering downloading error and method for downloading program
Hanson MIT Scheme User's Manual
KR920004411B1 (en) Program down method using e2prom
JPH11249909A (en) Method for process reactivation on multitask os
JP2000040003A (en) Firmware updation system
CA2275169A1 (en) Computer system

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG US UZ VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP