CN107608805B - JS and FLASH communication method - Google Patents
JS and FLASH communication method Download PDFInfo
- Publication number
- CN107608805B CN107608805B CN201710868262.3A CN201710868262A CN107608805B CN 107608805 B CN107608805 B CN 107608805B CN 201710868262 A CN201710868262 A CN 201710868262A CN 107608805 B CN107608805 B CN 107608805B
- Authority
- CN
- China
- Prior art keywords
- flash
- editor
- function
- communication
- user
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a webpage processing technology. The invention aims to provide a simpler communication mode to provide more convenient operation for XBRL users, and provides a JS and FLASH communication method, and the technical scheme can be summarized as follows: a user clicks a classification standard editor button and jumps to an editor page through connection; loading FLASH on a page, and calling a corresponding function after the FLASH loading is finished; receiving corresponding parameter data through the corresponding function, judging whether the state value corresponding to the parameter data is consistent with the appointed state value or not, if so, transmitting corresponding information to the FLASH, and if not, not processing; and the FLASH acquires background data according to the corresponding information, calls the corresponding function again after the acquisition is successful, sends the status code to the function and judges whether the user is allowed to perform corresponding operation. The method has the advantages that after the FLASH is loaded on the page, whether communication is carried out or not is determined by judging whether the state values agreed by the JS and the FLASH are consistent, and the communication is more convenient and concise.
Description
Technical Field
The invention relates to a webpage processing technology, in particular to a technology for communication between JS and FLASH.
Background
The XBRL extensible business reporting language is an internet-based, cross-platform operating, computer language specific to financial report formulation, disclosure, and use. The classification standard, the data mapping and the financial report editor developed by using the Flex technology based on the B/S architecture need to communicate with a page in time in the operation process, under the condition, a JS and FLASH communication method needs to be developed for checking, saving, switching and other operations of the XBRL editor, the existing communication between the JS and the FLASH is carried out through corresponding interface programs, and the communication is not easy to make mistakes when the data is huge.
Disclosure of Invention
The invention aims to provide a method for communication between JS and FLASH, which provides a more convenient operation for XBRL users by providing a simpler communication mode.
The invention solves the technical problem, and adopts the technical scheme that: the JS and FLASH communication method is characterized by comprising the following steps:
step 1, clicking a classification standard editor button by a user, and jumping to an editor page through connection;
step 2, loading FLASH on the page, and calling a corresponding function after the FLASH is loaded;
step 3, receiving corresponding parameter data through the corresponding function, judging whether the state value corresponding to the parameter data is consistent with the appointed state value, if so, transmitting corresponding information to the FLASH, and if not, not processing;
and 4, acquiring background data by the FLASH according to the corresponding information, calling the corresponding function again after the acquisition is successful, sending the state code to the function, and judging whether the user is allowed to perform corresponding operation.
Specifically, in step 2 and/or step 4, the corresponding function is specifically an asCallJs function defined in JavaScript.
Further, in step 3, the corresponding information at least includes a classification standard ID.
Specifically, in step 4, the corresponding operation at least includes checking, saving and switching.
Further, when the instance document is edited, the frame is simultaneously embedded into the instance document editor and the classification standard editor, FLASH monitors the role pull-down operation of the instance document at any time, if the monitored role is blank, the corresponding function is called to notify JS to refuse the user to switch the editor operation, if the role is not blank, the switching button is clicked, and the frame hides the instance document editor and simultaneously loads and displays the classification standard editor.
Specifically, when the classification standard editor is closed, the JS transmits a jsCloseWindow value through the corresponding function to notify the FLASH, and the FLASH judges whether to prompt the user to save according to the operation of the user on the example document before closing.
The method has the advantages that through the method for communication between the JS and the FLASH, after the FLASH is loaded on the page, whether communication is carried out or not is determined by judging whether the state values agreed by the JS and the FLASH are consistent or not, the communication is convenient and simple, and the problem that the communication is inconvenient and error is easy when the data is huge is avoided.
Detailed Description
The technical solution of the present invention will be described in detail with reference to the following examples.
The JS and FLASH communication method comprises the following steps: a user clicks a classification standard editor button and jumps to an editor page through connection; loading FLASH on a page, and calling a corresponding function after the FLASH loading is finished; receiving corresponding parameter data through a corresponding function, judging whether a state value corresponding to the parameter data is consistent with an appointed state value or not, if so, transmitting corresponding information to the FLASH, and if not, not processing; and the FLASH acquires the background data according to the corresponding information, calls the corresponding function again after the acquisition is successful, sends the status code to the function and judges whether the user is allowed to perform corresponding operation.
Examples
The method for communication between JS and FLASH comprises the following steps:
step 1, clicking a classification standard editor button by a user, and jumping to an editor page through connection;
step 2, loading FLASH on the page, and calling a self-defined asCallJs function in the JavaScript after the FLASH is loaded;
step 3, receiving corresponding parameter data through a self-defined asCallJs function in JavaScript, judging whether a state value corresponding to the parameter data is consistent with an appointed state value or not, if so, transmitting corresponding information to FLASH, and if not, not processing the corresponding information and prompting a user to push out a current page, wherein the corresponding information comprises classification standard IDs and the like;
and 4, acquiring background data by the FLASH according to the corresponding information, calling the corresponding function again after the acquisition is successful, sending the state code to the function, and judging whether the user is allowed to perform operations such as verification, storage, switching and the like.
In practical application, when an instance document is edited, a frame is simultaneously embedded into an instance document editor and a classification standard editor, FLASH monitors the role pull-down operation of the instance document at any time, if the monitored role is blank, a user-defined asCallJs function in JavaScript is called to notify JS to refuse a user to switch the editor for operation, if the role is not blank, a switch button is clicked, and the frame hides the instance document editor and loads and displays the classification standard editor at the same time; when the classification standard editor is closed, the JS transmits jsCloseWindow value through the customized asCallJs function in the JavaScript to inform the FLASH, and the FLASH judges whether to prompt the user to save according to the operation of the user on the instance document before closing.
Claims (6)
- The method for communication between JS and FLASH is characterized by comprising the following steps:step 1, a user clicks a classification standard editor button and jumps to a classification standard editor page through a link;step 2, loading FLASH on the page, and calling a corresponding function after the FLASH is loaded;step 3, receiving corresponding parameter data through the corresponding function, judging whether the state value corresponding to the parameter data is consistent with the appointed state value, if so, transmitting corresponding information to the FLASH, and if not, not processing;and 4, acquiring background data by the FLASH according to the corresponding information, calling the corresponding function again after the acquisition is successful, sending the state code to the function, and judging whether the user is allowed to perform corresponding operation.
- 2. The method for communicating JS with FLASH according to claim 1, wherein in step 2 and/or step 4, the corresponding function is a customized asCallJs function in JavaScript.
- 3. The method for JS communication with FLASH according to claim 1 wherein, in step 3, the corresponding information includes at least a classification criteria ID.
- 4. The method for JS communication with FLASH according to claim 1 wherein the corresponding operations in step 4 include at least checking, saving and switching.
- 5. The method for JS-FLASH communication according to any one of claims 1-4, wherein when editing an instance document, the framework is embedded in both an instance document editor and a classification standard editor, FLASH monitors the role pull-down operation of the instance document at any time, if it is monitored that the role is blank, the corresponding function is called to notify the JS to refuse the user to switch the editor operation, if the role is not blank, the switch button is clicked, and the framework hides the instance document editor and loads and displays the classification standard editor at the same time.
- 6. The method of claim 5 in which the JS communicates with FLASH when the classification criteria editor is closed, the JS sends a jsCloseWindow value through the corresponding function to notify FLASH, and FLASH determines whether to prompt the user to save based on the user's operation on the instance document before closing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710868262.3A CN107608805B (en) | 2017-09-22 | 2017-09-22 | JS and FLASH communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710868262.3A CN107608805B (en) | 2017-09-22 | 2017-09-22 | JS and FLASH communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107608805A CN107608805A (en) | 2018-01-19 |
CN107608805B true CN107608805B (en) | 2020-06-02 |
Family
ID=61057586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710868262.3A Expired - Fee Related CN107608805B (en) | 2017-09-22 | 2017-09-22 | JS and FLASH communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107608805B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101115064A (en) * | 2007-09-10 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Network data storing, obtaining method and its implementing device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8775919B2 (en) * | 2006-04-25 | 2014-07-08 | Adobe Systems Incorporated | Independent actionscript analytics tools and techniques |
US10713018B2 (en) * | 2009-12-07 | 2020-07-14 | International Business Machines Corporation | Interactive video player component for mashup interfaces |
-
2017
- 2017-09-22 CN CN201710868262.3A patent/CN107608805B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101115064A (en) * | 2007-09-10 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Network data storing, obtaining method and its implementing device |
Non-Patent Citations (1)
Title |
---|
《FLASH与JAVASCRIPT之间的通讯》;钟子云;《计算机应用》;20001031;第20卷(第10期);第68-70页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107608805A (en) | 2018-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104469707B (en) | A kind of mobile terminal and integrate the means of communication and the device of social account | |
TW201737126A (en) | Method and device for executing data recovery operation | |
CN108683636B (en) | Charging pile communication method and system | |
CN102724322B (en) | A kind of method and device for realizing remote control | |
CN105354118B (en) | Automatic test approach, the apparatus and system of intelligent terminal | |
CN101894059B (en) | A kind of detection method of running status and system | |
CN105376719B (en) | Information pushing method and device | |
CN104391586B (en) | A kind of input through keyboard detection method and detecting system based on mobile terminal | |
CN104935660A (en) | System, method and device for developing and operating cloud program | |
CN106068028A (en) | Terminal processes method and the terminal of wireless network name mess code | |
CN106406947B (en) | The method and device that prevents system service process from restarting, mobile terminal | |
CN107182078B (en) | Method for analyzing circuit switched fallback test report of terminal, terminal and storage device | |
CN102118324B (en) | Good friend is invited to enter the method and system of related product | |
CN104581668A (en) | Emergency calling method and electronic equipment | |
CN107608805B (en) | JS and FLASH communication method | |
CN114172835A (en) | Automatic testing method of Bluetooth digital key | |
CN106454403A (en) | Data display method, equipment and data display system | |
CN108184131A (en) | Start broadcasting based reminding method, device and readable storage medium storing program for executing | |
CN109657171B (en) | Webpage content co-screen annotation method based on mobile terminal and browser | |
CN110933530A (en) | Remote assistance method, device, equipment and computer readable medium | |
CN105608774A (en) | Intelligent entrance guard control system and control method thereof | |
CN106815772A (en) | Electric power data report method and device | |
CN104640084A (en) | Method and system for setting contact information for other mobile terminals | |
CN114091909A (en) | Collaborative development method, system, device and electronic equipment | |
CN102547627A (en) | Data timeliness guarantee method based on internet data transmission and short message transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200602 Termination date: 20210922 |
|
CF01 | Termination of patent right due to non-payment of annual fee |