Jquery Div load content for every 10 seconds?

Discussion in 'jQuery' started by murugesan, Oct 12, 2010.

  1. #1
    Hi All,

    Code:
    setInterval(function(){
    $("#content").load("load.php");
    },10000);

    Iam using smarty template and having business logic files in one folder (load.php) and presentation files in another folder (load.tpl). when i call load function there is blank div, no content is loaded why? and give me the solution.
     
    murugesan, Oct 12, 2010 IP
  2. murugesan

    murugesan Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    iam getting the dynamic content for every 10 seconds but css, javascript and jquery files in the head are not loading y?
     
    murugesan, Oct 14, 2010 IP
  3. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #3
    of course only html gets displayed by load function
    you may try to use $.get function
     
    gapz101, Oct 25, 2010 IP