From a4ae3b9c4c4bcd299fe4bce28ca0277edb33ef8e Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 1 Nov 2010 23:53:52 -0400 Subject: [PATCH] removed ajaxform plugin and experiments --- experiments/ajax-search/_search-results.html | 118 ------------------- experiments/ajax-search/_search.html | 31 ----- js/jquery.mobile.forms.ajaxform.js | 58 --------- 3 files changed, 207 deletions(-) delete mode 100644 experiments/ajax-search/_search-results.html delete mode 100644 experiments/ajax-search/_search.html delete mode 100644 js/jquery.mobile.forms.ajaxform.js diff --git a/experiments/ajax-search/_search-results.html b/experiments/ajax-search/_search-results.html deleted file mode 100644 index 14423036..00000000 --- a/experiments/ajax-search/_search-results.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - jQuery Mobile Framework - Search Results - - - - - -
-
-

Search Results

- -
- -
- - - -
- -
-

12 Results for "Justin Bieber"

- -
    -
  1. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  2. -
  3. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  4. -
  5. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  6. -
  7. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  8. -
  9. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  10. -
  11. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  12. -
  13. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  14. -
  15. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  16. -
  17. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  18. -
  19. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  20. -
  21. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  22. -
  23. - jb -

    Page A

    -

    Quick description about this item here

    - 22 - browse details -
  24. -
- -
-
- - - - \ No newline at end of file diff --git a/experiments/ajax-search/_search.html b/experiments/ajax-search/_search.html deleted file mode 100644 index 35752be0..00000000 --- a/experiments/ajax-search/_search.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - jQuery Mobile Framework - Search Example - - - - - -
-
-

Search

- -
- -
- - - -
- -
-

No search results yet...

- -
-
- - - - \ No newline at end of file diff --git a/js/jquery.mobile.forms.ajaxform.js b/js/jquery.mobile.forms.ajaxform.js deleted file mode 100644 index 53c95248..00000000 --- a/js/jquery.mobile.forms.ajaxform.js +++ /dev/null @@ -1,58 +0,0 @@ -/* -* jQuery Mobile Framework : "ajaxform" plugin -* Copyright (c) jQuery Project -* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. -* Note: Code is in draft form and is subject to change -*/ -(function($){ - -//ajax response callbacks -$.formhandlers = { - 'default' : function(data,type){ - return $(data).find('[data-role="content"]:eq(0)'); - } -}; - -$.fn.ajaxform = function(options){ - return $(this).each(function(){ - $this = $(this); - - //extendable options - var o = $.extend({ - submitEvents: '', - method: $this.attr('method'), - action: $this.attr('action'), - injectResponse: true,//should be data-attr driven - dataFilter: $.formhandlers['default'], //should be data-attr driven - theme: $this.data('theme') || 'b' - }, options); - - $this.addClass('ui-autoform ui-bar-'+o.theme); - - $this.bind(o.submitEvents, function(){ - $(this).submit(); - }); - - $this.submit(function(){ - $.pageLoading(); - $.ajax({ - url: o.action, - type: o.method, - data: $(this).serialize(), - dataFilter: o.dataFilter, - success: function(data,textStatus){ - $('.ui-page-active .ui-content').replaceWith( data ); - $('.ui-page-active [data-role="content"]').page(); - $.pageLoading(true); - } - }); - return false; - }); - }); -}; - - - - -})(jQuery); -