- I started jQuery.
- dynamically inserting figure and handlers
need to
- JavaScript
- pick up value of alt attribute from div (root) and generates url for image
- handlers to tell server what is action.
- server side
- generating map coords.
- api which returns next position id for the pair of current position and action.
50 lines of JavaScript let me to generate:

from:
<html>
<head>
<title>editor test</sample>
<!--
Copyright 2009 Noriyuki Hosaka bgnori@gmail.com
-->
</head>
<body>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3.2");
</script>
<script type="text/javascript" src="../src/jsboard.js">
</script>
<script>
</script>
<div class="jsboard" ">initial position</div>
<div class="jsboard" alt="4PPgAQPgc+QBIg:cAl7AAAAAAAA">another position</div>
<div class="jsboard" alt="4PPgAQPgc+QBIg:cAl7AAAAAAAA" width="400" height="300">yet another position with size</div>
</body>
</html>
0 コメント:
コメントを投稿