Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2007, 01:24 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default AJax and IE 6.0 SP2 over SSL3 not working

I purchased Pro Ajax and downloaded the zxml.js library for use in one my applications. I have run into a problem posting data to a java servlet that sits behind an apache 1.3 ssl layer, using IE 6.0 SP2. When SSL3 is selected in IE’s advanced options, the AJAX request does not make it to the java servlet. The post request should return a string representation of xml, but the text is empty. However, when I run the browser with SSL3 unchecked (SSL2 is checked), I run into no issues. In addition, if I add a directive to apache to not use SSL3 (using IE default settings), the AJAX calls work fine. I also confirmed the AJAX calls are being made using the Msxml2.XMLHTTP.5.0 object.

I was wondering if anyone has heard of this issue or something similar and have any suggestions. I have included some of the client source code I am using. Thanks in advance.



Regards,



Elliott Gonshor





function sendPostRequest(fnFunction, form, oXmlHttp ) {
       var oForm = form;
       var sBody = getRequestBody(oForm);
       oXmlHttp.open("post", oForm.action, true);
       oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

       oXmlHttp.onreadystatechange = oXmlHttp.onreadystatechange = fnFunction;

       oXmlHttp.send(sBody);

}

/



/* ajax call to get batch info. The oXmlHttp.responseText is a string returned
in a xml format */

function setBatchSummary(rowIx, action)
{

      highlightRow( rowIx );
      document.forms[0].hdnUserParm1.value=rowIx;
      document.forms[0].hdnUserAction.value=action;
      oXmlHttp = zXmlHttp.createRequest();//calls zxml.js library
      var loadContent = new Function(
             "if (oXmlHttp.readyState == 4) { " +
             " var tbodycontent = document.getElementById(\"eventContent\"); " +//not used
             " setBatchSummaryFields(oXmlHttp.responseText); }");//the call that works with responseText
       sendPostRequest(loadContent, document.forms[0], oXmlHttp);

}



 
Old February 8th, 2007, 02:24 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

One thing you might try is to use the latest version of zXml. This uses version 6 or 3 only of msxml as recommended by Microsoft. You need to install version msxml 6.0 first.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
ajax functionality not working. shegxzyl BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 March 31st, 2010 10:01 PM
ajax functionality no working well shegxzyl BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 March 28th, 2009 02:56 PM
AJAX Listing 19-4 not working! bibsoconner BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 1 October 14th, 2008 11:55 PM
IE6: Hover stops working on AJAX page sigilaea Ajax 0 March 17th, 2008 09:58 AM
help with working AJAX? Hannibal Ajax 1 January 3rd, 2007 01:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.