Revision 5704
Added by ben leinfelder almost 14 years ago
search.js | ||
---|---|---|
85 | 85 |
//alert("query: " + submitFormObj.query.value); |
86 | 86 |
|
87 | 87 |
return true; |
88 |
} |
|
89 |
function loadStats(divId, docId, url) { |
|
90 |
$("#" + divId).load( |
|
91 |
url, |
|
92 |
{ |
|
93 |
'action': "getlog", |
|
94 |
'docid': docId, |
|
95 |
'qformat': "semtools" |
|
96 |
}, |
|
97 |
// call back function when loading finishes |
|
98 |
function(response, status, xhr) { |
|
99 |
//alert("callback for: " + divId + " selected node: " + selectedNodeId); |
|
100 |
// error |
|
101 |
if (status == "error") { |
|
102 |
var msg = "Sorry but there was an error: "; |
|
103 |
$("#error").html(msg + xhr.status + " " + xhr.statusText); |
|
104 |
} |
|
105 |
}); |
|
106 |
} |
|
88 |
} |
Also available in: Unified diff
include loadStats() method in branding.js to be reused more widely (with qformat parameter)