Generating XML and passing it to jQuery


I am generating some XML and then POSTing it to a jQuery based plugin. Looking at the POSTed XML in Firebug, everything appears normal. However, something is not getting passed to the plugin so it is using a amount (which results in no data being properly displayed). The solution turned out to be quite simple… set the Mime-Type on the posted XML! Doh!

So by adding

header('Content-Type: text/xml');

everything passed smoothly.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Reddit
          

, ,

  1. No comments yet.
(will not be published)
  1. No trackbacks yet.