Changeset 1258 for brains

Show
Ignore:
Timestamp:
11/15/06 13:47:27 (2 years ago)
Author:
jm3
Message:

starting js embedding

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • brains/blapi.php

    r1256 r1258  
    126126    } 
    127127     
    128     # FIXME: implement this: 
    129     function getlist_as_javascript( $id ) { 
    130       return "function render_list() { alert( 'Not yet implemented.' ) };\nrender_list(); "; 
     128    # FIXME: implement this, base it off the JSON renderer 
     129    function getlist_as_public_javascript( $id ) { 
     130      return "function render_list() { \nvar l = Array( '"  
     131      .  $id . 
     132      "' );\nalert( 'Not yet implemented.' ) };\nrender_list(); "; 
    131133    } 
    132134 
  • brains/index.php

    r1255 r1258  
    5050    $forward = $show_html = false; 
    5151    Header( "Content-type: text/plain"); 
    52     echo $bla->getlist_as_javascript( $list_id ); 
     52    echo $bla->getlist_as_public_javascript( $list_id ); 
    5353  } 
    5454