diff options
Diffstat (limited to 'src/html/test.html')
| -rw-r--r-- | src/html/test.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/html/test.html b/src/html/test.html index ae8aece..0b9a1eb 100644 --- a/src/html/test.html +++ b/src/html/test.html @@ -25,11 +25,18 @@ function quit(){ } function downloadFile(){ var tmp=document.formular.downloadFilename.value; - fbgui.setCallbackOnDlQueueFinished("foo();"); fbgui.startDownload(tmp); + //fbgui.setCallbackOnFinished("foo();"); +} +function setcallback(){ + var tmp=document.formular.callback_fct.value; + fbgui.setCallbackOnFinished(tmp); } function foo(){ - alert("yay"); + alert("foo"); +} +function bar(){ + alert("bar"); } function updateProgress(p, s, u){ if (p >= 0 && p <= 100) @@ -68,6 +75,11 @@ fbgui test page <input type="text" name="fbgui_out_ip"> </p> <p> + <input type="button" name="callback" value="Set callback" + onclick="setcallback()"> + <input type="text" name="callback_fct"> + </p> + <p> <input type="button" name="downloadButton" value="Download file" onclick="downloadFile()"> <input type="text" name="downloadFilename"> |
