mysql - Javascript Dynamic filters -
i'm looking examples make filter (in left sidebar) when clicking on filter updates page content (query), , if (the filter) has subcategories, displays them down selected filter (in left sidebar).
i found ajax used this, works xml files, , use json. can ajax used json?
thank can contribute something. greetings.
json valid data type ajax. have specify data-type in call, otherwise default text. example:
$.ajax({ type: 'get', url : 'http://example.com', datatype : 'json', success : function( data ) { console.log(data); } });
Comments
Post a Comment