ãPerfect Ajaxã-Webã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããæ°ããã¢ãããŒããWebãµãŒããŒã¯1è¡ã®HTMLã³ãŒããçæãããWebãµãŒãã¹ãéããŠã®ã¿å€éšãšããåãããŸãã ã¯ã©ã€ã¢ã³ãã€ã³ã¿ãŒãã§ã€ã¹ã¯ãã¯ã©ã€ã¢ã³ãHTMLãCSSãJavaScriptã«åºã¥ããŠã®ã¿å®è£
ãããŸãã
ãã®èšäºã¯2ã€ã®éšåã§æ§æãããŠããŸãã æåã®éšå-ãã掻çºã§æçºçãªãç§ã¯åé¡ã«èå³ãæã¡ãPerfect Ajaxãã¯ãããžãŒã«ã€ããŠè©±ããããããžã§ã¯ããSynthesis Interactive Knowledge Testing SystemãïŒãµãŒããŒåŽJavaScriptã®äœ¿çšãªã©ãå€ãã®èå³æ·±ãæ©èœãåããMozilla Rhinoãã©ãããã©ãŒã ããããã¿ã€ãæåã®ORMãããã³ã»ãã³ãã£ãã¯Webã®ã¯ãšãªèšèªã§ããSPARQLã®ãµããŒãïŒã
第äºéš-ããéå±ãªãã®ã¯å€ãã®æè¡çãªè©³çŽ°ãå«ãŸããŠããã次åãªãªãŒã¹ãããŸãã
è¯ãäŒçµ±ã«ããã°ã建èšçãªæ¹è©å®¶ãå«ãè°è«ã®ãã¹ãŠã®åå è
ã«ãã©ã¹ãæäžããŸããããã®æèŠã«ã¯åæããŸãããæšæž¬ããŠã¿ãŠãã ããïŒWebã¢ããªã±ãŒã·ã§ã³ã¯ã©ã®ã¢ãŒããã¯ãã£ã«å±ããŸããïŒ
ã¯ã©ã€ã¢ã³ããµãŒããŒãšéä¿¡ããŸããïŒ ç§ã¯ããªãããã®ããã«çããããšãæåŸ
ããŸãã:-)
ããŠããããç解ããŸãããã ã¯ã©ã€ã¢ã³ã/ãµãŒããŒã¢ãŒããã¯ãã£ã«ã¯ã次ã®ãã®ããããŸãã
- ãµãŒã㌠- ããŒã¿ã®ä¿åãšã¢ããªã±ãŒã·ã§ã³ã®ããžãã¹ããžãã¯ã®å®è£
ãæ
åœããŸãã
- ã¯ã©ã€ã¢ã³ã - ãŠãŒã¶ãŒãšã®å¯Ÿè©±ãæ
åœããŸã [1] ã
ãµãŒããŒã§ã®ããžãã¹ããžãã¯ã®å®è£
ãšã¯ã©ã€ã¢ã³ãã§ã®ãŠãŒã¶ãŒã€ã³ã¿ã©ã¯ã·ã§ã³ã¯æ確ã«åé¢ãããŠããŸãã
ã¯ã©ã€ã¢ã³ã/ãµãŒããŒã¢ãŒããã¯ãã£ã®å©ç¹ã¯æããã§ãã ç§ãã¡ã¯çããããç¥ã£ãŠããŸãïŒ
- ããžãã¹ããžãã¯ã¯ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãšæ··ããåããŸããã
- ã³ãã³ãã©ã€ã³ã€ã³ã¿ãŒãã§ã€ã¹ããŠã£ã³ããŠåãããWindowsã€ã³ã¿ãŒãã§ã€ã¹ãFlashãWebã€ã³ã¿ãŒãã§ã€ã¹ãã¢ãã€ã«ã€ã³ã¿ãŒãã§ã€ã¹ãªã©ãããŸããŸãªãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã§è€æ°ã®ã¯ã©ã€ã¢ã³ããå®è£
ã§ããŸãã
- ã¯ã©ã€ã¢ã³ãã³ã³ãã¥ãŒã¿ãŒã¯ãªãœãŒã¹éçŽåã§ã¯ãããŸããã
- ç
ããããWebã¢ããªã±ãŒã·ã§ã³ã¯ã¯ã©ã€ã¢ã³ããµãŒããŒã¢ãŒããã¯ãã£ã«é¢é£ããŠããŸããïŒ
å®éãWebã¢ããªã±ãŒã·ã§ã³ã«ã¯ãã¢ããªã±ãŒã·ã§ã³ã®ããžãã¹ããžãã¯ãæ
åœãããµãŒããŒããããŸãã
ãããïŒ ã€ã³ã¿ãŒãã§ã€ã¹ã®å®è£
ã¯ã¯ã©ã€ã¢ã³ãã®è²¬ä»»ã§ã¯ãªãããµãŒããŒã®è²¬ä»»ã§ããããŸãã ã¯ã©ã€ã¢ã³ãã¯ã¯ã©ã€ã¢ã³ããã©ãŒã ãåŠçããŠããŸãã ãµãŒããŒã¯ããŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã®HTMLã³ãŒããçæããŸãã
ã¯ã©ã€ã¢ã³ããã€ãŸã ãã©ãŠã¶ã¯ãã€ã³ã¿ãŒãã§ãŒã¹ã®æ¢è£œã®HTMLã³ãŒãã®ã¿ãèŠèŠåããŸãã å®éãããã¯ã¢ãã¿ãŒããµãŒããŒã«æ¥ç¶ãããã®ã¢ãã¿ãŒãã¯ã©ã€ã¢ã³ãã«å®£èšããããšãšåãã§ã...
泚ïŒ
ãã ããããã«ã¯åŸ®åŠãªç¹ã1ã€ãããŸãã 2ã€ã®æŠå¿µãåºå¥ããå¿
èŠããããŸãïŒWebã¢ããªã±ãŒã·ã§ã³ãšãã©ãŠã¶ãŒWebãµãŒããŒã·ã¹ãã ã Javaã¢ããªã±ãŒã·ã§ã³ã JVM å
ã§å®è¡ãããã®ãšåæ§ã«ãWebã¢ããªã±ãŒã·ã§ã³ã¯ãã©ãŠã¶ãšWebãµãŒããŒäžã§å®è¡ãã ã.Netã¢ããªã±ãŒã·ã§ã³ã¯ .Net Framework å
ã§å®è¡ããã HTTP 㯠TCP / IP äžã§å®è¡ãããŸãã
ãã©ãŠã¶WebãµãŒããŒã·ã¹ãã ã«ã¯å®éã«ã¯ã©ã€ã¢ã³ããµãŒããŒã¢ãŒããã¯ãã£ããããŸããWebãµãŒããŒã¯ãªã¯ãšã¹ããåä¿¡ããŠââåŠçãããã©ãŠã¶ã¯çµæãèŠèŠåããŸãã
ãã ããããã§ã¯ããã©ãŠã¶-WebãµãŒããŒãã·ã¹ãã ã«ã€ããŠã§ã¯ãªãããã®å
éšã§å®è¡ãããWebã¢ããªã±ãŒã·ã§ã³ã«ã€ããŠèª¬æããŸãã
ãã®ã¢ãããŒããæ¬æ Œçãªã¯ã©ã€ã¢ã³ã/ãµãŒããŒã¢ãŒããã¯ãã£ãšåŒã°ããããšã¯ãŸããããŸããã ããã«ã¯å€ãã®æ¬ ç¹ããããŸãïŒ
- ããžãã¹ããžãã¯ãšãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã®æ··åã
- è€æ°ã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãå®è£
ããããšã¯å°é£ã§ãã
- ãµãŒãããŒãã£ã®ããã°ã©ã ã¯ãµãŒããŒã«ã¢ã¯ã»ã¹ã§ããŸããïŒç¹å¥ãªAPIãèšè¿°ãããŠããªãéãïŒã
- ã€ã³ã¿ãŒãã§ã€ã¹ã®åŠçã®è² è·ã®ã»ãšãã©ã¯ãµãŒããŒã«ãããŸãã
- ç
ããããç§ãã¡ã¯æŽå²çã«ãã®ãããªã¢ãŒããã¯ãã£ã®äŸãç¥ã£ãŠããŸãã ã¡ã€ã³ãã¬ãŒã ã¯70幎代ã«äžè¬çã§ããã ã¡ã€ã³ãã¬ãŒã ã¯ãã¯ãŒã¯ã¹ããŒã·ã§ã³ïŒã¯ã©ã€ã¢ã³ãïŒãæ¥ç¶ãããéåžžã«å€§ããªéç®±ïŒãµãŒããŒïŒã§ãã ããã«ãã¯ãŒã¯ã¹ããŒã·ã§ã³ã¯ããŒããŒããåããåãªãã¢ãã¿ãŒã§ããã ãŸããã¯ãŒã¯ã¹ããŒã·ã§ã³äžã®ã¯ã©ã€ã¢ã³ãã¢ã¯ã·ã§ã³ã¯ããµãŒããŒäžã§åŠçãããŸããïŒããŒã¹ãããŒã¯ãç»é¢ã¬ã€ã¢ãŠãã®åŠçãªã©ããããŸã
[2]ïŒ ã ããŠãç§ãã¡ã¯ä»æ¥ã®ã¡ã€ã³ãã¬ãŒã ã®äººæ°ãç¥ã£ãŠããŸã...
ãã¡ãããææ°ã®Webã¢ããªã±ãŒã·ã§ã³ã§ã¯ãã€ã³ã¿ãŒãã§ã€ã¹ããžãã¯ã®äžéšã¯JavaScriptã䜿çšããŠã¯ã©ã€ã¢ã³ãã«å®è£
ãããŸãã
ããŒã¿ã®äžéšã¯Ajaxã䜿çšããŠããŒããããã¯ã©ã€ã¢ã³ãã§èŠèŠåãããŸãã
ãã ããããã§ãããŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã«é¢é£ããå€ãã®ã¢ã¯ã·ã§ã³ã¯ãµãŒããŒäžã§å®è¡ãããŸãã AjaxãããŸããŸãªæ¹æ³ã§äœ¿çšãããšãç¶æ³ãããã«æªåããŸãã ãµãŒããŒãšã¯ã©ã€ã¢ã³ãã®ã³ãŒãéã®ã€ã³ã¿ãŒãã§ãŒã¹ã®å®è£
ãã°ãã°ãã«ãªããŸãã
ããã§ãç§ã¯ãPerfect Ajaxãã¢ãããŒããææ¡ããŸããããã¯ãAjaxã®æŠå¿µãè«ççã«çºå±ããã Webã¢ããªã±ãŒã·ã§ã³ã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãå®è£
ãããµãŒããŒã®äœ¿çšãå®å
šã«æŸæ£ããããšãèŠæ±ããŸãã |
Perfect Ajaxã®ã¢ãããŒãã¯ã次ã®ååã«åºã¥ããŠããŸãã
- WebãµãŒããŒïŒ
- ã¢ããªã±ãŒã·ã§ã³ã®ããžãã¹ããžãã¯ã®ã¿ãå®è£
ãã1è¡ã®HTMLã³ãŒããçæããŸããã
- WebãµãŒãã¹ãä»ããŠã¯ã©ã€ã¢ã³ããšå¯Ÿè©±ããŸã ãããã¹ãèŠæ±ãåä¿¡ããããŒã¿ã®ã¿ãè¿ããŸãã
- WebãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ïŒ
- ã¯ã©ã€ã¢ã³ã HTMLãCSSãJavaScriptã«åºã¥ããŠã®ã¿å®è£
ãããŸãã
- WebãµãŒãã¹äžã®ãªããžã§ã¯ãæåã©ãããŒã©ã€ãã©ãªãä»ããŠWebãµãŒããŒãšå¯Ÿè©±ããŸãã
- ã»ãã³ãã£ãã¯ã¬ã€ã¢ãŠãã®ã¿ã䜿çšãããŸãã
ã³ã³ãããŒã«ïŒã¿ããã¡ãã¥ãŒãããªãŒïŒã¯ãé«ã¬ãã«ã®HTMLæ§é ã«ãã£ãŠèšè¿°ãããŸãã
- ã³ã³ãããŒã«ã®ã©ã€ãã©ãªã¯ ãèŠçŽ ã®HTMLã³ãŒããå€æŽããã«ãå¿
èŠãªã¹ã¿ã€ã«ãšã€ãã³ããã³ãã©ãã¢ã¿ããããã ãã§ãHTMLã³ã³ã¹ãã©ã¯ãã«å¯Ÿå¿ããã³ã³ãããŒã«ã®å€èŠ³ãšæ©èœãæäŸããŸãã
- ãµãŒãããŒãã£ã®éçºè
ã¯ãHTMLã ãã§ãªããFlashãWindowsãMacãªã©ã§ãããŒãžã§ã³ã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãå®è£
ã§ããŸãã
ãããžã§ã¯ãã®ãPerfect Ajaxã
ãã®ã¢ãŒããã¯ãã£ãããããžã§ã¯ããç¥èã®å¯Ÿè©±åãã¹ãã·ã¹ãã ã
åæ ããã®äŸãšããŠèª¬æããŸãã
ãµãŒããŒ
ãPerfect Ajaxãã®æŠå¿µã§ã¯ããµãŒããŒã¯åäžã®æ¡ä»¶ãæºããå¿
èŠããããŸããã€ãŸãã1è¡ã®HTMLã³ãŒããçæãããWebãµãŒãã¹ãä»ããŠå€éšãšéä¿¡ããŸãã ä»ã®ãã¹ãŠã®ç¹ã§ããã®å®è£
ã¯ç¡å¶éã§ãã
ããã§ããããžã§ã¯ãã®ãµãŒããŒæ§é ã«ã€ããŠèª¬æããŸãã Mozilla Rhinoãã©ãããã©ãŒã ã§ã®ãµãŒããŒåŽJavaScriptã®äœ¿çšããããã¿ã€ãæåã®ORMãã»ãã³ãã£ãã¯Webã®ã¯ãšãªèšèªã§ããSPARQLã®äœ¿çšãªã©ãå€ãã®èå³æ·±ãæ©èœããããŸãã
ãã ãããµãŒããŒã®å®è£
ã¯åœç€Ÿãšã¯å®å
šã«ç°ãªãå ŽåããããŸãã
ãµãŒããŒã¢ãŒããã¯ãã£
- DBMS-ããŒã¿ãä¿åããŸãã
- ããžãã¹ããžãã¯ã®ãããã¿ã€ããªããžã§ã¯ãæåã³ã¢ -ãªããžã§ã¯ãã¢ãã«ãšã¢ããªã±ãŒã·ã§ã³æ©èœãå®è£
ããŸãã
- ORM-ããŒã¿ããŒã¹ãããžãã¹ããžãã¯ã®ãããã¿ã€ãã³ã¢ã«é¢é£ä»ããŸãã
- WebãµãŒã㌠-WebãµãŒãã¹ãä»ããŠå€éšã®ããã°ã©ã æ©èœãéããŸãã
DBMS
- ãã¹ãŠã®ããŒã¿ã¯éåžžã®ãªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ã«ä¿åãããŸãã
- ããã«ããçŽç²ãªãSQLã®ã¿ã䜿çšãããç¹å®ã®DBMSïŒã¹ãã¢ãããã·ãŒãžã£ãªã©ïŒã®ã¢ããªã³ã¯äœ¿çšãããŸããã ããã«ãããããŒã¿ããŒã¹ã¯1ã€ãŸãã¯å¥ã®DBMSããç¬ç«ããŸãã
- ããŒã¿ããŒã¹ã¯ããããã¿ã€ãæåã®ORMãä»ããŠãã¢ããªã±ãŒã·ã§ã³ã®ããžãã¹ããžãã¯ã®ãªããžã§ã¯ãã³ã¢ãšæ¥ç¶ãããŠããŸãã
ããžãã¹ããžãã¯ã®äžæ ž
- ã¢ããªã±ãŒã·ã§ã³ãªããžã§ã¯ãã¢ãã«å
šäœãšãã®ããžãã¹ããžãã¯ã¯ããããã¿ã€ãæåã®ã«ãŒãã«ã«å²ãŸããŠããŸãã
- ã«ãŒãã«ã¯ã Mozilla Rhinoãã©ãããã©ãŒã ã«åºã¥ããŠããµãŒããŒåŽã®JavaScriptã§èšè¿°ãããŠããŸãã
- å€ãã®éçºè
ã«éå°è©äŸ¡ãããŠããã«ãããããããJavaScriptã¯é©ãã»ã©åŒ·åã§ãæè»ã§ãçŸããèšèªã§ãããJavaãCïŒãªã©ã®ã¢ã³ã¹ã¿ãŒã®æè»æ§ãšæ©èœãããåªããŠããå ŽåããããŸãã ãããŠããããã¿ã€ãæåã®OOPããªããžã§ã¯ãã®ãããªããã·ã¥ãé¢æ°åããã°ã©ãã³ã°ãã¯ããŒãžã£ãªã©ããã®æ©èœãæ倧éã«æŽ»çšããŸãã
- ãŸãããããã¿ã€ãæåã®JavaScriptãã©ãã€ã ã«ãããORMã䜿çšããŠããŒã¿ããŒã¹ãããæè»ã«æäœã§ããŸãã
- Mozilla Rhinoã¯JavaScriptãJVMãã€ãã³ãŒãã«ã³ã³ãã€ã«ããŸãã
ããã«ããããµãŒããŒåŽã®JavaScriptã¯ãããèªäœãã«ã¯ãªããŸããããJavaã®äžçã§ã®è±å¯ãªéçºããã¹ãŠäœ¿çšã§ããŸãã
- äžè¬çã«ãMozilla Rhinoã«åºã¥ãããµãŒããŒãµã€ãJavaScriptã¯å¥ã®å€§ããªãããã¯ã§ããããã®åé¡ã«ã€ããŠå€ãã®èšäºãæžããŸãã
ãããã¿ã€ãæåORM
- ORMã¯ããªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ãããžãã¹ããžãã¯ã®ãããã¿ã€ãã®ãªããžã§ã¯ãæåã³ã¢ã«æ¥ç¶ããããã«äœ¿çšãããŸãã
- , . :
, 10 , 10
.
- ORM - â !
, . , , - ORM (., , « »).
- ORM .
, , ; , .
, SPARQL â Semantic Web.
- , . ORM ORM. .
- - ORM â , .
Web-
- Web- - â - web-.
- HTML-.
- Web- , .
, , web- .
, .
, «» web-.
.
- â - , .
- - â - web-, .
- â () HTML-;
- â HTML- .
â - JavaScript-, web-:
- .
- web- -.
- () .
- web- .
. -, GMaps, YouTube .., ; .
, , , , .
- .
, . , , , .
- .
- ( web-, ) - web-.
- , web- : .
, - - web-. .
:
3 «» .
web-, - Sintez
.
// <br> var objStudent1 = Sintez.getStudent ("this.firstName = '' and this.secondName = ''");<br> // 3 "" <br> var objClass1 = Sintez.getClass ("this.getClassNuber() = 3 and this.liter = ''");<br> // <br> objClass1.addStudent (objStudent1);<br>
- web-, .
- , , - web- JavaScript, : .Net, Java, Delphi, Flash .
- -, .
- , , .
, , - .
- , , , .
- xHTML, CSS JS.
, xHTML/CSS/JS .
- ; â .
, HTML- , , , ;
« Ajax» !
- (, , ..) HTML-.
, , , div
â.
- HTML .
- HTML- .
- HTML- , .
- HTML- , JS- .
.
HTML-, « » JS CSS-.
:
, HTML-: .
<ul id = "ulTree1"><br> <li><br> 1<br> <ul><br> <li><br> 1-1<br> </li><br> <li><br> 1-2<br> </li><br> </ul><br> </li><br> <li><br> <!--...--><br> </li><br> </ul><br>
, JS- Controls.Tree
. .
// <br> var objTree1 = new Controls.Tree ($("ulTree1"));<br> // , selectAll () <br> objTree1.selectAll ();<br>
, Controls.Menu
:
// <br> var objMenu1 = new Controls.Menu ($("ulTree1"));<br>
- : «HTML â ()».
« Ajax» â .
- â - . - « â », , , .
- â , « », , . web- Ajax.
.
, «
Ajax-» «
Hivext: ».