Well, assuming ajax_loadContent() works correctly on its own, to call it only when the user explicitly opens an accordion header, you'd do something like the below inside the configuration code:
Code:
animatespeed: "fast", //speed of animation: "fast", "normal", or "slow",
onopenclose:function(header, index, state, isclicked){ //custom code to run whenever a header is opened or closed
if (state=="block" && isclicked==true){ //if header is expanded and as the result of the user clicking on it
ajax_loadContent('news1','webfile.php')
}
Bookmarks