JavaScript の使い方

Similar documents

paper.pdf

ストラドプロシージャの呼び出し方

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

JavaScript 演習 2 1

ch31.dvi

JavaScript演習

インターネットマガジン2001年9月号―INTERNET magazine No.80

untitled

JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2


_IMv2.key

~/WWW-local/compIID (WWW IID ) $ mkdir WWW-local $ cd WWW-local $ mkdir compiid 3. Emacs index.html n (a) $ cd ~/WWW/compIID

SVG資料第6回目(その3) SVGとHTMLの間でデータを交換する


m_sotsuron

Web±ÜÍ÷¤Î³Ú¤·¤µ¤ò¹â¤á¤ëWeb¥Ú¡¼¥¸²Äݲ½¥·¥¹¥Æ¥à

AJAXを使用した高い対話性を誇るポートレットの構築

インターネットマガジン1999年11月号―INTERNET magazine No.58

ProVisionaire Control V3.0セットアップガイド

untitled

インターネットマガジン2000年9月号―INTERNET magazine No.68

経営論集2011_07_小松先生.indd

JavaScript演習

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web

インターネットマガジン1999年7月号―INTERNET magazine No.54

r3.dvi

CodeIgniter Con 2011, Tokyo Japan, February

Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool

SVG資料第10回目(その2) Ajaxによる同期通信と非同期通信の違い

JavaScript¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

オンラインテスト

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

1. はじめにこのドキュメントは IBMi 上のデータを HTML のテーブルで表示するためのカスタマイズ方法について説明するものです この手法を用いることで スムーズなスクロールによる照会画面 (HTML のテーブル ) を 5250 画面に挿 することが出来ます ( 下図参照 ) なお このドキ

Oracle Lite Tutorial

