想给你的Web站点增加交互功能吗?想创建一个像桌面应用软件一样美观的Web应用程序吗?《Ajax Hacks》正是你要寻找的、可以帮助你实现上述想法的书籍。Ajax是基础构建技术的一套全新的实例,它能帮助网站摆脱传统Web技术的束缚,赋予网站和Web应用更多的灵活性和交互性。\r\nAjax有机地结合了HTML、JavaScript和XML的优点,允许网页和服务器进行部分的数据交换,而不是整页交换。利用Ajax,你可以让更多的工作在客户端完成,像流行的Gmail或Google Maps。Ajax非常适合于大型项目的开发,同时,它的灵活性也适用于中小型的网站和应用。 \r\n本书包括以下内容:\r\n* 如何运用Ajax开发个性化的HTML forms以满足不同客户的需求\r\n* 如何共享和集成Google Maps、Yahoo! Maps和GeoURL APIs的资源\r\n* 在Ajax环境下,如何与cookies协同工作\r\n* 如何管理Browser History和Back button\r\n* 如何远程调用Java和Ruby on Rails进行Ajax应用开发\r\n* 如何运用Prototype、Rico和script.aculo.us JavaScript libraries\r\n* 如何管理网络连接和Web服务\r\n\r\n总之,《Ajax Hacks》阐述了一个面向下一代web应用的开发工具,同时也讲述了运用Ajax进行程序开发的几种不同方法。无论你是想了解Ajax,还是想找一种新方法运用Ajax,本书都将陪伴你走过很长一段路。
Foreword\r\nCredits \r\nPreface\r\nChapter 1. Ajax Basics\r\n 1. Detect Browser Compatibility with the Request Object\r\n 2. Use the Request Object to POST Data to the Server\r\n 3. Use Your Own Library for XMLHttpRequest\r\n 4. Receive Data as XML\r\n 5. Get Plain Old Strings\r\n 6. Receive Data as a Number\r\n 7. Receive Data in JSON Format\r\n 8. Handle Request Object Errors\r\n 9. Dig into the HTTP Response\r\n 10. Generate a Styled Message with a CSS File\r\n 11. Generate a Styled User Message on the Fly\r\nChapter 2. Web Forms\r\n 12. Submit Text Field or textarea Values to the Server\r\n Without a Browser Refresh\r\n 13. Display Text Field or textarea Values Using Server Data\r\n 14. Submit Selection-List Values to the Server Without a Round Trip\r\n 15. Dynamically Generate a New Selection List Using Server Data\r\n 16. Extend an Existing Selection List\r\n 17. Submit Checkbox Values to the Server Without a Round Trip\r\n 18. Dynamically Generate a New Checkbox Group with Server Data\r\n 19. Populate an Existing Checkbox Group from the Server\r\n 20. Change Unordered Lists Using an HTTP Response\r\n 21. Submit Hidden Tag Values to a Server Component\r\nChapter 3. Validation\r\n 22. Validate a Text Field or textarea for Blank Fields\r\n 23. Validate Email Syntax\r\n 24. Validate Unique Usernames\r\n 25. Validate Credit Card Numbers\r\n 26. Validate Credit Card Security Codes\r\n 27. Validate a Postal Code\r\nChapter 4. Power Hacks for Web Developers\r\n 28. Get Access to the Google Maps API\r\n 29. Use the Google Maps API Request Object\r\n 30. Use Ajax with a Google Maps and Yahoo! Maps Mash-up\r\n 31. Display a Weather.com XML Data Feed\r\n 32. Use Ajax with a Yahoo! Maps and GeoURL Mash-up\r\n 33. Debug Ajax-Generated Tags in Firefox\r\n 34. Fetch a Postal Code\r\n 35. Create Large, Maintainable Bookmarklets\r\n 36. Use Permanent Client-Side Storage for Ajax Applications\r\n 37. Control Browser History with iframes\r\n 38. Send Cookie Values to a Server Program\r\n 39. Use XMLHttpRequest to Scrape an Energy\r\n Price from a Web Page\r\n 40. Send an Email with XMLHttpRequest\r\n 41. Find the Browser's Locale Information\r\n 42. Create an RSS Feed Reader\r\nChapter 5. Direct Web Remoting (DWR) for Java Jocks\r\n 43. Integrate DWR into Your Java Web Application\r\n 44. Use DWR to Populate a Selection List from a Java Array\r\n 45. Use DWR to Create a Selection List from a Java Map\r\n 46. Display the Keys/Values from a Java HashMap on a Web Page\r\n 47. Use DWR to Populate an Ordered List from a Java Array\r\n 48. Access a Custom Java Object with JavaScript\r\n 49. Call a Built-in Java Object from JavaScript Using DWR\r\nChapter 6. Hack Ajax with the Prototype and Rico Libraries\r\n 50. Use Prototype's Ajax Tools with Your Application\r\n 51. Update an HTML Element's Content from the Server\r\n 52. Create Observers for Web Page Fields\r\n 53. Use Rico to Update Several Elements with One Ajax Response\r\n 54. Create a Drag-and-Drop Bookstore\r\nChapter 7. Work with Ajax and Ruby on Rails\r\n 55. Install Ruby on Rails\r\n 56. Monitor Remote Calls with Rails\r\n 57. Make Your JavaScript Available to Rails Applications\r\n 58. Dynamically Generate a Selection List in a Rails Template\r\n 59. Find Out Whether Ajax Is Calling in the Request\r\n 60. Dynamically Generate a Selection List Using Database Data\r\n 61. Periodically Make a Remote Call\r\n 62. Dynamically View Request Information for XMLHttpRequest\r\nChapter 8. Savor the script.aculo.us JavaScript Library\r\n 63. Integrate script.aculo.us Visual Effects with an Ajax Applicatior\r\n 64. Create a Login Box That Shrugs Off Invalid Logins\r\n 65. Create an Auto-Complete Field with script.aculo.us\r\n 66. Create an In-Place Editor Field\r\n 67. Create a Web Form That Disappears When Submitted\r\nChapter 9. Options and Effiencies\r\n 68. Fix the Browser Back Button in Ajax Applications\r\n 69. Handle Bookmarks and Back Buttons with RSH\r\n 70. Set a Time Limit for the HTTP Request\r\n 71. Improve Maintainability, Performance, and Reliability\r\n for Large JavaScript Applications\r\n 72. Obfuscate JavaScript and Ajax Code\r\n 73. Use a Dynamic script Tag to Make Web Services Requests\r\n 74. Configure Apache to Deal with Cross-Domain Issues\r\n 75. Run a Search Engine Inside Your Browser\r\n 76. Use Declarative Markup Instead of Script via XForms\r\n 77. Build a Client-Side Cache\r\n 78. Create an Auto-Complete Field\r\n 79. Dynamically Display More Information About a Topic\r\n 80. Use Strings and Arrays to Dynamically Generate HTML\r\nIndex
无封面