S
S
Slava902014-10-09 08:10:39
JavaScript
Slava90, 2014-10-09 08:10:39

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

3 answer(s)
I
Ivan Gontarenko, 2014-10-09
@dez-fafara

$('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;
});

change the URL of the page without reloading the page

S
Sali_cat, 2014-10-18
@Sali_cat

This is very bad .. I also thought that if you play on 2 levels it would be super, not a fig.

S
Satisfied IT, 2016-11-02
@abler98

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 question

Ask a Question

731 491 924 answers to any question