Thursday, July 17, 2014

Do not confuse data with dataType in jQuery's .ajax.

Per this, in these two example, data should really by dataType to denote json or html.

  1. http://tom-jaeschke.blogspot.com/2014/07/caching-views-which-will-never-change.html
  2. http://tom-jaeschke.blogspot.com/2014/07/do-you-keep-moving-scriptsrenderbundles.html

I screwed up as data (not dataType) is used to pass a JSON object which is not what I intended to do in either scenario.

No comments:

Post a Comment