[ 2 posts ]

Prateek

  • Username: Prateek_Abhiyanta
  • Joined: Wed Jun 13, 2012 8:06 am
  • Posts: 1
  • Offline
  • Profile
Tags:

How can I send inline HTML using connection manager?

Post Posted: Wed Jun 13, 2012 8:22 am
+1-
Hi Folks,

How can I send content as an attachment using MIME content type using connection manager?
Eg:- Inline HTML, Images, video etc .


Cheers !!
Prateek

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 352
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: How can I send inline HTML using connection manager?

Post Posted: Mon Jun 25, 2012 9:57 am
+0-
XHR does not directly support attachments. XHR just transmits a blob of data. You can send any data you want in the XHR response, but you then have to parse it yourself. If you use a JSON encoder on the server, you can send raw binary data, and the JSON parser on the client should have no trouble decoding it. You shouldn't have to do MIME encoding.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum