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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -