nice tool returned error.
<faultcode>soapenv:Server.userException</faultcode> <faultstring>org.xml.sax.SAXParseException: Content is not allowed in prolog.</faultstring> > Go get firebug for firefox if you dont have that installed... it will > show you what your ajax is doing. > > https://addons.mozilla.org/firefox/1843/ > > On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> ok I know I am missing a piece of the Ajax/webservice puzzle in the >> below >> code can anyone spot what I am doing wrong. >> >> >> [BEGIN GEEKISH WRITINGS] >> <script language="javascript"> >> function processReqChange() { >> // only if req shows "loaded" >> if (xmlhttp.readyState == 4) { >> // only if "OK" >> if (xmlhttp.status == 200) { >> // ...processing statements go here... >> document.bob.innerHTML = xmlhttp.responseText; >> } else { >> alert("There was a problem retrieving the XML data:\n" + >> xmlhttp.statusText); >> } >> } >> } >> function sendData() >> { >> xmlhttp=null >> // code for Mozilla, etc. >> if (window.XMLHttpRequest) >> { >> xmlhttp=new XMLHttpRequest() >> } >> // code for IE >> else if (window.ActiveXObject) >> { >> xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") >> } >> if (xmlhttp!=null) >> { >> var frmInput = document.form.searchfield.value; >> xmlhttp.open("POST", "http://127.0.0.1/com/googlemini", >> true); >> xmlhttp.setRequestHeader("Content-Type", "text/xml; >> charset=utf-8"); >> >> xmlhttp.setRequestHeader('SOAPAction','http://127.0.0.1/com/googlemini'); >> xmlhttp.send('varQ='+'needles'); >> xmlhttp.onreadystatechange = processReqChange; >> } >> else >> { >> alert("Your browser does not support XMLHTTP.") >> } >> } >> </script> >> >> >> <form name="form" > >> <input type="text" name="searchfield" /> >> <input type="button" name="myclick" value="go" onclick="sendData();" /> >> </form> >> <div id="bob"> >> >> </div> >> <!--- >> This works... >> <cfscript> >> myObj = >> createobject("webservice","http://127.0.0.1/com/googlemini.cfc?wsdl"); >> myObjVal = myObj.PostQuery("consent form",""); >> </cfscript> >> <cfdump var="#myObjVal#" /> >> ---> >> >> [END GEEKISH WRITINGS] >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, manage your profile @ >> http://www.acfug.org?fa=login.edituserform >> >> For more info, see http://www.acfug.org/mailinglists >> Archive @ http://www.mail-archive.com/discussion%40acfug.org/ >> List hosted by http://www.fusionlink.com >> ------------------------------------------------------------- >> >> >> >> > > > -- > Steven Ross > web application & interface developer > http://www.zerium.com > [mobile] 404-488-4364 > [fax] 928-484-4364 > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------