CSS/Ajax Help

Out of context: Reply #7

  • Started
  • Last post
  • 13 Responses
  • acescence0

    ok, i understand what you mean. the problem is that your main page contains stuff that renders things via javascript that isn't executing when content loaded via ajax is inserted, it only fires when the main page is loaded. things like applying click functions to things can be remedied by using what are called "live" events in jquery...

    http://docs.jquery.com/Events/li…

    for the other bits, i think you can apply the js with a callback function that will execute when the ajax content is loaded...

    $("#stage").load(theurl, , function(){
    // do some js stuff here to the things you just loaded
    });

    and i gotta run, sorry!

View thread