Asap

Discussion in 'Programming' started by Sleeping Troll, Jul 31, 2008.

  1. #1
    I believe I have developed a new tecnique for site navigation using xmlhttp request to update page content including partial or complete replacements of scripts, html, CSS... any page content whatsoever. The updates are written directly to the DOM and are not visible via "right click view page source". I intend to coin the acronym ASAP "Asynchronus Site Access Procedures" for this method. for more information contact .
     
    Sleeping Troll, Jul 31, 2008 IP
  2. dshuck

    dshuck Peon

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How do you view this as being different than doing Ajax requests via JQuery (or any other JS library) and returning the response as script?

    For instance (and this is a dumb example, but....), I could do something like this with JQuery. Say I have a button with id="DoIt". Then say I have a file on the server named SetFoo.cfm that only returns: var Foo = "Bar";
    Given the following code:
    
    $("#DoIt").click( function(){
    	$.ajax({
    	  type: "GET",
    	  url: "SetFoo.cfm",
    	  datatype:"script"
    	});
    });
    
    Code (markup):
    By clicking on my "DoIt" button, the variable Foo is now set in the page with a value of "Bar". I have a feeling that I might be missing a bigger point here, but isn't that essentially what you are talking about doing?
     
    dshuck, Aug 1, 2008 IP