Answer the question
In order to leave comments, you need to log in
Is it possible to change the CNC of a page without reloading the whole page with product categories using a multi-level AJAX category filter?
Is it possible to change the CNC of a page without reloading the whole page with product categories using a multi-level AJAX category filter?
For example:
example.com/directory
example.com/iphone-6-cases
example.com/iphone-6-plastic-cases
example.com/yellow-cases
example.com/yellow-iphone-6-cases- plastic-for-iphone-6
That is, I need to have one level in the URL.
Answer the question
In order to leave comments, you need to log in
$('a.target_link').click(function() {
if ( this.href != location.href ) {
if( typeof window.history.pushState != undefined ) {
history.pushState( null, null, this.href );
}
$.ajax({
method : 'get',
url : this.href,
success : function( response ){
$('#content').html( response );
}
});
}
return false;
});
This is very bad .. I also thought that if you play on 2 levels it would be super, not a fig.
In its simplest form, an enum is a list of named constants. But in Java, enums have more complex functionality than in other programming languages. They can have constructors, methods, and instance variables. Enums are created using the enum
keyword .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question