JP6178764B2 - Information processing method, communication terminal, and computer program - Google Patents

Information processing method, communication terminal, and computer program Download PDF

Info

Publication number
JP6178764B2
JP6178764B2 JP2014153586A JP2014153586A JP6178764B2 JP 6178764 B2 JP6178764 B2 JP 6178764B2 JP 2014153586 A JP2014153586 A JP 2014153586A JP 2014153586 A JP2014153586 A JP 2014153586A JP 6178764 B2 JP6178764 B2 JP 6178764B2
Authority
JP
Japan
Prior art keywords
communication terminal
dom
selector
dom object
argument
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.)
Active
Application number
JP2014153586A
Other languages
Japanese (ja)
Other versions
JP2016031636A (en
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2014153586A priority Critical patent/JP6178764B2/en
Publication of JP2016031636A publication Critical patent/JP2016031636A/en
Application granted granted Critical
Publication of JP6178764B2 publication Critical patent/JP6178764B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は、情報処理方法、通信端末およびコンピュータプログラムに関するものである。   The present invention relates to an information processing method, a communication terminal, and a computer program.

ウェブテクノロジによる情報提供の形式において、文書情報の構造を記述するとともに映像やその他のディジタルコンテンツを提供する手段としてマークアップ言語が使用される。ハイパーテキストマークアップ言語(HTML)は最も普及したウェブのマークアップ言語であり、山括弧で囲まれたタグの形態のエレメントが記述される。HTMLは、ウェブコンテンツの構造を記述でき、ウェブブラウザ及び他のHTMLプロセッサの振舞いに影響する埋め込み型スクリプト言語コードJavaScript(登録商標)を含むことができる。ウェブブラウザにはスクリプト言語で記述されたコードからHTMLの各エレメントにアクセスするために、DOMと呼ばれる木構造データに変換して制御するAPIが提供されている。   In the format of providing information by web technology, a markup language is used as a means for describing the structure of document information and providing video and other digital contents. Hypertext markup language (HTML) is the most popular web markup language and describes elements in the form of tags enclosed in angle brackets. HTML can describe the structure of web content and can include embedded script language code JavaScript that affects the behavior of web browsers and other HTML processors. In order to access each element of HTML from a code written in a script language, a web browser is provided with an API that converts and controls tree structure data called DOM.

また、スクリプト言語を使って異なるウェブコンテンツ間で双方向に通信させる方法として、webRTCやWebSocketといったウェブテクノロジが用いられる。webRTCはブラウザ間において映像や音声、データをピア・ツー・ピアで送受信できる仕組みであり,WebSocketはサーバを介して非同期にメッセージを送受信できる仕組みである.
このような通信端末同士が双方向に通信する技術を活用して、ローカルの通信端末から遠隔の通信端末のDOMオブジェクトを操作する技術が提案されている。例えば、非特許文献1には、遠隔の通信端末のDOMオブジェクトを制御するために、JavaScriptのコードを文字列にして転送し、遠隔の通信端末内で評価関数(eval関数)を用いて実行させるAPIの仕様が公開されている。
Web technologies such as webRTC and WebSocket are used as a method for bidirectional communication between different web contents using a script language. webRTC is a mechanism that can send and receive video, audio, and data between browsers peer-to-peer, and WebSocket is a mechanism that can send and receive messages asynchronously via a server.
A technique for manipulating a DOM object of a remote communication terminal from a local communication terminal by utilizing such a technique in which communication terminals communicate bidirectionally has been proposed. For example, in Non-Patent Document 1, in order to control a DOM object of a remote communication terminal, a JavaScript code is transferred as a character string and is executed using an evaluation function (eval function) in the remote communication terminal. API specifications are open to the public.

これらの技術はクリエイターが通信方式やサーバーサイドのプログラムを意識せずとも利用できるようにフレームワーク化されている。   These technologies are framed so that creators can use them without being aware of communication methods and server-side programs.

「Remote UI API」、[online]、[平成26年7月22日検索]、インターネット<URL:http://dev.webinos.org/specifications/api/remoteui.html>"Remote UI API", [online], [Search July 22, 2014], Internet <URL: http://dev.webinos.org/specifications/api/remoteui.html>

非特許文献1では、遠隔の通信端末のDOMオブジェクトを操作するために、W3C標準ではなく独自にAPI仕様を定めており、制作者はそのAPIに定められた手順でウェブコンテンツを記述することが求められる。ウェブコンテンツの制作者にとっては、ローカルの通信端末のDOMオブジェクトを操作すると同じ操作性で遠隔の通信端末のDOMオブジェクトを操作できれば利便性が高い。しかしながら、非特許文献1に開示される方法は、JavaScriptのコードを遠隔の通信端末に直接転送するに留まり、開発者の利便性を考慮してAPIが設計されているとは言えない。   In Non-Patent Document 1, in order to operate a DOM object of a remote communication terminal, an API specification is defined independently instead of the W3C standard, and a creator can describe web content according to a procedure defined in the API. Desired. For web content creators, if the DOM object of the remote communication terminal can be operated with the same operability when the DOM object of the local communication terminal is operated, the convenience is high. However, the method disclosed in Non-Patent Document 1 merely transfers a JavaScript code directly to a remote communication terminal, and it cannot be said that an API is designed in consideration of developer convenience.

また、転送するJavaScriptのプログラムに誤ったコードが含まれていた場合,遠隔の通信端末でユーザの意図しない動作が生じるリスクや不正なコードが含まれるセキュリティのリスクがある。   Further, when an incorrect code is included in the transferred JavaScript program, there is a risk that an operation unintended by the user in the remote communication terminal may occur or a security risk that includes an illegal code.

このように従来の方法では、APIとしての利便性やセキュリティの観点において課題がある。   As described above, the conventional methods have problems in terms of convenience as API and security.

本発明は、上記に鑑みてなされたものであり、遠隔の通信端末においてセキュリティを確保しつつDOMオブジェクトのメソッドを実行させる技術を提供することを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide a technique for executing a method of a DOM object while ensuring security in a remote communication terminal.

上記の課題を解決するために、第1の本発明は、第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信し、前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信することを特徴とする。   In order to solve the above problems, according to a first aspect of the present invention, a first communication terminal reads a file describing the contents of digital content, stores the file as a DOM tree, and the first communication terminal , A selector indicating an element which is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the first communication terminal by the DOM tree, a method name of a method to be executed by the DOM object, and Obtaining an argument to be passed to the method and transmitting it to the second communication terminal, and the second communication terminal searches for an element corresponding to the selector from a DOM tree held in the second communication terminal, A DOM object is generated from the element, stored in the second communication terminal, and the second communication terminal When the method corresponding to the method name is executed by the DOM object, the argument is passed to the method, and when a return value is obtained by processing by the method, the return value is transmitted to the first communication terminal. Features.

第2の本発明は、第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第1の通信端末と異なる第2の通信端末に送信することを特徴とする。   According to a second aspect of the present invention, a first communication terminal reads a file describing the contents of digital content, stores the file as a DOM tree, and the first communication terminal uses the DOM tree to store the first communication terminal. Obtaining a selector indicating an element which is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the communication terminal of the method, a method name of a method to be executed by the DOM object, and an argument to be passed to the method, Transmitting to a second communication terminal different from the first communication terminal.

第3の本発明は、第1の通信端末と異なる第2の通信端末が、当該第2の通信端末に保持されたDOMツリーの部分であるエレメントを示すセレクタ、当該エレメントから生成されるDOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を前記第1の通信端末から受信し、前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信することを特徴とする。   According to a third aspect of the present invention, a second communication terminal different from the first communication terminal has a selector indicating an element that is a part of a DOM tree held in the second communication terminal, and a DOM object generated from the element The method name of the method to be executed and the argument passed to the method are received from the first communication terminal, and the second communication terminal corresponds to the selector from the DOM tree held in the second communication terminal. Search the element, generate a DOM object from the element, store the DOM object in the second communication terminal, the second communication terminal causes the DOM object to execute the method corresponding to the method name, and the argument When the method is passed to the method and a return value is obtained by processing by the method, the return value is sent to the first pass. And transmits to the terminal.

第4の本発明は、通信端末であって、ディジタルコンテンツの内容を記述したファイルをDOMツリーとして記憶する手段と、前記DOMツリーにより、当該通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信する手段とを備えることを特徴とする。   According to a fourth aspect of the present invention, there is provided a communication terminal for storing a file describing the contents of digital content as a DOM tree, and a DOM generated by the second communication terminal different from the communication terminal by the DOM tree. A selector that indicates an element that is a part of the DOM tree corresponding to the object, a method name of a method to be executed by the DOM object, and an argument to be passed to the method, and a means for transmitting to the second communication terminal. Features.

第5の本発明は、第1の通信端末と異なる第2の通信端末としての通信端末であって、当該第2の通信端末に保持されたDOMツリーの部分であるエレメントを示すセレクタ、当該エレメントから生成されるDOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を前記第1の通信端末から受信する手段と、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成する手段と、当該DOMオブジェクトを記憶する手段と、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡す手段と、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信する手段とを備えることを特徴とする。   The fifth aspect of the present invention is a communication terminal as a second communication terminal different from the first communication terminal, and a selector indicating an element that is a part of a DOM tree held in the second communication terminal, the element Corresponding to the selector from the DOM tree held in the second communication terminal and the means for receiving from the first communication terminal the method name of the method to be executed by the DOM object generated from the method and the argument passed to the method Means for searching for an element and generating a DOM object from the element; means for storing the DOM object; means for causing the DOM object to execute a method corresponding to the method name and passing the argument to the method; If a return value is obtained by processing by the method, the return value is Characterized in that it comprises a means for transmitting to the serial first communication terminal.

第6の本発明は、第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信し、前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信するように前記第1の通信端末と前記第2の通信端末を動作させるための情報処理プログラムである。   In a sixth aspect of the present invention, a first communication terminal reads a file describing the contents of digital content, stores the file as a DOM tree, and the first communication terminal uses the DOM tree to store the first communication terminal. Obtaining a selector indicating an element which is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the communication terminal of the method, a method name of a method to be executed by the DOM object, and an argument to be passed to the method, Transmitted to the second communication terminal, the second communication terminal searches for an element corresponding to the selector from the DOM tree held in the second communication terminal, generates a DOM object from the element, Stored in the second communication terminal, and the second communication terminal corresponds to the method corresponding to the method name. When the DOM object is executed, the argument is passed to the method, and when a return value is obtained by processing by the method, the return value is transmitted to the first communication terminal. And an information processing program for operating the second communication terminal.

本発明によれば、第1の通信端末から第2の通信端末を操作する場合、第2の通信端末すなわち遠隔の通信端末では、該通信端末に保持されたDOMツリーに含まれるエレメントから生成されたDOMオブジェクトのメソッドが実行されるので、不正なコードや誤ったコードが当該通信端末に送信される虞がなく、よってセキュリティが確保され、また、DOMオブジェクトのメソッドを実行させることができる。   According to the present invention, when the second communication terminal is operated from the first communication terminal, the second communication terminal, that is, the remote communication terminal, is generated from the elements included in the DOM tree held in the communication terminal. Since the method of the DOM object is executed, there is no possibility that an illegal code or an incorrect code is transmitted to the communication terminal, so that security is ensured and the method of the DOM object can be executed.

本実施の形態に係る情報処理システムの構成を示す図である。It is a figure which shows the structure of the information processing system which concerns on this Embodiment. 通信端末1、2が行う通信の通信方式の例を示す図である。It is a figure which shows the example of the communication system of the communication which the communication terminals 1 and 2 perform. セレクタが‘body’の場合におけるセレクタの指定方法の一例を示す図である。It is a figure which shows an example of the designation | designated method of a selector in case a selector is 'body'. 実施例1において通信端末1で読み込まれるHTMLファイルとスクリプト(スクリプト15)の例を示す図である。6 is a diagram illustrating an example of an HTML file and a script (script 15) read by the communication terminal 1 in Embodiment 1. FIG. 実施例1において通信端末2で読み込まれるHTMLファイルとスクリプトの例を示す図である。6 is a diagram illustrating an example of an HTML file and a script read by the communication terminal 2 in Embodiment 1. FIG. 実施例1においてDOMオブジェクト23を操作する前の通信端末1、2の画面を示す図である。6 is a diagram illustrating a screen of the communication terminals 1 and 2 before operating the DOM object 23 in Embodiment 1. FIG. 実施例1においてDOMオブジェクト23を操作した後の通信端末1、2の画面を示す図である。6 is a diagram illustrating a screen of communication terminals 1 and 2 after operating a DOM object 23 in Embodiment 1. FIG. 実施例2で使用されるPCやテレビの画面とスマートフォンの画面を示す図である。It is a figure which shows the screen of PC and television used in Example 2, and the screen of a smart phone. 実施例2においてスマートフォン(通信端末1)で読み込まれるHTMLファイルとスクリプト(スクリプト15)の例を示す図である。It is a figure which shows the example of the HTML file and script (script 15) which are read with the smart phone (communication terminal 1) in Example 2. FIG. 実施例2においてPC等(通信端末2)で読み込まれるHTMLファイルとスクリプトの例を示す図である。It is a figure which shows the example of the HTML file and script which are read by PC etc. (communication terminal 2) in Example 2. FIG.

以下、本発明の実施の形態について図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施の形態に係る情報処理システムの構成を示す図である。   FIG. 1 is a diagram showing a configuration of an information processing system according to the present embodiment.

情報処理システムは、通信端末1(第1の通信端末)と通信端末2(第2の通信端末)を含んで構成される。通信端末2は、通信端末1から離れた場所で使用され、すなわち、遠隔の通信端末である。   The information processing system includes a communication terminal 1 (first communication terminal) and a communication terminal 2 (second communication terminal). The communication terminal 2 is used at a place away from the communication terminal 1, that is, a remote communication terminal.

通信端末1は、ディジタルコンテンツの内容を記述した例えばHTMLファイルを読み込み、ファイルをDOMツリー10として記憶している。   The communication terminal 1 reads, for example, an HTML file describing the contents of digital content, and stores the file as a DOM tree 10.

DOMツリー10は、スクリプト15を含み、通信端末1のブラウザ(図示せず)がスクリプト15を実行することで、セレクタ受信部11と通信部14を含む処理部16が通信端末1に形成される。   The DOM tree 10 includes a script 15, and a processing unit 16 including the selector reception unit 11 and the communication unit 14 is formed in the communication terminal 1 when a browser (not shown) of the communication terminal 1 executes the script 15. .

セレクタ受信部11は、ダミーDOMオブジェクト生成部12を備え、通信部14は、セレクタ送信部141、メソッド名送信部142および返り値受信部143を備える。   The selector reception unit 11 includes a dummy DOM object generation unit 12, and the communication unit 14 includes a selector transmission unit 141, a method name transmission unit 142, and a return value reception unit 143.

ダミーDOMオブジェクト13は、ダミーDOMオブジェクト生成部12により生成され、メモリに格納される。   The dummy DOM object 13 is generated by the dummy DOM object generation unit 12 and stored in the memory.

通信端末2は、ディジタルコンテンツである例えばHTMLファイルをDOMツリー24として記憶している。通信端末2のブラウザ(図示せず)が所定のスクリプトを実行することで、通信部21とDOM探索部22を含む処理部26が通信端末2に形成される。通信部21は、セレクタ受信部211、メソッド名受信部212および返り値送信部213を備える。   The communication terminal 2 stores, for example, an HTML file as digital content as a DOM tree 24. When a browser (not shown) of the communication terminal 2 executes a predetermined script, a processing unit 26 including the communication unit 21 and the DOM search unit 22 is formed in the communication terminal 2. The communication unit 21 includes a selector reception unit 211, a method name reception unit 212, and a return value transmission unit 213.

DOMツリー24の一部分であるエレメントからDOMオブジェクト23が生成され、メモリに格納される。   A DOM object 23 is generated from an element that is a part of the DOM tree 24 and stored in a memory.

スクリプト15は、このエレメントを示す情報であるセレクタを含んでいる。   The script 15 includes a selector that is information indicating this element.

図1の構成は、通信端末1からDOMオブジェクト23を操作するためのものであるが、通信端末2から通信端末1のDOMオブジェクトも操作できるように、各通信端末1、2が処理部16、26を備えてもよい。   The configuration of FIG. 1 is for operating the DOM object 23 from the communication terminal 1, but the communication terminals 1 and 2 are connected to the processing unit 16, so that the communication terminal 2 can also operate the DOM object of the communication terminal 1. 26 may be provided.

図2は、通信端末1、2が行う通信の通信方式の例を示す図である。   FIG. 2 is a diagram illustrating an example of a communication method of communication performed by the communication terminals 1 and 2.

通信端末1、2は、例えばwebRTC等を利用したP2P双方向通信で通信する。または、通信端末1、2は、例えばWebSocket等を利用した非同期方向通信で通信する。または、通信端末1、2は、このような1:1の通信形態でなく、1:Nの通信形態で例えばWebSocket等を利用した非同期方向通信で通信する。   The communication terminals 1 and 2 communicate with each other by P2P bidirectional communication using, for example, webRTC. Alternatively, the communication terminals 1 and 2 communicate by asynchronous communication using, for example, WebSocket. Alternatively, the communication terminals 1 and 2 communicate in asynchronous communication using, for example, WebSocket in a 1: N communication form instead of such a 1: 1 communication form.

以下、情報処理システムの動作について説明する。   Hereinafter, the operation of the information processing system will be described.

セレクタ受信部11のダミーDOMオブジェクト生成部12は、スクリプト15からセレクタを受信する。   The dummy DOM object generation unit 12 of the selector reception unit 11 receives the selector from the script 15.

スクリプト15がセレクタ受信部11にセレクタを送信する際に、セレクタが遠隔の通信端末2に送信すべきものであることを識別しなければならない。そのためには、セレクタを条件(引数)によって識別したり、遠隔の通信端末2に送信すべきセレクタであることを明示的に示すメソッドを用意したり、様々な記法が考えられる。   When the script 15 transmits a selector to the selector receiver 11, it must be identified that the selector is to be transmitted to the remote communication terminal 2. For that purpose, various notations are conceivable, such as identifying a selector by a condition (argument), or preparing a method that explicitly indicates that the selector is to be transmitted to the remote communication terminal 2.

図3は、セレクタが‘body’の場合におけるセレクタの指定方法の一例を示す図である。   FIG. 3 is a diagram illustrating an example of a method for designating a selector when the selector is “body”.

符号31、32の例では、遠隔の通信端末2に送信すべきセレクタであることを明示的に示すべく、識別記号としてrmtやremoteという文字列を指定する。符号31の例のようにセレクタの接頭に‘rmt‘を付与したり、符号32の例のように第2引数として値’remote’を付与する。   In the examples of reference numerals 31 and 32, character strings such as rmt and remote are designated as identification symbols in order to explicitly indicate that the selector is to be transmitted to the remote communication terminal 2. As in the example of reference numeral 31, “rmt” is given to the prefix of the selector, and as in the example of reference numeral 32, the value “remote” is given as the second argument.

符号33、34の例では、遠隔の通信端末2に送信すべきセレクタであることを明示的に示すメソッドremote()やrmt()を用意し、それぞれの指定方法でメソッドを呼び出し、遠隔の通信端末2に送信すべきセレクタであることを明示する。   In the examples of reference numerals 33 and 34, methods remote () and rmt () that explicitly indicate that the selector is to be transmitted to the remote communication terminal 2 are prepared, and the method is called by each designation method to perform remote communication. It is clearly indicated that the selector is to be transmitted to the terminal 2.

ダミーDOMオブジェクト生成部12は、セレクタ受信部11がセレクタを受信した際、DOMオブジェクト23のインタフェースおよびメソッドを継承して有し且つ当該メソッドが呼び出された際に当該メソッドが当該メソッドのメソッド名および当該メソッドに引き渡される引数を返すように定義されたダミーDOMオブジェクト13を生成し、通信端末1のメモリに記憶させる。また、ダミーDOMオブジェクト生成部12は、セレクタ受信部11が受信したセレクタをセレクタ送信部141に送信する。   The dummy DOM object generation unit 12 inherits the interface and method of the DOM object 23 when the selector reception unit 11 receives the selector, and when the method is called, the method is called the method name and the method name. A dummy DOM object 13 defined to return an argument delivered to the method is generated and stored in the memory of the communication terminal 1. In addition, the dummy DOM object generation unit 12 transmits the selector received by the selector reception unit 11 to the selector transmission unit 141.

DOMオブジェクト23は、例えば基本的なエレメントインタフェースを備えたHTMLエレメントオブジェクトであり、ダミーDOMオブジェクト13は、このエレメントインタフェースを継承して有する。   The DOM object 23 is, for example, an HTML element object having a basic element interface, and the dummy DOM object 13 inherits this element interface.

または、DOMオブジェクト23は、通信端末1から遠隔の通信端末2で操作したいタグの種類やメソッドに応じて、独自の機能を備えたエレメントインタフェースを備え、ダミーDOMオブジェクト13は、このエレメントインタフェースを継承して有する。   Alternatively, the DOM object 23 has an element interface having a unique function according to the type and method of a tag that is desired to be operated from the communication terminal 1 to the remote communication terminal 2, and the dummy DOM object 13 inherits this element interface. Have.

例えば、「DIV」タグはHTMLDivエレメントオブジェクトであり、「VIDEO」タグはHTMLMediaエレメントオブジェクトであり、基本的なエレメントインタフェースに対して、それぞれ専用の機能や、メソッド、プロパティが追加されている。   For example, the “DIV” tag is an HTMLDiv element object, the “VIDEO” tag is an HTMLMedia element object, and a dedicated function, method, and property are added to the basic element interface.

ダミーDOMオブジェクト13がどのタグのオブジェクトを継承するかは、DOMツリー24を参照して手動で設定してもよいし、事前にDOMツリー24を解析して自動で指定してもよい。   Which tag object the dummy DOM object 13 inherits may be set manually with reference to the DOM tree 24, or may be automatically specified by analyzing the DOM tree 24 in advance.

また、DOMオブジェクト23は、例えばW3Cの仕様に準拠したものであるが、そうでなく、このDOMオブジェクトを包含し、機能を拡張したものでもよく(例えばjQueryオブジェクト)、ダミーDOMオブジェクト13は、このDOMオブジェクト23を継承してもよい。   The DOM object 23 is compliant with, for example, the W3C specification. However, the DOM object 23 may include the DOM object and have an extended function (for example, a jQuery object). The DOM object 23 may be inherited.

ダミーDOMオブジェクト13が有する各メソッドの内部は、ダミーDOMオブジェクト13を操作できないように書き換えられており、メソッドが呼び出された際に自信のメソッド名とその引数を通信部14に渡すように定義される。このダミーDOMオブジェクト13により、ディジタルコンテンツの制作者は、通信端末1のDOMオブジェクトのメソッドを呼び出す場合と同様にDOMオブジェクト23のメソッドを呼び出すことができる。   The inside of each method of the dummy DOM object 13 has been rewritten so that the dummy DOM object 13 cannot be operated, and is defined so that the method name and its argument are passed to the communication unit 14 when the method is called. The With this dummy DOM object 13, the creator of the digital content can call the method of the DOM object 23 in the same manner as when calling the method of the DOM object of the communication terminal 1.

DOMオブジェクト23は、DOMオブジェクトを内包するラッパーオブジェクトでもよく、ダミーDOMオブジェクト13は、このラッパーオブジェクトを継承したものでもよい。   The DOM object 23 may be a wrapper object that contains the DOM object, and the dummy DOM object 13 may be an inheritance of this wrapper object.

セレクタ送信部141は、ダミーDOMオブジェクト生成部12から受信したセレクタを通信端末2に送信する。   The selector transmission unit 141 transmits the selector received from the dummy DOM object generation unit 12 to the communication terminal 2.

メソッド名送信部142は、ダミーDOMオブジェクト13からメソッド名と引数を受信し、通信端末2に送信する。   The method name transmission unit 142 receives the method name and the argument from the dummy DOM object 13 and transmits them to the communication terminal 2.

なお、端末ごとの識別子や送信元の情報を送信してもよい。   Note that an identifier for each terminal and information on the transmission source may be transmitted.

セレクタ受信部211は、セレクタ送信部141からセレクタを受信し、DOM探索部22に送信する。   The selector reception unit 211 receives the selector from the selector transmission unit 141 and transmits the selector to the DOM search unit 22.

メソッド名受信部212は、メソッド名送信部142からメソッド名と引数を受信する。   The method name reception unit 212 receives a method name and an argument from the method name transmission unit 142.

DOM探索部22は、DOMツリー24からセレクタに対応するエレメントを検索し、エレメントからDOMオブジェクト23を生成し、通信端末2のメモリに記憶させる。   The DOM search unit 22 searches the DOM tree 24 for an element corresponding to the selector, generates a DOM object 23 from the element, and stores it in the memory of the communication terminal 2.

メソッド名受信部212は、受信したメソッド名に対応するメソッドをDOMオブジェクト23に実行させるとともに、受信した引数をメソッドに引き渡す。これにより、メソッドが引数に基づく処理を行い、場合によっては、処理で得た返り値を返り値送信部213に送信する。   The method name receiving unit 212 causes the DOM object 23 to execute a method corresponding to the received method name, and delivers the received argument to the method. Thus, the method performs processing based on the argument, and in some cases, the return value obtained by the processing is transmitted to the return value transmission unit 213.

返り値送信部213は、返り値を通信端末1に送信する。   The return value transmission unit 213 transmits the return value to the communication terminal 1.

返り値受信部143は、返り値送信部213から返り値を受信する。   The return value receiving unit 143 receives the return value from the return value transmitting unit 213.

例えば、セレクタに対応するエレメントがDOMツリー24にない場合、DOMオブジェクト23がメソッド名に対応するメソッドを実行できない場合、通信端末1に対してエラーが送信される。   For example, when there is no element corresponding to the selector in the DOM tree 24, if the DOM object 23 cannot execute the method corresponding to the method name, an error is transmitted to the communication terminal 1.

(実施例1)
次に、具体的な例を説明する。
Example 1
Next, a specific example will be described.

図4は、通信端末1で読み込まれるHTMLファイルとスクリプト(スクリプト15)の例を示す図であり、図5は、通信端末2で読み込まれるHTMLファイルとスクリプトの例を示す図である。   FIG. 4 is a diagram showing an example of an HTML file and a script (script 15) read by the communication terminal 1, and FIG. 5 is a diagram showing an example of an HTML file and a script read by the communication terminal 2.

図4において、JavaScript(登録商標)として実行される<script></script>タグで囲まれた範囲に記述されたコードがスクリプト15である。   In FIG. 4, a script 15 is a code described in a range surrounded by <script> </ script> tags executed as JavaScript (registered trademark).

図5において、remote.jsは、処理部16、26の機能を外部から通信端末2に提供するものであり、つまり、通信端末2は、図1とは異なり、処理部16、26を有する。   In FIG. js provides the functions of the processing units 16 and 26 to the communication terminal 2 from the outside. That is, the communication terminal 2 includes the processing units 16 and 26 unlike FIG.

また、本例では、セレクタを利用してDOMオブジェクト23を操作する方法として、jQueryライブラリで提供されるセレクタAPIを利用する。そのため、DOMオブジェクト23は、DOMオブジェクトを内包するラッパーオブジェクト(jQueryオブジェクト)である。よって、ダミーDOMオブジェクト13は、このjQueryオブジェクトを継承したものである。jQueryライブラリも外部スクリプトとして読み込まれる。   In this example, a selector API provided by the jQuery library is used as a method of operating the DOM object 23 using the selector. Therefore, the DOM object 23 is a wrapper object (jQuery object) that contains the DOM object. Therefore, the dummy DOM object 13 inherits this jQuery object. The jQuery library is also read as an external script.

図6は、DOMオブジェクト23を操作する前の通信端末1、2の画面を示す図である。   FIG. 6 is a diagram illustrating a screen of the communication terminals 1 and 2 before the DOM object 23 is operated.

図6(a)に示すように、通信端末1のブラウザは、図4のHTMLファイルを読み込んだ際、文字列「Local Device」と「Show Message」と表記されたボタンを表示する。   As shown in FIG. 6A, when the browser of the communication terminal 1 reads the HTML file of FIG. 4, the browser displays buttons labeled “String Device” and “Show Message”.

図6(b)に示すように、通信端末2のブラウザは、図5のHTMLファイルを読み込んだ際、文字列「Local Device」を表示する。   As shown in FIG. 6B, the browser of the communication terminal 2 displays the character string “Local Device” when the HTML file of FIG. 5 is read.

図6(a)のボタンが押されると、図4の$(”#remote”).rmt()が実行され、ダミーDOMオブジェクト生成部12がダミーDOMオブジェクト13を生成し、変数dummyに格納する。この場合、セレクタは、”#remote”であり、セレクタは通信端末2に送信される。   When the button in FIG. 6A is pressed, $ (“# remote”). rmt () is executed, and the dummy DOM object generation unit 12 generates a dummy DOM object 13 and stores it in the variable dummy. In this case, the selector is “#remote”, and the selector is transmitted to the communication terminal 2.

このセレクタにより、図5において<div id=”remote”>と表記されたエレメントが検索され、このエレメントからDOMオブジェクト23が生成される。   By this selector, an element represented as <div id = “remote”> in FIG. 5 is searched, and a DOM object 23 is generated from this element.

ダミーDOMオブジェクト13は、jQueryオブジェクトのメソッド名を継承したオブジェクトであるので、dummyはjQueryオブジェクトのメソッドであるappend()を呼び出すことができる。append()は、継承の際、本来の動作を実行しないように書き換えられており、メソッド名”append”とその引数”<h2>This is displayed on the remote device</h2>”を返し、このメソッド名と引数は通信端末2に送信される。   Since the dummy DOM object 13 is an object that inherits the method name of the jQuery object, dummy can call append () that is a method of the jQuery object. append () has been rewritten so as not to execute the original operation at the time of inheritance, and returns the method name “append” and its argument “<h2> This is displayed on the remote device </ h2>”. The method name and argument are transmitted to the communication terminal 2.

通信端末2では、DOMオブジェクト23が、このメソッド名に対応するメソッドを実行し、メソッドは、引数に応じた処理を行う。   In the communication terminal 2, the DOM object 23 executes a method corresponding to this method name, and the method performs processing according to the argument.

図7は、このようにDOMオブジェクト23を操作した後の通信端末1、2の画面を示す図である。   FIG. 7 is a diagram showing a screen of the communication terminals 1 and 2 after operating the DOM object 23 in this way.

図7(a)に示すように、通信端末1の画面はDOMオブジェクト23の操作前と同じである。   As shown in FIG. 7A, the screen of the communication terminal 1 is the same as before the operation of the DOM object 23.

図7(b)に示すように、通信端末1の画面には、DOMオブジェクト23の操作の結果、文字列「This is displayed on the remote device」が追加されている。   As illustrated in FIG. 7B, a character string “This is displayed on the remote device” is added to the screen of the communication terminal 1 as a result of the operation of the DOM object 23.

(実施例2)
次に、別の具体的な例を説明する。
(Example 2)
Next, another specific example will be described.

本実施の形態の技術を活用すれば、スマートフォンを通信端末1とし、PC(パーソナルコンピュータ)やテレビを通信端末2とし、スマートフォンでのタップ操作で、PC(パーソナルコンピュータ)やテレビの画面を操作できる。   If the technology of the present embodiment is utilized, a smartphone can be used as the communication terminal 1, a PC (personal computer) or television can be used as the communication terminal 2, and a PC (personal computer) or television screen can be operated by a tap operation on the smartphone. .

図8は、PCやテレビの画面とスマートフォンの画面を示す図である。   FIG. 8 is a diagram showing a screen of a PC or television and a screen of a smartphone.

PC等は、動画共有サイトにアクセスしており、画面には、動画を表示する領域、動画の再生や停止を制御するコントローラ、動画を全画面表示にするボタン、関連動画を表示するボタンが表示される。   A PC etc. is accessing a video sharing site, and the screen displays an area for displaying the video, a controller for controlling playback and stop of the video, a button for displaying the video in full screen, and a button for displaying related videos. Is done.

スマートフォンの画面には、動画の再生や停止を制御するコントローラ、動画を全画面表示にするボタン、関連動画を表示するボタンが表示される。   On the screen of the smartphone, a controller for controlling playback and stop of the moving image, a button for displaying the moving image in full screen, and a button for displaying the related moving image are displayed.

コントローラ同士、全画面表示にするボタン同士、関連動画を表示するPC等とスマートフォンのボタン同士は関連づけられている。   Controllers, buttons for full screen display, PCs for displaying related videos, and smartphone buttons are associated with each other.

例えば、スマートフォンにおいて全画面表示にするボタンを押すと、これに関連するボタン、つまりPC等において全画面表示にするボタンが押されたことなり、動画が全画面表示される。   For example, when a button for full screen display is pressed on a smartphone, a button related thereto, that is, a button for full screen display on a PC or the like is pressed, and a moving image is displayed on the full screen.

図9は、スマートフォン(通信端末1)で読み込まれるHTMLファイルとスクリプト(スクリプト15)の例を示す図であり、図10は、PC等(通信端末2)で読み込まれるHTMLファイルとスクリプトの例を示す図である。   9 is a diagram showing an example of an HTML file and a script (script 15) read by a smartphone (communication terminal 1), and FIG. 10 is an example of an HTML file and a script read by a PC or the like (communication terminal 2). FIG.

図10において、<button type=button id=”full” on click=”fullScreen()”>と表記されるエレメントは、PC等の画面における全画面表示にするボタンを示すものであり、識別するidとして”full”が割り振られている。全画面表示にするボタンを押すとfullScreenと称されるメソッドが呼び出される。このメソッドは動画を全画面表示する機能を備える。   In FIG. 10, an element described as <button type = button id = “full” on click = “fullScreen ()”> indicates a button for full-screen display on a screen such as a PC, and is an identifying id As “full”. When a button for full screen display is pressed, a method called fullscreen is called. This method has the ability to display a moving image in full screen.

図9において、<button type=button on click=”btnClicked()”>と表記されるエレメントは、スマートフォンの画面における全画面表示にするボタンを示すものであり、全画面表示にするボタンを押すとbtnClickedと称されるメソッドが呼び出される。このメソッドは、PC等のDOMオブジェクト23を操作し、PC等の画面における全画面表示にするボタンを押すイベントを呼び出し、全画面表示を実行させる。   In FIG. 9, an element represented as <button type = button on click = “btnClicked ()”> indicates a button for full screen display on a smartphone screen. When the button for full screen display is pressed, A method called btnClicked is called. This method operates a DOM object 23 such as a PC, calls an event for pressing a button for full screen display on a screen such as a PC, and executes full screen display.

具体的には、スマートフォンの画面における全画面表示にするボタンが押されると、図9の$(”#full”).rmt()が実行され、ダミーDOMオブジェクト生成部12がダミーDOMオブジェクト13を生成し、変数dummyに格納する。この場合、セレクタは、”#full”であり、セレクタは通信端末2に送信される。   Specifically, when the button for full screen display on the screen of the smartphone is pressed, $ (“# full”). rmt () is executed, and the dummy DOM object generation unit 12 generates a dummy DOM object 13 and stores it in the variable dummy. In this case, the selector is “#full”, and the selector is transmitted to the communication terminal 2.

このセレクタにより、図10において、<button type=button id=”full” on click=”fullScreen()”>と表記されるエレメントが検索され、このエレメントからDOMオブジェクト23が生成される。   With this selector, an element represented as <button type = button id = “full” on click = “fullScreen ()”> in FIG. 10 is searched, and a DOM object 23 is generated from this element.

ダミーDOMオブジェクト13は、jQueryオブジェクトのメソッド名を継承したオブジェクトであるので、dummyはjQueryオブジェクトのメソッドであるclick()を呼び出すことができる。click()のメソッド名は、PC等に送信される。   Since the dummy DOM object 13 is an object inheriting the method name of the jQuery object, dummy can call click () that is a method of the jQuery object. The method name of click () is transmitted to the PC or the like.

PC等では、DOMオブジェクト23が、このメソッド名に対応するメソッドであるclick()を実行し、メソッドは処理を行う。これにより、PC等において動画が全画面表示される。   In a PC or the like, the DOM object 23 executes click () that is a method corresponding to this method name, and the method performs processing. Thereby, the moving image is displayed on the full screen on a PC or the like.

以上のように、本実施の形態に係る情報処理システムによれば、通信端末2すなわち遠隔の通信端末では、通信端末に保持されたDOMツリーに含まれるエレメントから生成されたDOMオブジェクトのメソッドが実行されるので、不正なコードや誤ったコードが通信端末に送信される虞がなく、よってセキュリティが確保され、また、DOMオブジェクトのメソッドを実行させることができる。   As described above, according to the information processing system according to the present embodiment, the communication terminal 2, that is, the remote communication terminal, executes the method of the DOM object generated from the element included in the DOM tree held in the communication terminal. Therefore, there is no possibility that an illegal code or an incorrect code is transmitted to the communication terminal, so that security is ensured and the method of the DOM object can be executed.

なお、通信端末1、2を動作させるための情報処理プログラム(コンピュータプログラム)は、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に記録でき、また、インターネットなどの通信網を介して伝送させて、広く流通させることができる。   An information processing program (computer program) for operating the communication terminals 1 and 2 can be recorded on a computer-readable recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, a magnetic tape, and the Internet. It can be widely distributed by being transmitted through a communication network such as

1、2…通信端末
10、24…DOMツリー
11…セレクタ受信部
12…オブジェクト生成部
13…ダミーDOMオブジェクト
14、21…通信部
15…スクリプト
16、26…処理部
22…DOM探索部
23…DOMオブジェクト
141…セレクタ送信部
142…メソッド名送信部
143…返り値受信部
211…セレクタ受信部
212…メソッド名受信部
213…返り値送信部
DESCRIPTION OF SYMBOLS 1, 2 ... Communication terminal 10, 24 ... DOM tree 11 ... Selector receiving part 12 ... Object generation part 13 ... Dummy DOM object 14, 21 ... Communication part 15 ... Script 16, 26 ... Processing part 22 ... DOM search part 23 ... DOM Object 141 ... selector transmission unit 142 ... method name transmission unit 143 ... return value reception unit 211 ... selector reception unit 212 ... method name reception unit 213 ... return value transmission unit

Claims (7)

第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、
前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信し、
前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、
前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信する
ことを特徴とする情報処理方法。
The first communication terminal reads a file describing the contents of the digital content, stores the file as a DOM tree,
The first communication terminal is a selector indicating an element that is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the first communication terminal by the DOM tree. Obtain the method name of the method to be executed and the argument to be passed to the method, and send it to the second communication terminal.
The second communication terminal searches for an element corresponding to the selector from the DOM tree held in the second communication terminal, generates a DOM object from the element, stores it in the second communication terminal,
When the second communication terminal causes the DOM object to execute the method corresponding to the method name and passes the argument to the method, and if a return value is obtained by processing by the method, the return value is An information processing method characterized by transmitting to one communication terminal.
第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、
前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第1の通信端末と異なる第2の通信端末に送信する
ことを特徴とする情報処理方法。
The first communication terminal reads a file describing the contents of the digital content, stores the file as a DOM tree,
The first communication terminal is a selector indicating an element that is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the first communication terminal by the DOM tree. An information processing method comprising: obtaining a method name of a method to be executed and an argument to be transferred to the method, and transmitting the method name to a second communication terminal different from the first communication terminal.
前記第1の通信端末が、前記DOMオブジェクトのインタフェースおよびメソッドを継承して有し且つ当該メソッドが呼び出された際に当該メソッドが当該メソッドのメソッド名および当該メソッドに引き渡される引数を返すように定義されたダミーDOMオブジェクトを生成し、当該メソッドを呼び出し、前記第2の通信端末に送信すべきメソッド名と引数を当該メソッドから得る
ことを特徴とする請求項1または2記載の情報処理方法。
Defined so that the first communication terminal inherits the interface and method of the DOM object and returns the method name of the method and an argument passed to the method when the method is called The information processing method according to claim 1 or 2, wherein a dummy DOM object is generated, the method is called, and a method name and an argument to be transmitted to the second communication terminal are obtained from the method.
第1の通信端末と異なる第2の通信端末が、当該第2の通信端末に保持されたDOMツリーの部分であるエレメントを示すセレクタ、当該エレメントから生成されるDOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を前記第1の通信端末から受信し、
前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、
前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信する
ことを特徴とする情報処理方法。
The second communication terminal that is different from the first communication terminal has a selector indicating an element that is a part of the DOM tree held in the second communication terminal, and a method name of a method that is executed by the DOM object generated from the element. And an argument delivered to the method from the first communication terminal,
The second communication terminal searches for an element corresponding to the selector from the DOM tree held in the second communication terminal, generates a DOM object from the element, stores it in the second communication terminal,
When the second communication terminal causes the DOM object to execute the method corresponding to the method name and passes the argument to the method, and if a return value is obtained by processing by the method, the return value is An information processing method characterized by transmitting to one communication terminal.
通信端末であって、
ディジタルコンテンツの内容を記述したファイルをDOMツリーとして記憶する手段と、
前記DOMツリーにより、当該通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信する手段と
を備えることを特徴とする通信端末。
A communication terminal,
Means for storing a file describing the contents of digital content as a DOM tree;
By the DOM tree, a selector indicating an element that is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the communication terminal, a method name of a method to be executed by the DOM object, and the method are delivered to the method. Means for obtaining an argument and transmitting it to the second communication terminal.
第1の通信端末と異なる第2の通信端末としての通信端末であって、
当該第2の通信端末に保持されたDOMツリーの部分であるエレメントを示すセレクタ、当該エレメントから生成されるDOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を前記第1の通信端末から受信する手段と、
当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成する手段と、
当該DOMオブジェクトを記憶する手段と、
当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡す手段と、
当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信する手段と
を備えることを特徴とする通信端末。
A communication terminal as a second communication terminal different from the first communication terminal,
From the first communication terminal, a selector indicating an element that is a part of the DOM tree held in the second communication terminal, a method name of a method to be executed by the DOM object generated from the element, and an argument to be passed to the method are sent from the first communication terminal. Means for receiving;
Means for searching an element corresponding to the selector from the DOM tree held in the second communication terminal, and generating a DOM object from the element;
Means for storing the DOM object;
Means for causing the DOM object to execute a method corresponding to the method name and passing the argument to the method;
A communication terminal comprising: means for transmitting the return value to the first communication terminal when a return value is obtained by processing by the method.
第1の通信端末が、ディジタルコンテンツの内容を記述したファイルを読み込み、前記ファイルをDOMツリーとして記憶し、
前記第1の通信端末が、前記DOMツリーにより、前記第1の通信端末と異なる第2の通信端末で生成されるDOMオブジェクトに対応するDOMツリーの部分であるエレメントを示すセレクタ、当該DOMオブジェクトに実行させるメソッドのメソッド名ならびに当該メソッドに引き渡す引数を得て、前記第2の通信端末に送信し、
前記第2の通信端末が、当該第2の通信端末に保持されたDOMツリーから当該セレクタに対応するエレメントを検索し、当該エレメントからDOMオブジェクトを生成し、当該第2の通信端末に記憶し、
前記第2の通信端末が、当該メソッド名に対応するメソッドを当該DOMオブジェクトに実行させるとともに当該引数を当該メソッドに引き渡し、当該メソッドによる処理で返り値が得られた場合、当該返り値を前記第1の通信端末に送信する
ように前記第1の通信端末と前記第2の通信端末を動作させるための情報処理プログラム。
The first communication terminal reads a file describing the contents of the digital content, stores the file as a DOM tree,
The first communication terminal is a selector indicating an element that is a part of a DOM tree corresponding to a DOM object generated by a second communication terminal different from the first communication terminal by the DOM tree. Obtain the method name of the method to be executed and the argument to be passed to the method, and send it to the second communication terminal.
The second communication terminal searches for an element corresponding to the selector from the DOM tree held in the second communication terminal, generates a DOM object from the element, stores it in the second communication terminal,
When the second communication terminal causes the DOM object to execute the method corresponding to the method name and passes the argument to the method, and if a return value is obtained by processing by the method, the return value is An information processing program for operating the first communication terminal and the second communication terminal to transmit to one communication terminal.
JP2014153586A 2014-07-29 2014-07-29 Information processing method, communication terminal, and computer program Active JP6178764B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014153586A JP6178764B2 (en) 2014-07-29 2014-07-29 Information processing method, communication terminal, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014153586A JP6178764B2 (en) 2014-07-29 2014-07-29 Information processing method, communication terminal, and computer program

Publications (2)

Publication Number Publication Date
JP2016031636A JP2016031636A (en) 2016-03-07
JP6178764B2 true JP6178764B2 (en) 2017-08-09

Family

ID=55441980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014153586A Active JP6178764B2 (en) 2014-07-29 2014-07-29 Information processing method, communication terminal, and computer program

Country Status (1)

Country Link
JP (1) JP6178764B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6886169B2 (en) * 2002-11-19 2005-04-26 Nexaweb Technologies, Inc. System and method for stateful web-based computing
US8239939B2 (en) * 2005-07-15 2012-08-07 Microsoft Corporation Browser protection module
US20090063530A1 (en) * 2007-09-04 2009-03-05 Lg Telecom Ltd. System and method for mobile web service
WO2014042158A1 (en) * 2012-09-11 2014-03-20 日本電信電話株式会社 Content display device, content display system, data structure, content display method, and content display program

Also Published As

Publication number Publication date
JP2016031636A (en) 2016-03-07

Similar Documents

Publication Publication Date Title
US11112942B2 (en) Providing content via multiple display devices
US20180143950A1 (en) Interactive communication via online video systems
US9448776B1 (en) Method and apparatus for converting a website into a native mobile application
JP6253110B2 (en) Using the application cache to update installed application resources
US11882180B2 (en) Dynamic content and cloud based content within collaborative electronic content creation and management tools
JP6543617B2 (en) Application execution method and apparatus in wireless communication system
JP6702950B2 (en) Method and system for multimedia content
US20120210205A1 (en) System and method for using an application on a mobile device to transfer internet media content
US10601600B2 (en) Method and system for sharing content files using a computer system and data network
US20120204093A1 (en) Providing web-based content to local device
US20150082386A1 (en) Method and system for sharing content files using a computer system and data network
US9426202B2 (en) Transforming application cached template using personalized content
US20130054760A1 (en) Data upload method using shortcut
US20110010615A1 (en) Method for displaying information generated by a client
CN113076294A (en) Information sharing method and device
TWI435226B (en) A method of reading a system, a terminal, an image server, a computer program product, a terminal, and an image server
US20160117520A1 (en) Method and system for sharing content files using a computer system and data network
JP2017527872A (en) Cloud streaming service providing method, apparatus and system therefor, and computer-readable recording medium on which cloud streaming script code is recorded
JP6178764B2 (en) Information processing method, communication terminal, and computer program
JP2010262548A (en) Data provision method and server
US11451871B2 (en) Electronic device for providing information related to bookmarked content, and method for controlling electronic device
JP2009026013A (en) Content registration/provision device, content registration/provision control method, and content registration/provision control program
US20080148162A1 (en) Device for Providing User Interface According to Markup-Language Document
KR101955460B1 (en) System and method for providing multimedia player using by web browser
JP2009076099A (en) Service providing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170621

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170711

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170714

R150 Certificate of patent or registration of utility model

Ref document number: 6178764

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150