Topic: Client vs Server Side Ajax calls

I am trying to figure out why in my app when one user puts in information it alters the views of all others.  I had thought the AJAX calls I had were just client side so they would only alter that specific users page but in result it changes everyones.  This leads me to believe the AJAX call is changing what is on the server side rather than the client side, which is definitely not what I want.  The only data that seems to be spread across all users is the data that is being changed through my AJAX calls, my pagation seems to be unique for every user.  Here is one of my AJAX calls that seems to be causing problems... :

$.ajax({
        url: 'scores',
        type: 'get',
        contentType: 'application/json; charset=UTF-8',
        accept: 'application/json',
        dataType: 'json',
        data: {field:fieldClicked},
success: function(res) {
            if (res.ImportResponse !== void 0) {
                console.log('Success: ' + res);
            } else if (res.Fault !== void 0) {
                console.log('Fault: ' + res);
            }
        },
        error: function() {
            location.reload(true);
        }
    });

Last edited by ChrisL1200 (2012-02-29 13:59:25)

Re: Client vs Server Side Ajax calls

That ajax call is altering the view files for other users on a fresh install? Just trying to clarify more of what's happening.

There is no possible way for javascript to alter server files without accessing a server-side scripting language, such as ruby, php, etc.

What is the server doing when it receives the "get scores" url?

Remember to edit your topic title and add "[SOLVED]" if your question has been answered!

Follow me!