Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. <!-- Code that works -->
  2. <body>
  3.  
  4. <form method="post" action="test3.aspx" id="form1">
  5. <div class="aspNetHidden">
  6. <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="g1BOVK4ivdag7NTsF5sIcY8bYH7jL83ErNBo3JDWlWtoIFYV7okISgj0UZ0oEYdqWqHRi5oJPgl7ChQrVYqHtQ/2+z/Qvli0PuMmOK9NTrK77Uy2KMiWR+dtU8Co2kACt5gQ/iCFJg0Z3L6AkVzugRiOcc5L6Z+MtUZodefKJ0Q=" />
  7. </div>
  8.  
  9. <div id="dksf">
  10.  
  11. <span>
  12.  
  13. <input name="AutoCompleteTextBoxControl1$project" type="text" value="joe" id="AutoCompleteTextBoxControl1_project" />
  14.  
  15.  
  16.  
  17. <input type="submit" name="Button1" value="Button" id="Button1" />
  18. <span id="Label1">joe</span>
  19.  
  20. </div>
  21. </span>
  22. </asp:Panel>
  23. <br />
  24. <br />
  25. <input name="AutoCompleteTextBoxControl2$project" type="text" value="ed" id="AutoCompleteTextBoxControl2_project" />
  26.  
  27.  
  28. <input type="submit" name="Button2" value="Button" id="Button2" />
  29. <span id="Label2">ed</span>
  30.  
  31. <script type="text/javascript">
  32. //<![CDATA[
  33.  
  34. $(function () {
  35. var projects =[{ value: "rob", }, { value: "john", }, { value: "ed", }, { value: "joe", `enter code here`}, { value: "ellen", }, { value: "yikes", }, { value: "you", }, { value: "me", }, { value: "everyone", }, { value: "then", }, { value: "now", }, { value: "astute", }, { value: "bee", }, { value: "who", }, ];
  36.  
  37. $("#AutoCompleteTextBoxControl1_project").autocomplete({
  38. minLength: 0,
  39. source: projects,
  40. focus: function (event, ui) {
  41. $("#AutoCompleteTextBoxControl1_project").val(ui.item.label);
  42. return false;
  43. },
  44. select: function (event, ui) {
  45. return false;
  46. }
  47. })
  48. .data("ui-autocomplete")._renderItem = function (ul, item) {
  49. return $("<li class='small'>")
  50. .append("<a>" + item.label + "</a>")
  51.  
  52. .appendTo(ul);
  53. };
  54. });
  55.  
  56. $(function () {
  57. var projects =[{ value: "rob", }, { value: "john", }, { value: "ed", }, { value: "joe", }, { value: "ellen", }, { value: "yikes", }, { value: "you", }, { value: "me", }, { value: "everyone", }, { value: "then", }, { value: "now", }, { value: "astute", }, { value: "bee", }, { value: "who", }, { value: "mike", }, { value: "steve", }, { value: "ed", }, { value: "evening", }, { value: "yes", }, { value: "", }, ];
  58.  
  59. $("#AutoCompleteTextBoxControl2_project").autocomplete({
  60. minLength: 0,
  61. source: projects,
  62. focus: function (event, ui) {
  63. $("#AutoCompleteTextBoxControl2_project").val(ui.item.label);
  64. return false;
  65. },
  66. select: function (event, ui) {
  67. return false;
  68. }
  69. })
  70.  
  71. .data("ui-autocomplete")._renderItem = function (ul, item) {
  72. return $("<li class='small'>")
  73. .append("<a>" + item.label + "</a>")
  74. .appendTo(ul);
  75. };
  76. });
  77. //]]>
  78. </script>
  79. </form>
  80.  
  81. <!-- Visual Studio Browser Link -->
  82. <script type="application/json" id="__browserLink_initializationData">
  83. {"appName":"InternetExplorer","requestId":"2357dc9d78cb4c2386fb5318c0ab0a0d"}
  84. </script>
  85. <script type="text/javascript" src="http://localhost:64055/c6a87a69ad894dde8c5d78e5e6825d47/browserLink" async="async"></script>
  86. <!-- End Browser Link -->
  87.  
  88. </body>
  89. </html>
  90.  
  91. <!- End of Code that works -->
  92.  
  93. $("#MainContent_AutoCompleteTextBoxControl1_project").autocomplete({
  94. minLength: 0,
  95. source: projects,
  96. focus: function (event, ui) {
  97. $("#MainContent_AutoCompleteTextBoxControl1_project").val(ui.item.label);
  98. return false;
  99. },
  100.  
  101. <header>
  102. <div class="content-wrapper">
  103. <div class="float-left">
  104. <p class="site-title">
  105. <a href="./">header</a></p>
  106. </div>
  107.  
  108. </div>
  109. </header>
  110. <div id="body">
  111.  
  112.  
  113.  
  114.  
  115. <section class="content-wrapper main-content clear-fix">
  116. <br />
  117.  
  118.  
  119. <input name="ctl00$MainContent$AutoCompleteTextBoxControl1$project" type="text" value="ellen" id="MainContent_AutoCompleteTextBoxControl1_project" />
  120.  
  121.  
  122.  
  123. <input type="submit" name="ctl00$MainContent$Button1" value="Button" id="MainContent_Button1" />
  124. <span id="MainContent_Label1">ellen</span>
  125. <br />
  126. <br />
  127. <input name="ctl00$MainContent$AutoCompleteTextBoxControl2$project" type="text" id="MainContent_AutoCompleteTextBoxControl2_project" />
  128.  
  129.  
  130.  
  131. <input type="submit" name="ctl00$MainContent$Button2" value="Button" id="MainContent_Button2" />
  132. <span id="MainContent_Label2">Label</span>
  133.  
  134. </section>
  135. </div>
  136. <footer>
  137. <div class="content-wrapper">
  138. <div class="float-left">
  139. <p>
  140. footer
  141. </p>
  142. </div>
  143. </div>
  144. </footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement