[Groonga-commit] droonga/droonga.org at 353cd8c [gh-pages] Output result as the body text instead of alert

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Sep 10 16:34:39 JST 2013


YUKI Hiroshi	2013-09-10 16:34:39 +0900 (Tue, 10 Sep 2013)

  New Revision: 353cd8ce7656491c3cee03cf5b88ffd09bc8b367
  https://github.com/droonga/droonga.org/commit/353cd8ce7656491c3cee03cf5b88ffd09bc8b367

  Message:
    Output result as the body text instead of alert
    
    Because alert() can be blocked by the web browser (ex. Firefox)

  Modified files:
    tutorial/index.md

  Modified: tutorial/index.md (+1 -1)
===================================================================
--- tutorial/index.md    2013-09-10 16:30:59 +0900 (af8e94a)
+++ tutorial/index.md    2013-09-10 16:34:39 +0900 (d248991)
@@ -415,7 +415,7 @@ index.html:
         <script>
           var socket = io.connect();
           socket.on('search.result', function (data) {
-            alert(JSON.stringify(data));
+            document.body.textContent += JSON.stringify(data);
           });
           socket.emit('search', { queries: {
             result: {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index