I have some problem? Have you finde solution? I try it in Firefox and its go good, $ (responseXML).find('label').each(function(){ is ok. But in IE7 and IE6 $(responseXML).find('label').each(function(){ not go. I try show responseXML with alert(responseXML), its ok data i get. I need get some data from responseXML in IE7,6 .-(
I try set options dataType: 'xml', but stop go in firefox! My js source: -------------------------------------------- <script> $(document).ready(function(){ $tabs = $('#cities > ul').tabs(); $tabs = $('#sports > ul').tabs(); var options = { success: showResponse}; $('#EntriesGetEntriesForm').submit(function() { $(this).ajaxSubmit(options); return false; }); }); function showResponse(responseXML) { var i = 0; alert(responseXML); $(responseXML).find('label').each(function(){ i++; var id = $(this).attr('id'); var lat = $(this).find('lat').text(); var lng = $(this).find('lng').text(); var marker = new GMarker(new GLatLng(lat, lng), {title: 'test'}); map.addOverlay(marker); GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml('Popis: <b>popisek</b><br / >Latitude: <b>'+lat+'</b><br />Longitude: <b>'+lng+'</b>'); }); //link = '<a href="#" onclick="moveMapTo('+lat+','+lng +')">bod</a><br />'; $('#entries-list').append(link); }); //close each( }; </script> On 14 Dub, 15:34, lcordier <[EMAIL PROTECTED]> wrote: > I am using Ajax form posting. > > var options = { > dataType: 'xml', > beforeSubmit: post_request, > success: response_xml > }; > > $("#form").submit(function() { > $(this).ajaxSubmit(options); > > // !!! Important !!! > // always return false to prevent standard browser submit and > page navigation > return false; > }); > > function post_request(formData, jqForm, options) { > $("#busy").show(); > return true; > > } > > function response_xml(responseXML) { > $("#busy").hide(); > //... > > } > > In Firefox this works fine. But in IE6 and IE7, > the code never reaches the success handler. > > Hope this helps. > Regards Louis.