TypeError: show is not a function ...how to call javscript function for ajax

Wednesday, July 9, 2014

I creating a function name show in javscript... but when i call ...that that is saying show is not a function ... I m creating this for ajax.....call



$(document).ready(function(){

show = function (){
alert('s');
$.ajax({
type: "POST",
url: ajax_url_store,
data: {action: 'store', views: JSON.stringify(thsirtDesigner.getProduct()) },

success: function(data) {
if(parseInt(data) > 0) {
$( "#cart_pd" ).submit();

}

},
error: function() {
//alert('some error has occured...');
},
start: function() {
//alert('ajax has been started...');
}
});
}

});






http://ift.tt/VJ6TIe