19 3!! (+) (>) (++) (+=) for while 3.1!! (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics;

インターネットマガジン1996年12月号―INTERNET magazine No.23

Complex Lab – Operating Systems - Graphical Console

16 (2) 23 - <div class="col-12 col-md-4"> </div> 23 + <div class="col-12 col-md-4 bg-info text-white text-md-right"> </div> HTML bg-info #17

Java演習(4) -- 変数と型 --

K227 Java 2

Lotus Domino XML活用の基礎!

VB.NETコーディング標準

CSS

. IDE JIVE[1][] Eclipse Java ( 1) Java Platform Debugger Architecture [5] 3. Eclipse GUI JIVE 3.1 Eclipse ( ) 1 JIVE Java [3] IDE c 016 Information Pr

_勉強会_丸山さつき_v3


java_servlet2_見本

10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false

3 Powered by mod_perl, Apache & MySQL use Item; my $item = Item->new( id => 1, name => ' ', price => 1200,

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

インターネットマガジン2001年4月号―INTERNET magazine No.75

ORCA (Online Research Control system Architecture)

B2-Servlet-0112.PDF

07_経営論集2010 小松先生.indd

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

Microsoft PowerPoint - Lecture_3

新・明解Java入門


インターネットマガジン1999年10月号―INTERNET magazine No.57

Java演習(9) -- クラスとメソッド --

Transcription:

JavaScript Release10.5 JavaScript NXJ JavaScript JavaScript JavaScript 2 JavaScript JavaScript JavaScript NXJ JavaScript 1: JavaScript 2: JavaScript 3: JavaScript 4: 1

1: JavaScript JavaScript NXJ Static Content > JavaScript.js // Writes the current time in the clock <div> function setclock() { var time = new Date(); var hours = time.gethours(); var minutes = time.getminutes(); minutes=((minutes < 10)? "0" : "") + minutes; var seconds = time.getseconds(); seconds=((seconds < 10)? "0" : "") + seconds; document.getelementbyid('clock').innerhtml = hours + ":" + minutes + ":" + seconds; //set a timer to change the clock every second timer = settimeout("setclock()",1000); // Renders the clock <div> to the HTML document function drawclock() { document.write("<div id='clock'></div>"); setclock(); clock.js NXJ 2: JavaScript JavaScript JavaScript Unify NXJ JavaScript 2

X JavaScript Java 3: JavaScript 3 JavaScript Includes JavaScript Links Includes JavaScript Includes Select JavaScript Files JavaScript clock.js OK JavaScript JavaScript JavaScript JavaSctipt JavaScript JavaScript HTML drawclock() drawclick() OK Unify NXJ JavaScript 3

Links JavaScript Links Style Sheet JavaScript 1 default.css 4: JavaScript JavaScript NXJ JavaScript JavaScript JavaScript 2 JavaScript : JavaScript NXJ JavaScript Unify NXJ JavaScript 4

JavaScript : JavaScript NXJ JavaScript 3 JavaScript JavaBean JavaBean NXJ JavaScript BeanInfo BeanInfo NXJ JavaScript JavaScript 1: JavaScript 2: JavaBean 3: BeanInfo 4: 5: Unify NXJ JavaScript 5

1: JavaScript JavaScript div document.write div getvalue setvalue 1 true false getvalue/setvalue JavaScript 1. NXJ > JavaScript 2. Classes > JavaScript Field JavaScript Unify NXJ JavaScript 6

JavaScript JavaScript 3. JavaScript JavaScript NXJ JavaScript 1 div getvalue setvalue registercomponent registercomponent Unify NXJ JavaScript 7

4. JavaScript function Spinner(divName) { this.div = window.document.getelementbyid(divname); if (this.div) { this.div.getvalue = Spinner.prototype.getValue; this.div.setvalue = Spinner.prototype.setValue; this.div.entervalue = Spinner.prototype.enterValue; this.div.value = 0; // add other code to create the element var parentdiv; if (this.div.parentnode) parentdiv = this.div.parentnode; Unify NXJ JavaScript 8

else if (this.div.parentelement) parentdiv = this.div.parentelement; var divwidth = parentdiv.style.width.slice(0,-2); var index = document.images.length; document.write( <table cellpadding= 0 cellspacing= 0 border= 0 ><tr><td rowspan= 2 > ); document.write( <input style= float: left; width: + (divwidth - 11) + px type= text name= + divname + input id= + divname + input > ); document.write( </td><td> ); document.write( <a href= about:blank + onclick= document.images[ + index + ]._sp.onclickup(); return false; + onmousedown= document.images[ + index + ].src =../Static_Content/SpinnerUpPressed.png ; + onmouseup= document.images[ + index + ].src =../Static_Content/SpinnerUpUnpressed.png ; + onmouseout= document.images[ + index + ].src =../Static_Content/SpinnerUpUnpressed.png ; + id= + divname + up > ); document.write( <img src=../static_content/spinnerupunpressed.png + style= width: 11px; height: 11px; border: none > ); document.write( </a></td></tr><tr><td> ); document.write( <a href= about:blank + onclick= document.images[ + (index + 1) + ]._sp.onclickdown(); return false; + onmousedown= document.images[ + (index + 1) + ].src =../Static_Content/SpinnerDownPressed.png ; + onmouseup= document.images[ + (index + 1) + ].src =../Static_Content/SpinnerDownUnpressed.png ; + onmouseout= document.images[ + (index + 1) + ].src =../Static_Content/SpinnerDownUnpressed.png ; + id= + divname + down > ); document.write( <img src=../static_content/spinnerdownunpressed.png + style= width: 11px; height: 11px; border: none > ); document.write( </a></td></tr></table> ); document.images[index]._sp = this; document.images[index + 1]._sp = this; this.div.textfield = document.all[divname + input ]; Spinner.prototype.getValue = function() { return this.textfield.value; Spinner.prototype.setValue = function(value) { this.textfield.value = value; Spinner.prototype.enterValue = function() { // add code to get input value from the user // We are using a standard text field as the main object in our Unify NXJ JavaScript 9

// Javascript component, so this is not needed. Spinner.prototype.onClickUp = function() { this.div.textfield.value++; Spinner.prototype.onClickDown = function() { this.div.textfield.value--; 5. > JavaScript Java JavaScript NXJ 2: JavaBean JavaScript JavaBean JavaBean Swing getinstantiationcode JavaScrip getinstantiationcode bean 1 NXJ JavaBean Unify NXJ JavaScript 10

JavaBean package <package name of component>; import <name of base class's bean>; class <component name>bean extends < base class' bean> { JavaBean NXJ JavaBean JavaBean JavaBean Background Font JavaScript JavaBean BeanInfo JavaBean jbiz <div> <script language="javascript"> snippet returned by getinstantiationcode </script> </div> div Background Foreground Width Height NXJ getinstantiationcode $DIV div Unify NXJ JavaScript 11

3: BeanInfo BeanInfo JavaBean Java Beans BeanInfo JavaBeans 1 JavaScript NXJ BeanInfo JavaScript JavaScript BeanInfo NXJ BeanInfo BeanInfo BeanInfo NXJ BeanInfo BeanInfo bean Java bean JavaScript NXJ BeanInfo BeanInfo Static Content NXJ 3 Swing NXJ NXJ 4: JavaScript 1. NXJ JavaScript 2. Unify NXJ JavaScript 12

3. JavaScript 4. JavaBean JavaBean JavaBean JavaScript Background Font Component Properties BeanInfo BeanInfo NXJ BeanInfo JavaBean NXJ bean bean bean Unify NXJ JavaScript 13

JavaScript NXJ Target Field BeanInfo NXJ bean NXJ 5: Unify NXJ JavaScript 14