Permalink
Browse files

Add new start of LocationSelect

  • Loading branch information...
1 parent 9400baa commit 4361d6b1c9b537768c9922abe2f36de01ce8d9ef @RobinQu committed Sep 22, 2010
Showing with 10,842 additions and 0 deletions.
  1. +185 −0 LS.tmproj
  2. +35 −0 LocationSelect.html
  3. +824 −0 LocationSelect.js
  4. +6 −0 areas_1.0.json
  5. +1 −0 index.html
  6. +4 −0 json-test.json
  7. +46 −0 json.html
  8. +7 −0 json.js
  9. +482 −0 json2.js
  10. +4 −0 jsonParse.js
  11. +9,248 −0 model.graffle
View
185 LS.tmproj
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>currentDocument</key>
+ <string>LocationSelect.js</string>
+ <key>documents</key>
+ <array>
+ <dict>
+ <key>expanded</key>
+ <true/>
+ <key>name</key>
+ <string>LocationSelect</string>
+ <key>regexFolderFilter</key>
+ <string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
+ <key>sourceDirectory</key>
+ <string></string>
+ </dict>
+ </array>
+ <key>fileHierarchyDrawerWidth</key>
+ <integer>200</integer>
+ <key>metaData</key>
+ <dict>
+ <key>LocationSelect.html</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>28</integer>
+ <key>line</key>
+ <integer>17</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>0</integer>
+ </dict>
+ <key>LocationSelect.js</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>55</integer>
+ <key>line</key>
+ <integer>776</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>762</integer>
+ </dict>
+ <key>json-test.json</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>1</integer>
+ <key>line</key>
+ <integer>3</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>0</integer>
+ </dict>
+ <key>json.html</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>19</integer>
+ <key>line</key>
+ <integer>30</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>32</integer>
+ <key>firstVisibleLine</key>
+ <integer>8</integer>
+ </dict>
+ <key>json.js</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>63</integer>
+ <key>line</key>
+ <integer>6</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>0</integer>
+ </dict>
+ <key>json2.js</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>26</integer>
+ <key>line</key>
+ <integer>95</integer>
+ </dict>
+ <key>columnSelection</key>
+ <false/>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>110</integer>
+ <key>selectFrom</key>
+ <dict>
+ <key>column</key>
+ <integer>24</integer>
+ <key>line</key>
+ <integer>95</integer>
+ </dict>
+ <key>selectTo</key>
+ <dict>
+ <key>column</key>
+ <integer>33</integer>
+ <key>line</key>
+ <integer>95</integer>
+ </dict>
+ </dict>
+ <key>jsonParse.js</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>0</integer>
+ <key>line</key>
+ <integer>0</integer>
+ </dict>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>0</integer>
+ </dict>
+ <key>location.js</key>
+ <dict>
+ <key>caret</key>
+ <dict>
+ <key>column</key>
+ <integer>12</integer>
+ <key>line</key>
+ <integer>72</integer>
+ </dict>
+ <key>columnSelection</key>
+ <false/>
+ <key>firstVisibleColumn</key>
+ <integer>0</integer>
+ <key>firstVisibleLine</key>
+ <integer>67</integer>
+ <key>selectFrom</key>
+ <dict>
+ <key>column</key>
+ <integer>5</integer>
+ <key>line</key>
+ <integer>72</integer>
+ </dict>
+ <key>selectTo</key>
+ <dict>
+ <key>column</key>
+ <integer>12</integer>
+ <key>line</key>
+ <integer>72</integer>
+ </dict>
+ </dict>
+ </dict>
+ <key>openDocuments</key>
+ <array>
+ <string>LocationSelect.js</string>
+ <string>LocationSelect.html</string>
+ <string>location.js</string>
+ <string>json.html</string>
+ <string>json-test.json</string>
+ <string>jsonParse.js</string>
+ <string>json2.js</string>
+ <string>json.js</string>
+ </array>
+ <key>showFileHierarchyDrawer</key>
+ <true/>
+ <key>windowFrame</key>
+ <string>{{39, 102}, {808, 596}}</string>
+</dict>
+</plist>
View
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html lang="en-US" debug=true>
+<head>
+ <meta charset="UTF-8" >
+
+ <title>com.elfvision.kit.LocationSelect</title>
+ <style>
+ select {
+ display : none;
+ }
+ </style>
+ <script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="json2.js"></script>
+ <script type="text/javascript" src="LocationSelect.js"></script>
+
+ <script type="text/javascript">
+ /*global com, jsonParse */
+ var ls;
+ $(function() {
+ ls = new com.elfvision.kit.LocationSelect({
+ labels :["请选择一个省份或直辖市", "请选择一个城市", "请选择一个区"],
+ elements : $("select").get()
+ });
+ });
+
+
+ </script>
+</head>
+<body>
+ <select name="province" id="level0"></select>
+ <select name="city" id="level1"></select>
+ <select name="district" id="level2"></select>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 4361d6b

Please sign in to comment.