javascript - jQuery.get only send parameter ajaxRequest=true -
there weird problem stumbled upon today. sending data jquery.get this:
$.get( "ajax_articles.inc.php", 'site=article&operation=newarticle', function() { /* ... */ }, 'html' );
results in ajax-requestlike this:
http://localhost/website/ajax_articles.inc.php?ajaxrequest=true&_=1471969804080
however, if same request looks this:
$.get( "ajax_articles.inc.php", {site : 'article', operation: 'newarticle' }, function() { /* ... */}, 'html' );
i desired request:
http://localhost/website/ajax_articles.inc.php?site=article&operation=newarticle&ajaxrequest=true&_=1471970652894
the first request type worked months. it's in our code dozens of times. today stopped working , have problem if type lines console. has experienced similar problem?
edit:
wo have $.ajaxsetup()
in our code looks this:
$.ajaxsetup({ cache : false, datatype : 'html' });
Comments
Post a Comment