public
Description: A jQuery plugin version of the Low Pro behavior framework.
Homepage: http://lowprojs.org
Clone URL: git://github.com/danwrong/low-pro-for-jquery.git
commit  4d43eae57a6c5721a23769ef0738d95c8f20e6d1
tree    ac7f3f71072774012061756fd103f7c1292a2281
parent  c1dc9b8f95f0bd40fecaa048331cac9e7d5c45c9
low-pro-for-jquery / test / test.html
100644 64 lines (57 sloc) 1.603 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
 
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Low Pro JQ</title>
  <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="livequery.jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="../src/lowpro.jquery.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
   Man = $.klass({
   initialize: function(a) {
   this.a = a;
   },
   test: function() {
   console.log(this.a);
   }
   });
  
   Dan = $.klass(Man, {
   test: function($super) {
   $super();
   console.log('bitch!');
   }
   });
  
   Clicky = $.klass({
   initialize: function(arg) {
   console.log('Ive been applied with arg: ' + arg);
   this.arg = arg;
   },
   onclick: $.delegate({
    '#woo': function() { alert(this.arg) },
    '#yeah': function() { console.log(this, arguments) }
    })
   })
  
   jQuery(function($) {
   $('#thing').attach(Clicky, 56);
   $('a').attach(Remote);
   $('form').attach(Remote);
   });
  </script>
</head>
<body>
<h1>Thing</h1>
<p>Yeah woo</p>
<div>sLKD JSAkd ;sjadlk sajd ; <a href="request.html">Yeah</a></div>
<form action="request.html" method="post">
  <input name="boing" />
  
  <input name="thing4545" />
  <input type='submit' name="boo" value="thing" />
  <input type='submit' name="boo2" value="thing2" />
</form>
 
<div id="thing">
  <span id="yeah">Yeah</p>
  <span id="woo">woo</span>
</div>
</body>
</html>