diff taginthemiddle/templates/index.html @ 0:1c5cbbde4299

initial commit of middleware tagging; doesnt yet work
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 May 2010 08:37:15 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/taginthemiddle/templates/index.html	Tue May 04 08:37:15 2010 -0700
@@ -0,0 +1,22 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:py="http://genshi.edgewall.org/"
+      xmlns:xi="http://www.w3.org/2001/XInclude">
+<head>
+<title>Hello world</title>
+<script src="${link('jquery.js')}"></script>
+<script type="text/javascript">
+$(document).ready(function(){
+$(".text-input").click(function(){
+$(this).replaceWith('<form method="post"><input type="text" name="name" value="${name}"/><input type="submit" value="Go!"/></form>');
+});
+});
+</script>
+</head>
+<body>
+<xi:include href="navigation.html" />
+Hello <span class="text-input">${name}</span>!
+</body>
+</html>