Webstandard2007 Spry Widget Ver1

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Webstandard2007 Spry Widget Ver1 - Presentation Transcript

    1. Spry Widget paperboy&co.
    2. • Spry Widget • Spry Widget • Spry Widget
    3. Agenda • • SpryFramework for Ajax • Spry Widget • • Spry Widget
    4. • • paperboy &co . EC • (f-shin / fshin2000 ) • blog : F’s Garage http://www.milkstand.net cnet blog F’s Garage type C • twitter movatwitter
    5. • 875 ASP Color Me Shop ! pro
    6. • Color Me Shop!
    7. Spry Widget
    8. DEMO
    9. Spry Framework for Ajax • Adobe Dreamweaver “ ”JavaScript • Ajax UI • BSD http://labs.adobe.com/technologies/spry/
    10. Spry Framework for Ajax • XHTML • JavaScript XHTML class spry: <div id=\"RSSFeedsList\" spry:region=\"dsCategories dsFeeds\" class=\"SpryHiddenRegion\"> </div> • CSS
    11. F’s Garage / December 01 , 2003 • • •� http://www.milkstand.net/fsgarage/archives/000220.html
    12. Spry Framework for Ajax • Spry XML Data Sets XML XML prototype.js • Spry Effects script.aculo.us • Spry Widget XML Data Sets Effects UI
    13. Spry Widget Widget • • → window gadget
    14. Spry Widget • • text field , textarea select , checkbox , radio radio button Spry1.5 • • submit
    15. HTML step1 of 3 Spry JavaScript CSS <script src=\"/user/javascripts/SpryAssets/SpryValidationTextField.js\" type=\"text/javascript\" ></script> <link href=\"/user/javascripts/SpryAssets/SpryValidationTextField.css\" rel=\"stylesheet\" type=\"text/css\" /> JavaScript TextField, TextArea Script js
    16. HTML step 2 of 3 HTML <form method=\"post\" name=\"form1\" action=\"/user/info/confirm\" > <span id=\"spryEmail\"> <input name=\"txtEmail\" type=\"text\" id=\"txtEmail\" value=\"<% $email %>\" /> <span class=\"textfieldRequiredMsg\"> </span> <span class=\"textfieldMaxCharsMsg\">25 </span> </span> </form> span CSS
    17. HTML step3 of 3 span <script type=\"text/javascript\"> <!-- var spryEmail = new Spry.Widget.ValidationTextField( \"spryEmail\", \"email\", {isRequired:true , maxChars:50 , validateOn:[\"change\"]}); //--> </script> span ID email , integer , date , none
    18. Dreamweaver CS3 Dreamweaver CS3
    19. Spry
    20. Spry Framework for Ajax = JavaScript Spry
    21. Spry Framework for Ajax = JavaScript Spry
    22. 13:30
    23. • • •
    24. • • • Spry Widget
    25. DEMO
    26. • JavaScript Ajax Spry Widget • PHP Perl validator
    27. • Submit • Spry Widget Ajax • JavasScript
    28. • • Ajax • • JavaScript
    29. • Web Web •
    30. DEMO
    31. Spry Widget • Spry • FORM onSubmit
    32. BSD 13:45
    33. Spry Widget 1. 2. onSubmit 3.
    34. Spry Widget
    35. Inside Spry Widget
    36. Inside Spry Widget span id = “spryMail” span class =”textfieldInvalidFormatMsg”
    37. Inside Spry Widget span id = “spryMail” span class =”textfieldInvalidFormatMsg” .textfieldInvalidFormatState .textfieldInvalidFormatMsg { display: inline; }
    38. Spry Widget spryMail
    39. Spry Widget spryMail var spryMailObj = new Spry.Widget.ValidationTextField( \"spryMail\", span ID \"email\", ( URL ) {maxChars:100 , validateOn:[\"change\"], change,submit ) isRequired:false});
    40. 1.
    41. (1)
    42. (1)
    43. (1) onChange!!
    44. (1) onChange!! SpryValidationTextField.js
    45. (1) onChange!! SpryValidationTextField.js
    46. (1) onChange!! SpryValidationTextField.js
    47. (1) onChange!! SpryValidationTextField.js
    48. (1) onChange!! SpryValidationTextField.js appendLogic
    49. (1) onChange!! SpryValidationTextField.js appendLogic appendLogic.onChange()
    50. (1) onChange!! SpryValidationTextField.js appendLogic appendLogic.onChange()
    51. (2) HTML JavaScript Spry Widget mailAppendCheck = new Object(); mailAppendCheck.onChange = function(me){ // return true // or false ; } // spry Widget spryMailObj.appendLogic = mailAppendCheck ;
    52. (3) SpryValidationTextField.js onChange Spry.Widget.ValidationTextField.prototype.onChange = function(e) { onChange /* appendLogic */ this.appendLogic.onChange(this);
    53. 2. onSubmit onSubmit
    54. onSubmit (1)
    55. onSubmit (1)
    56. onSubmit (1) onSubmit!!
    57. onSubmit (1) onSubmit!! Spry.Widget.Form
    58. onSubmit (1) onSubmit!! Spry.Widget.Form
    59. onSubmit (1) onSubmit!! Spry.Widget.Form
    60. onSubmit (1) onSubmit!! Spry.Widget.Form
    61. onSubmit (1) onSubmit!! Spry.Widget.Form appendLogic
    62. onSubmit (1) onSubmit!! Spry.Widget.Form appendLogic appendLogic.onSubmit()
    63. onSubmit (1) onSubmit!! Spry.Widget.Form appendLogic appendLogic.onSubmit()
    64. onSubmit (2) HTML JavaScript Spry Widget submitCheck = new Object(); submitCheck.onSubmit = function(me){ // submit return true // or false ; } // spry Widget Spry.Widget.Form.appendLogic = submitCheck ;
    65. onSubmit (2) SpryValidationTextField.js Spry.Widget.Form.onSubmit = function(e) { onSubmit this.appendLogic.onSubmit(this); SpryValidationSelect.js
    66. 3.
    67. (1)
    68. (1) span id = “spryMail” span class =”textfieldInvalidFormatMsg” .textfieldInvalidFormatState .textfieldInvalidFormatMsg { display: inline; }
    69. (2) spryMailObj.addClassName( $('spryMail'), 'textfieldInvalidFormatState' ) spryMailObj.removeClassName($('spryMail'),'textfieldInvalidFormatState' ); ※ span DOM
    70. (3) Spry Widget /* PHP */ setErrorMessage('spryUserName' , 'AccountIsAlreadyExist'); /* PHP */ // function setErrorMessage(spryId , errClass){ spryMailObj.addClassName($(spryId),errClass); }
    71. spryMail <span class=\"textfieldReinputMsg\">
    72. spryMail <span class=\"textfieldReinputMsg\"> ■CSS SpryValidationTextFiled.css .textfieldRequiredState .textfieldRequiredMsg, .textfieldReinputState .textfieldReinputMsg { display: inline; } ■ spryMailObj.addClassName($('spryMail'),'textfieldReinputState' );
    73. Spry Widget
    74. Spry Widget • HTML • • Adobe •
    75. Spry Widget • • HTML Dreamweaver CSS
    76. Spry Widget • textArea IME [DEMO] • • textArea prototype.js Spry 1.5
    77. Dreamweaver Spry Widget • CS3 Spry 1.4 ( 1.5 prerelease 1. 2.'DW application folder/Configuration/Shared/Spry/' http://blogs.adobe.com/spryteam/2007/06/post.html
    78. Spry Widget • • • JavaScript • JavaScript
    79. Spry Widget • Spry Widget http://f-shin.net/labs/ •
    80. f-shin@milkstand.net

    + fshin2000fshin2000, 3 years ago

    custom

    3286 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3286
      • 2972 on SlideShare
      • 314 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 530
    Most viewed embeds
    • 314 views on http://www.milkstand.net

    more

    All embeds
    • 314 views on http://www.milkstand.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories