Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="/js/prototype.js"></script>
- <script type="text/javascript" src="/js/bluesocket.js"></script>
- <script type="text/javascript">
- function debug (msg) {
- msg = $('debug').innerHTML + msg;
- Element.update('debug', msg +"<br>\n");
- }
- function updateProgress (req, json) {
- debug("in updateProgress");
- debug("json.test="+json.test);
- }
- function updateFailure (req) {
- debug("failure");
- }
- new Ajax.Poller({}, '/get_json.pl',
- {
- 'decay': 1,'frequency' : 1.5,
- 'method': 'get',
- 'onSuccess' : updateProgress,
- 'onFailure': updateFailure
- });
- </script>
- </head>
- <body>
- <div id=debug>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment