i had this working at one point but was still cleaning up the php. and now it wont load my entries at all using html() i see the response from success in firebug console and if i use text() it loads the html code in the div i assign but when using html() to render results it does not load anything. anyone have any idea whats going on? Anyone have any suggestions on why this wont load the html i get in my success response(r) here is what i am using:
<script type="text/javascript"> jQuery("#submit").click(function() { var inputs = []; var name = jQuery("#search").attr('value'); var searchdistance = jQuery("#searchdistance").attr ('value'); var searchlocation = jQuery("#searchlocation").attr('value'); var artist = jQuery ("#cb_registerasA").attr('value'); var dj = jQuery("#cb_registerasD").attr('value'); var engineer = jQuery("#cb_registerasEn").attr ('value'); var executive = jQuery("#cb_registerasEx").attr ('value'); var model = jQuery("#cb_registerasM").attr('value'); var producer = jQuery("#cb_registerasProd").attr ('value'); var promoter = jQuery("#cb_registerasProm").attr ('value'); var photo = jQuery("#cb_registerasPhot").attr ('value'); if(jQuery("#search").attr('value') != "") { inputs.push('search' + '=' + name); } if(jQuery("#searchlocation").attr('value') != "") { inputs.push('searchdistance' + '=' + searchdistance); } if(jQuery("#searchlocation").attr ('value') != "") { inputs.push('searchlocation' + '=' + searchlocation); } if( jQuery('#cb_registerasA').attr('checked')) { inputs.push ('cb_registerasA' + '=' + artist); } if( jQuery('#cb_registerasD').attr('checked')) { inputs.push ('cb_registerasD' + '=' + dj); } if( jQuery('#cb_registerasEn').attr('checked')) { inputs.push ('cb_registerasEn' + '=' + engineer); } if( jQuery('#cb_registerasEx').attr('checked')) { inputs.push ('cb_registerasEx' + '=' + executive); } if( jQuery('#cb_registerasM').attr('checked')) { inputs.push ('cb_registerasM' + '=' + model); } if( jQuery('#cb_registerasProd').attr('checked')) { inputs.push ('cb_registerasProd' + '=' + producer); } if( jQuery('#cb_registerasProm').attr('checked')) { inputs.push ('cb_registerasProm' + '=' + promoter); } if( jQuery('#cb_registerasPhot').attr('checked')) { inputs.push ('cb_registerasPhot' + '=' + photo); } jQuery.ajax({ data: inputs.join('&'), url: 'index.php? option=com_usersearch&act=searchusers&format=raw', timeout:5000, error: function() { console.log("Failed to submit"); }, success: function(r) { //alert(r); jQuery("#searchresults").slideUp(); jQuery("#searchresults").html(r); jQuery("#searchresults").slideDown(); } }) return false; }); </script>