-2

I want three tables from a page that reloads itself every two minutes. I have screen scraped the three tables using php now I want to put these three tables in a div on my page what is the best ajaxy way to do this?

should i save the three tables as a separate html file and then load them by load() or use json or ...?

pouya
  • 3,400
  • 6
  • 38
  • 53
  • @arxanas i have tried load() but i don't like this method i wanna a better and more robust way of putting html inside an element using ajax – pouya Apr 09 '12 at 18:17

1 Answers1

-1

the best method is using jquery get function

$.get(url [, data],function(data) {
    $("#element").html(data);
},'html')
pouya
  • 3,400
  • 6
  • 38
  • 53