Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for creating modal dialog box

A dialog box and modal technology, applied in the field of information processing, can solve problems such as multiple functions

Active Publication Date: 2019-10-08
NEUSOFT CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In related technologies, the creation of modal dialog boxes is realized through third-party components, therefore, the existing code needs to be greatly changed, and many functions are relied on

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for creating modal dialog box
  • Method and device for creating modal dialog box
  • Method and device for creating modal dialog box

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0044] Please refer to figure 1 , figure 1 It is a flowchart of a method for creating a modal dialog box provided by an embodiment of the present invention. The method includes the following steps:

[0045] Step S11: call the target function, the target function is used to create a modal dialog box on the HTML page;

[0046] Step S12: using HTML tags to create and display a dialog box on the HTML page;

[0047] Step S13: monitoring whether the event for closing the dialog box is triggered;

[0048] Step S14: responding to the event and generating a return value when the event is detected to be triggered;

[0049] Step S15: calling the callback function inc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for creating a modal dialogue box. The method includes: calling a target function which is used for creating the modal dialogue box on a HTML (hypertext markup language) page; utilizing a HTML tag to create and display a dialogue box on the HTML page; monitoring whether an event used for closing the dialogue box is triggered or not; when the circumstance that the event is triggered is monitored, responding the event, and generating a return value; calling a callback function contained in parameters of the target function to process the return value. The dialogue box generated through the HTML tag is simulated into the modal dialogue box, existing codes don't need to be changed greatly, and the method is suitable for browsers of various versions.

Description

technical field [0001] The present invention relates to the technical field of information processing, in particular to a method and device for creating a modal dialog box. Background technique [0002] A dialog box is a window that often appears on an HTML page for the user to interact with the browser. Dialog boxes can be divided into modal dialog boxes and modeless dialog boxes. The difference between a modal dialog box and a non-modal dialog box is that the modal dialog box restricts the user to operate only on various options presented on the modal dialog box, and the user performs operations on options or buttons other than the modal dialog box. operation, the browser does not respond. [0003] In the related art, the creation of the modal dialog box is realized through a third-party component, therefore, the existing code needs to be greatly changed and many functions are relied on. Contents of the invention [0004] The object of the present invention is to prov...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/451
Inventor 傅有为张霞
Owner NEUSOFT CORP