MultiPart Data in Javascript
<p>Can anyone help me to know:
How to send text and image type data through multipart data form in javascript to my api. Please help me in getting the solution of my question.</p>

<pre><code>function apiCall(url){
        var myJsonObj ;

        if (window.XMLHttpRequest)
        {// code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp=new XMLHttpRequest();
            }
            else
            {// code for IE6, IE5
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.open("POST",url,true);
            xmlhttp.send();
            xmlhttp.onreadystatechange=function()
            {
                if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
                {

                // document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
                myJsonObj = JSON.parse(xmlhttp.responseText); 
                  if(myJsonObj.SS == "TRUE"){
                      window.location = "index.jsp";
                  }


                }
            }
        }
</code></pre>

<p>This set of code is not working for sending  Multipart data.</p>

<p>Thanks In Advance.</p>
