Ajax Load the Content From the url (Ajax)


##### ajax load the content from the url###

<script>

jQuery(document).ready( function(){
       
        var cur_url="http://localhost/rahul/magento_ultimo/index.php/mobile-electronics.html";
            //var cur_url=window.location.href;
                   
                    jQuery.ajax({
                            url: cur_url,
                            type:"POST",
                            data:({'name':'caldate'}),
                            success: function(cbG02_msg) {
                               
                                var req_text=jQuery(cbG02_msg).find(".category-products").html();                           
                                    jQuery(".category-products").html(req_text);   
                                       
                                },error: function(e , f){
                    console.log('error');
                       
                    }
                });


   
})

</script>
################################################

Comments

Popular Posts

Magmi Single and Multiple Category Importer