Sha256: 1876d2541139da20736d88f86f3034a759d098ed963a16e5f93ed06e8b9999bd

Contents?: true

Size: 398 Bytes

Versions: 53

Compression:

Stored size: 398 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

53 entries across 53 versions & 3 rubygems

Version Path
page-object-2.2.6 lib/page-object/javascript/yui.rb
page-object-2.2.5 lib/page-object/javascript/yui.rb
page-object-2.2.4 lib/page-object/javascript/yui.rb
page-object-2.2.3 lib/page-object/javascript/yui.rb
page-object-2.2.2 lib/page-object/javascript/yui.rb
page-object-2.2.1 lib/page-object/javascript/yui.rb
page-object-2.2 lib/page-object/javascript/yui.rb
page-object-2.1.1 lib/page-object/javascript/yui.rb
page-object-2.1 lib/page-object/javascript/yui.rb
page-object-2.0.0 lib/page-object/javascript/yui.rb
page-object-1.2.2 lib/page-object/javascript/yui.rb
page-object-1.2.1 lib/page-object/javascript/yui.rb
page-object-1.2.0 lib/page-object/javascript/yui.rb
page-object-1.1.1 lib/page-object/javascript/yui.rb
page_object-1.1.3 lib/page-object/javascript/yui.rb
page_object-1.1.2 lib/page-object/javascript/yui.rb
page_object-1.1.1 lib/page-object/javascript/yui.rb
page-object-1.1.0 lib/page-object/javascript/yui.rb
page-object-1.0.3 lib/page-object/javascript/yui.rb
meeane-page-object-0.1.11 lib/page-object/javascript/yui.rb