thybag / PJAX-Standalone

A standalone implementation of Pushstate AJAX, for non-jquery webpages.
203 stars 42 forks source link

Cannot use native HTML elements as container like <body> , <html> #41

Open vishnu-the-developer opened 7 years ago

vishnu-the-developer commented 7 years ago
`      pjax.connect({
        'container': 'ajaxLoadContent',
        'useClass':'ajaxLoader',
        'beforeSend': function(event){
          console.log('loading page .... ');
        },
        'success': function(event){ // NO ERROS
        },
        'error': function(event){ // NO ERRORS
        },
        'ready': function(){ // NO ERRORS
        }
      });`

but i cannot use container as an html by specifying 'container':'html'