Changes between Version 17 and Version 18 of AjaxAndJSON
- Timestamp:
- 10/11/07 04:15:27 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxAndJSON
v17 v18 94 94 That's it. Now just browse to "http://localhost/publishing", press the refresh link and watch the magic :) ... 95 95 96 97 == troubleShooting == 98 Element.update from updaterJSON '''doesn't work with IE'''[[BR]] 99 Why ?[[BR]] 100 "with IE you can't have two id with the same name for modification with Element.update" 101 96 102 == json header == 97 103 But wait what about the json parameter we've ignored till now ? In fact, prototype.js has a very handy feature for JSON. When using an AJAX function, it always looks for the header "X-JSON" and will evaluate it automatically and pass it as a second argument to your javascript callback function. Note that for now there exists a bug in symfony preventing this feature from working. I made a patch #252 and #272 for this issue. As soon as it's fixed you'll be able to replay the tutorial but this time change those: