3 content = document.getElementById("content");
4 content.innerHTML = HTML_AJAX.grab('rpc.php?action=showphoto&id=' + id);
9 content = document.getElementById("content");
10 content.innerHTML = HTML_AJAX.grab('rpc.php?action=showcredits');
13 function Tags(mode, id)
16 // add the tag to users session
17 HTML_AJAX.grab('rpc.php?action=addtag&id=' + id);
19 else if(mode == "del") {
20 // del the tag from users session
21 HTML_AJAX.grab('rpc.php?action=deltag&id=' + id);
23 else if(mode == "reset") {
24 HTML_AJAX.grab('rpc.php?action=resettags');
27 refreshAvailableTags();
28 refreshSelectedTags();
33 function refreshAvailableTags()
35 // update available tags
36 content = document.getElementById("available_tags");
37 content.innerHTML = HTML_AJAX.grab('rpc.php?action=show_available_tags');
40 function refreshSelectedTags()
42 // update selected tags
43 content = document.getElementById("selected_tags");
44 content.innerHTML = HTML_AJAX.grab('rpc.php?action=show_selected_tags');
47 function showPhotoIndex()
49 HTML_AJAX.replace(document.getElementById("content"), 'rpc.php?action=show_photo_index');
53 function showBubbleDetails(object, id, direction)
55 HTML_AJAX.replace(object, 'rpc.php?action=showbubbledetails&id=' + id + '&direction=" + direction');
58 // if photo index is currently shown, refresh it
59 function refreshPhotoIndex()
61 if(document.getElementById("matrix") != undefined) {