Method for solving compatibility of modal and non-modal windows in browser

A solution, non-modal technology, applied in the field of web project development, can solve problems such as running effect not expected effect, code error reporting, browser incompatibility, etc.

Inactive Publication Date: 2017-03-22
INSPUR FINANCIAL INFORMATION TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] If a web project developer uses the showModalDialog and showModelessDialog methods in the script code of javaScript, the running effect may not be as expected, and the code may even report an error
The reason is that different browsers support the two methods differently, and some browsers are not compatible

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0098]

[0099]

[0103]

[0104] After the script runs, page.html will be opened in a new window with a width of 100 and a height of 400, 0 pixels from the top of the screen, 0 pixels from the left of the screen, no tool bar, no menu bar, no scroll bar, no Resizing, no address bar, no status bar. Please compare.

[0105] If you need to pass the parameters in the child window back to the parent window, use window.opener in the child window to access the parent window:

[0106] window.opener returns the reference of the parent window that created the current window, for example, click a link on a.htm to open b.htm, and then we intend to enter a value on b.htm and assign it to a.htm In a textbox whose id is "name", it can be written as:

[0107] window.opener.document.getElementById("name").value = "Input ...

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 for solving compatibility of modal and non-modal windows in a browser, and belongs to the technical field of Web project development. The method comprises the steps of using a window.open method for solving the compatibility problem of the modal and non-modal windows in the browser, and transferring data between sites by using url parameters, thus ensuring that the data can be acquired by using the parameters even domain names are different; packaging the parameters by openpage and closepage pages; and opening a new window by directly using a window.open (pageURL, name, parameters) mode, wherein the parent window can be accessed by using a window.opener in the child window when the parameters in the child window need to be transferred back to the parent window. According to the method provided by the invention, the compatibility problem of the modal and non-modal windows in the browser is solved by using the window.open method.

Description

technical field [0001] The invention relates to the technical field of Web project development, in particular to a solution to the compatibility of modal and non-modal windows in browsers. Background technique [0002] In the development of Web projects, developers often use window dialog boxes to display information to users through windows. Window dialogs are divided into modal dialogs and non-modal dialogs. These two concepts come from GUI programs. When developers use these two types of form dialog boxes, they may not be displayed due to compatibility issues in different browsers. [0003] The browser compatibility problem refers to the situation that the page display effect is not uniform because different browsers have different parsing for the same piece of code. In most cases, our requirement is that no matter what browser the user uses to view our website or log in to our system, it should have a uniform display effect. Therefore, browser compatibility is a probl...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/38G06F9/451
Inventor 张家重徐睿李光瑞王玉奎
Owner INSPUR FINANCIAL INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products