Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#866 closed bug (duplicate)

multiple ajax only update one div

Reported by: anonymous Owned by:
Priority: major Milestone: 1.1
Component: ajax Version:
Keywords: Cc:
Blocked by: Blocking:

Description

when trying to load multiple ajax only the last div is updated, when you switch the script in ready part the last one (the div) will always be updated but it will succeed calling both ajax. function getNews(id){

action = id.substring(0,4); id = id.substring(4); $.getJSON("/labs/json.php?action=" + action + "&id=" + id,function(json){

$("#" + action + "NewsOverview").html(json.value.news);

});

} $(document).ready(function(){

getNews($("#panelHottNews .gamesNewsSelected").attr("id")); getNews($("#panelGameNews .gamesNewsSelected").attr("id"));

}

Change History (1)

comment:1 Changed 16 years ago by joern

Resolution: duplicate
Status: newclosed

See #867

Note: See TracTickets for help on using tickets.