Anybody have a simple example of retrieving a page via ajax?

If you're using jQuery you can simply do this:

$.ajax({
  /*url = page you're requesting*/
  url: 'ajax/test.html', 
  /*success = function called when request is successful*/
  success: function(data) { 
    /*set HTML of element with class .result to that which is in requested file*/
    $('.result').html(data); 
  }
});
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.