LEADER 04950nam 2200721 a 450 001 9911006804003321 005 20200520144314.0 010 $a1-62198-894-5 010 $a1-282-96669-3 010 $a9786612966699 010 $a1-84951-035-0 035 $a(CKB)2670000000066968 035 $a(EBL)948576 035 $a(OCoLC)797917844 035 $a(SSID)ssj0000468519 035 $a(PQKBManifestationID)12156604 035 $a(PQKBTitleCode)TC0000468519 035 $a(PQKBWorkID)10498332 035 $a(PQKB)11196110 035 $a(MiAaPQ)EBC948576 035 $a(CaSebORM)9781849510349 035 $a(Au-PeEL)EBL948576 035 $a(CaPaEBR)ebr10442239 035 $a(CaONFJC)MIL296669 035 $a(PPN)228048141 035 $a(OCoLC)738406433 035 $a(OCoLC)ocn738406433 035 $a(EXLCZ)992670000000066968 100 $a20110222h20112010 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aDjango JavaScript integration $eAJAX and JQuery /$fJonathan Hayward 205 $a1st edition 210 $aBirmingham, U.K. $cPackt Open Source$d2011, c2010 215 $a1 online resource (324 p.) 300 $aIncludes index. 311 $a1-84951-034-2 327 $aCover; Copyright; Credits; Foreword; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: jQuery and Ajax Integration in Django; Ajax and the XMLHttpRequest object; Human speech: An overlaid function; Ajax: Another overlaid function; The technologies Ajax is overlaid on; JavaScript; XMLHttpRequest; Methods; Properties; HTML/XHTML; XML; JSON; CSS; The DOM; iframes and other Ajax variations; JavaScript/Ajax Libraries; Server-side technologies; A look at Django; Django templating kickstart; A more complete glimpse at Django templating 327 $aSetting JavaScript and other static content in placeSummary; Chapter 2: jQuery-the Most Common JavaScript Framework; jQuery and basic Ajax; jQuery Ajax facilities; .ajax(); context; data; dataFilter; dataType; error(XMLHttpRequest, textStatus, errorThrown); success(data, textStatus, XMLHttpRequest); type; url; .aj0axSetup(); Sample invocation; .get() and .post(); .load(); jQuery as a virtual higher-level language; The selectors; A closure-based example to measure clock skew; Case study: A more in-depth application; Chapter 3: Validating Form Input on the Server Side 327 $aChapter 4: Server-side Database Search with AjaxChapter 5: Signing Up and Logging into a Website Using Ajax; Chapter 6: jQuery In-place Editing Using Ajax; Chapter 7: Using jQuery UI Autocomplete in Django Templates; Chapter 8: Django ModelForm: a CSS Makeover; Chapter 9: Database and Search Handling; Chapter 10: Tinkering Around: Bugfixes, Friendlier Password Input, and a Directory That Tells Local Time; Chapter 11: Usability for Hackers; Appendix: Debugging Hard JavaScript Bugs; Summary; Chapter 3: Validating Form Input on the Server Side; The standard lecture: low-level validation 327 $aMatching regular expressionsYou cannot guarantee absolutely valid data; Validating can detect (some) malicious input; The Django way of validation; Django gives you some things for free; The steps in Django's validation; A more sensible and cruelty-free approach to validation; Things get murkier; The zero-one-infinity rule: a cardinal rule of thumb in usability; An improvement on Django's advertised approach; A validation example: GPS coordinates; Avoiding error messages that point fingers and say, ""You're wrong!""; Validation as demanding that assumptions be met 327 $aOld-school: conform to our U.S.-based assumptions!Adding the wrong kind of band-aid; Making assumptions and demanding that users conform; At least names are simple, right?; Even in ASCII, things keep getting murkier; Better validation may be less validation; Caveat: English is something of a lingua franca; We don't have to negotiate with pistols; Doing our best to solve the wrong problem: a story; It really does apply to validation; Facebook and LinkedIn know something better; Summary; Chapter 4: Server-side Database Search with Ajax; Searching on the client side and server side 327 $aHandling databases through Django models 330 $aDevelop AJAX applications using Django and jQuery 606 $aJavaScript (Computer program language) 606 $aAjax (Web site development technology) 606 $aWeb site development 608 $aElectronic books.$2lcgft 615 0$aJavaScript (Computer program language) 615 0$aAjax (Web site development technology) 615 0$aWeb site development. 676 $a006.7 700 $aHayward$b Jonathan$01824097 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9911006804003321 996 $aDjango JavaScript integration$94391156 997 $aUNINA