The direct use of Response.Redirect ("default.aspx") of course the validation failed, because you did not establish an authentication ticket. FormsAuthentication.RedirectFromLoginPage method, will automatically complete a lot of functions. such as
Use a click on the button to jump JS, the statement is very simple:
The test found that it can be used under IE and Firefox is not available. So I added a window to the front of the location to read:
onclick= "Window.location.href ('
Window.onload = function () {alert ("Welcome");}This kind of writing function is to want after the page load, automatically execute the definition of JS code (function).
$ (document). Ready (function () {...}) This function is used to replace the
This article mainly uses jquery to achieve scrolling news, so few code can realize this function is really can't help exclaiming jquery's powerful function.
Copy Code code as follows:
1 Sweet loose sweater
Copy Code code as follows:
Using prototype inheritance, a temporary object is used as the prototype property of the child, and the prototype property of the temporary object points to the prototype of the parent class.
Prevents all subclass
1. Automatic loading of classes in modules
Copy Code code as follows:
$loader = new Zend_application_module_autoloader (Array (//module content Auto Load class
' Namespace ' => ' Blog ',//namespace definition is the beginning of the method
var mydate = new Date ();
Mydate.getyear (); Get Current year (2-bit)
Mydate.getfullyear (); Get full year (4-bit, 1970-????)
Mydate.getmonth (); Get Current month (0-11, 0 for January)
Mydate.getdate (); Get the current day (1-31)
Mydate.getday ();
I currently use Demo.js as a file operation. Code:
var now = function () {return + (new Date ());}
var t_s = Now ();
while (now ()-t_s
Use sleep.php as the request file operation. Code:
1. General Script Tag Loading
Copy Code code as follows:
Asp:textbox id= "Txtfoldernameeng" cssclass= "Frmtxt" runat= "Server" maxlength= "onkeypress=" "Textvalidate" () >
Use the above method in the onkeypress event of the TextBox.
You can restrict the input *
Base.js--The realization of inheritance ==========================
Note: After inheritance, if the parent class is a class, its properties are inherited, methods (including those declared with prototype), static methods, or only properties and
jquery implements custom tooltip, with specific code as follows
Copy Code code as follows:
Sweet loose sweater must be red . this autumn
Autumn outfit hundred Small vest less than 50 yuan .
Slim Korean
Copy Code code as follows:
var wait=60;//time
function Time (o,p) {//o is the object of the button, p is optional, here is 60 seconds later, prompt text changes
if (wait = = 0) {
O.removeattr ("Disabled");
O.val ("Click Send
All kinds of problems do low-level interface compatibility, nothing more than using if, to determine the client support which interface problem. The most famous example is the event:
Copy Code code as follows:
var addevent = function
Use DOM script to set style information: (by Wushan)
On most occasions, we use CSS to set styles, but in some special cases, for example, to set the node style information based on the position of the element in the node tree, CSS is not yet able to
The page then has several events that dynamically increase the DOM element, such as clicking on a layer to list the details below, so that there is no problem with FF and Chrome, but it is ie6-8 every time under the sun.
For example, I drag a
Jstree Home:
http://www.jstree.com/
This provides a way to render the data from the background into a tree:
Copy Code code as follows:
$ ("#mytree"). Tree ({
Data: {
Type: "JSON",
URL: "${ctx}/user/power!list.do"
}
});
Call:
Copy Code code as follows:
Display results as:
202.105.128.73, Shenzhen, Guangdong province
Do not IP as long as the region's words are called:
Copy Code code as follows:
Display results
Phpexcel Basic operations:Defining Excel EntitiesDefines a Phpexcel object and sets the display content within the Excel object
Excel starts
//prepares Excel for include file
//Error reporting
error_reporting (0);
Phpexcel
require_once
Recently used Phpcms V9 two times to develop a person site, before using 2008 has a more comfortable keyword all display function, and v9 added keyword list function to the search, if the search for a keyword will automatically generate an increase
If you only want to download the ready-made use, you can go to this page to find.The license is "WTFPL", which is "do What the fuck your Want to public License".The source code is as follows (since there are comments, it is not otherwise stated):
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service