Changeset 2178

Show
Ignore:
Timestamp:
11/30/07 17:32:03 (5 years ago)
Author:
tokuhirom
Message:

platform/wassr: DOM2++

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/prism/wassr/src/webapp.js

    r1896 r2178  
    1414    _last_message_ctime: '0000-00-00 00:00:00', 
    1515 
    16  
    1716    _unescapeHTML : function (src) { 
    1817        var div = host.getBrowser().contentWindow.document.createElement("DIV"); 
     
    2221 
    2322    _doTimer : function() { 
     23        try { 
     24            // operating DOM. 
     25            host.log("OPERATING NOW"); 
     26 
     27            var document = host.getBrowser().contentWindow.document; 
     28            if ( ! document.getElementById('PrismMenu') ) { 
     29                host.log("Insert!"); 
     30                var div = document.createElement('div'); 
     31                div.id = 'PrismMenu'; 
     32                div.innerHTML = '<a href="/my/">MyPage</a>'; 
     33                document.getElementById('Side').parentNode.appendChild(div); 
     34            } 
     35        } catch(e) { 
     36            host.log(e); 
     37        }; 
     38 
    2439        try { 
    2540            // Ajax. 
     
    110125        setInterval(Wassr._disable_links, 500); 
    111126        this._timer = setInterval(Wassr._doTimer, 60*1000); 
     127        Wassr._doTimer(); 
    112128    }, 
    113129