i did like this ```function Ack(argumentAlertID) ...
# cfml-general
g
i did like this
Copy code
function Ack(argumentAlertID) {
    $.ajax("cfc/alert.cfc?method=Update?id="+argumentAlertID,{
      success : function(json){}
    });
  };
s
This is how I would personally do it over using cfajaxproxy
Copy code
$.ajax({
            url: 'cfc/alert.cfc?method=Update?id='+argumentAlertID,
            type: 'GET'
        }).done(function(json) {
                //do stuff with json here
                }
g
cool, almost same
d
@Scott Bennett My only comment to your code is you really should be type:'post' instead of get. Depending on the browser, you may get different results because some browsers (i.e. Microsoft) cache the ajax call and then you have an issue as to what exactly it see's when executing. I found POST works every time. Just my humble opinion.
s
Just depends on how the server side is set up really.
a
The jQuery
$.ajax
method accepts a
cache: true,
option which prevents caching on GET requests (it appends a random number to the link)