{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method '_fireDefaultButton(event, target)'
Method: _fireDefaultButton(event, target)
Method Full Name:     Sys$WebForms$PageRequestManager$_fireDefaultButton(event, target)
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_fireDefaultButton(event, target) {
2     if ((event.keyCode === 13) && !(event.srcElement && (event.srcElement.tagName.toLowerCase() === "textarea"))) {
3       var defaultButton = document.getElementById(target);
4       if (defaultButton && (typeof(defaultButton.click) !== "undefined")) {
5         
6         
7         this._activeDefaultButton = defaultButton;
8         this._activeDefaultButtonClicked = false;
9         try {
10          defaultButton.click();
11        }
12        finally {
13          this._activeDefaultButton = null;
14        }
15        
16        
17        event.cancelBubble = true;
18        if (typeof(event.stopPropagation) === "function") {
19          event.stopPropagation();
20        }
21        return false;
22      }
23    }
24    return true;
25  }
This is the JavaScript source for method _fireDefaultButton(event, target) from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_fireDefaultButton(event, target). It belongs to the class PageRequestManager, which is in Sys.WebForms namespace. This source is in MicrosoftAjaxWebForms.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map