Note that there are some explanatory texts on larger screens.

plurals
  1. POstrange behaviour of ajax under chrome
    primarykey
    data
    text
    <p>Hello I have very odd problem. this never happened to me before.</p> <p>I have an ajax request invoked by onclick. Everywhere it works normal but not under the chromest Onclick is set to button. </p> <p>Now the target of the ajax is an url that can be accessed only via POST request.</p> <p>This is the info now the problem</p> <p>When I enter the page and I click o the button the request is not invoked. It goes to error block with message "error". Always happens like that. No request jus error. I have no js error in console. Now when i change request type from post to get and reload page and try it again i get error on request cause get request can not get to the url. This is correct. There is requezt and i get response as expected. When i switch back to post from get and do e erything from start if works. I do not know why. The request is invoked and it gets proper response. But when i reload the page i am geting to starting point. The request sin not invoking just geting to error block. I need to switch to get, make a bad invoke and switch back to post to start the request. But when i refresh again can not do nothing.</p> <p>What is going on. This can not be a code problem cause it is working even u der ie8</p> <p>A other ajaxes are working properly</p> <pre><code>function poll() { $.ajax({ type: "POST", url: "/ajax/" + sendTo + "/" + mFrom, success: function(data){ var messages = ''; if(data != 'done') { console.log(data); for(i = 0; i &lt; data.length; i++) { console.log(data[i]); if(data[i] !== undefined) { messages += '&lt;li&gt;From ' + data[i].userFrom + ': ' + data[i].message + '&lt;/li&gt;'; } } console.log(messages); if(messages != '' &amp;&amp; messages !== undefined) { $('#messagesList').prepend(messages); } } }, complete: poll }); } </code></pre> <p>// edit</p> <p>I'm testing the code but this just doesn not want to work. Even a simple ajax query. Can chrome block something like this ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload