Development

AjaxAndJSON (diff)

You must first sign up to be able to contribute.

Changes between Version 17 and Version 18 of AjaxAndJSON

Show
Ignore:
Author:
ProtoBurger (IP: 201.68.220.114)
Timestamp:
10/11/07 04:15:27 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxAndJSON

    v17 v18  
    9494That's it. Now just browse to "http://localhost/publishing", press the refresh link and watch the magic :) ... 
    9595 
     96 
     97== troubleShooting == 
     98Element.update from updaterJSON '''doesn't work with IE'''[[BR]] 
     99Why ?[[BR]] 
     100"with IE you can't have two id with the same name for modification with Element.update" 
     101 
    96102== json header == 
    97103But 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: