Sha256: 26d7db7c51bbf5acdf156398998207cfa3e8dae5014de52a004c284d02bb94f6

Contents?: true

Size: 416 Bytes

Versions: 10

Compression:

Stored size: 416 Bytes

Contents

module PageObject
  module Javascript

    module YUI
      #
      # return the number of pending ajax requests
      #
      def self.pending_requests
         "var inProgress=0
         for(var i=0; i < YAHOO.util.Connect._transaction_id; i++) {
           if(YAHOO.util.Connect.isCallInProgress(i))
             inProgress++;
         }
         return inProgress;"
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
centric_page_object-2.3.1 lib/page-object/javascript/yui.rb
page-object-2.3.1 lib/page-object/javascript/yui.rb
page-object-2.3.0 lib/page-object/javascript/yui.rb
page-object-lds-0.0.14 lib/page-object/javascript/yui.rb
page-object-lds-0.0.13 lib/page-object/javascript/yui.rb
page-object-lds-0.0.12 lib/page-object/javascript/yui.rb
page-object-lds-0.0.11 lib/page-object/javascript/yui.rb
page-object-lds-0.0.1 lib/page-object/javascript/yui.rb
meeane-page-object-0.1.10 lib/page-object/javascript/yui.rb
meeane-page-object-0.1.8 lib/page-object/javascript/yui.rb