Revision 4005
Added by berkley almost 16 years ago
util.js | ||
---|---|---|
100 | 100 |
if(getCookie("sms-login") == "true") |
101 | 101 |
{ |
102 | 102 |
setLoginHeader(true); |
103 |
showDatasets(); |
|
103 | 104 |
} |
104 | 105 |
else |
105 | 106 |
{ |
... | ... | |
107 | 108 |
} |
108 | 109 |
} |
109 | 110 |
|
111 |
function showDatasets() |
|
112 |
{ |
|
113 |
reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=0'); |
|
114 |
} |
|
115 |
|
|
116 |
function reloadSearchContent(url) |
|
117 |
{ |
|
118 |
$("#searchresulttable").load(url); |
|
119 |
} |
|
120 |
|
|
110 | 121 |
function uploadfile() |
111 | 122 |
{ |
112 | 123 |
if(getCookie("sms-login") != "true") |
... | ... | |
114 | 125 |
alert('You cannot upload. You are not logged in.'); |
115 | 126 |
return; |
116 | 127 |
} |
117 |
|
|
118 |
/*$.post("metacat", $("form").serialize(), |
|
119 |
function(data) |
|
120 |
{ |
|
121 |
alert($("form").serialize()); |
|
122 |
alert(data); |
|
123 |
}, |
|
124 |
"XML");*/ |
|
125 | 128 |
$("form").submit(); |
126 | 129 |
} |
127 | 130 |
|
Also available in: Unified diff
got ajax calls working to display existing datasets in a paged table