Sha256: 60860b874024c7e1fe5be6ca6660301581c67d643a1b888d0fc0e12cb85c27e6

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Metatagging</title>
  <script type="text/javascript" src="./script/jsonrpc_async.js"></script>	
  <script language="javascript" type="text/javascript">
  
   	var jsonurl = "http://127.0.0.1:2222/json-rpc";
    var jsonrpc = null;
    var details = null;

	  function init() {
     	jsonrpc = new JSONRpcAsyncClient( jsonurl );			
      details = jsonrpc.details
    }

    function show_details( topic  ) {
      var el = document.getElementById(  'details' );
      
      f = function( res ){
        el.innerHTML =  res
      }
      
      details.fetch( f, topic )

    }

  </script>

  <style type="text/css">
    #metatagFields #reset {
      text-align: right;
    }
    body {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      color: #666666;
    }
   a {
     text-decoration: none;
   }
   
   fieldset {
     background-image: url(yellow_crossfade_01.gif);
     background-repeat: repeat-y;
     background-position: left top;
   }
   
   #metatagFields {
    width: 300px;
    margin-top: 10px;
   }
   
   #metatagFields legend {
    background-color: #FFFFFF;
    border: 1px dashed #333333;
   }
  </style>
	
 </head>
 <body onload='init()' >
  
<div id='instructions'>Select a topic to seee more about it</div>
  <div id='curentItemList'>
   <a href='javascript:show_details( "JSON")'>JSON</a>,  <a href='javascript:show_details( "JSON-RPC")'>JSON-RPC</a>, <a href='javascript:show_details( "Ruby")' >Ruby</a>
 </div>
  
  <div id='currentSelectionSet'>
   <form name='metatagForm' action='#' method="get">
    <fieldset id='metatagFields'>
      <legend>Topic info</legend>
			<div id='details'></div>
    </fieldset>
   </form>
  </div>
 </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Orbjson-0.0.4 examples/webrick/index_async.html