script language
Advertisements
js and jsp interaction 2010-03-04 22:36:36 | Category: Personal Diary | Tags: | font size medium and small subscription. For the WEB program, the front end (JavaScript) and back-end (JSP / Servlet) is unable to share data, only the back-end program (
Accelerate page loading speed has a way to CSS and JS files into another separate server, so access to the larger context than the main server can share the pressure, if your site uses some mainstream Ajax library such as JQuery or Prototype, you can
1. Oncontextmenu = "window.event.returnValue = false" will completely shield Right <table border oncontextmenu=return(false)> <td> no </ table> can be used for Table 2. <body Onselectstart="return false"> desele
public class Pagination { /** * * @param pageNum * The current number of pages * @param pageCount * The total number of pages * @param recordCount * The total number of * @param pageUrl * Page URL * @return */ public static String getPagination(int pageNu
Jsunit Junit is the javascript version, download and extract Jsunit zip, most of the core files are jsunit / app directory Two basic documents: . JsUnitCore.js - Each test file must refer to it . TestRunner.html - used to run specific jsunit test (1) the
1, the parent file index.php Involved in the following code function OpenDetail (Id) { window.showModalDialog ("pop.php? id =" + Id ,""," dialogwidth = 550px; dialogheight = 450px; status = no; help: no; scroll: yes; resizable: ye
struts page using javascript to achieve the button grayed out Html code <Html: form action = "12.do" method = "post"> <Html: button property = "bb" onclick = "test ();"> exit </ html: button> </
Netscape/Firefox/Opera Does not support the window.event.keyCode requires event.which Instead of Because IE is used event.keCode Method gets the current was pressing the keyboard key value, and NetScape/FireFox/Opera Use is event.which Fill in the te
Unix Shell Scripting of 'literacy articles' - [ cutting edge ] Tag: cutting edge of technology Copyright : reprint, please indicate the form of hyperlinks original source of article and author information and this statement http://bigwhite.bl
1, direct document.write <script language="javascript"> document.write ("<script src='test.js'> <\ / script>"); </ Script> 2, the dynamic script to change the src attribute has been <script src='
Highly automated height: expression (document.180.clientWidth <180? "180px": "auto"); Width restrictions . Imgzoom img {behavior: url ("$ {base} / styles / imgzoom.htc"); <script language="javascript">
<script language="javascript">document.write(window.location.href ); </script> Format http://127.0.0.1/index.php?c=index&name=top # mao <script language="javascript">document.write(window.location.protocol);</script> Format is
Use timers to achieve the implementation of JavaScript or repeated extension window object provides two methods to achieve the effect of the timer, namely window.setTimeout () and window.setInterval. Where the former can make a piece of code to run after
<script language="JavaScript"> function show () { document.getElementById ('explain'). style.display = "block"; } function hidden () { document.getElementById ('explain'). style.display = "none"; }
function ExecScript (Code, Lang, Func: string): string; var script: OleVariant; begin try script: = CreateOleObject ('ScriptControl'); script.Language: = Lang; script.AddCode (Code); Result: = script.Eval (Func); except end; end; Call: AStr: = Exe
<! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=
<body "overflow:scroll;overflow-y:hidden "> </ Body> So there is no bar: <body "overflow:scroll;overflow-x:hidden "> </ Body> Two are removed? More simple <body scroll= "no "> </ Body> 23.
JS Popup / window to collect the source code , Very wide, very good use ! <!DOCTYPE html> <html> <head><title>JS Popup </title> <style> body {margin:0px} #Loading {position:absolute;z-index:10;left:10px;top:10px;border:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=utf-8" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 9.00.8112.16421"></HEAD> <BODY
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <script ty
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert(' Join staging successful !');</script>");
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <script ty
Topics: java, php, javaScript implementation of the callback function http://www.javaeye.com/topic/207746 JS in the practice. JS practices in specific ways ......... slightly more flexible, I am here only one <script language="jscript"> /
<HTML> <HEAD> <TITLE>test</TITLE> <meta http-equiv=content-type content="text/html; charset=UTF-8"> <script language=javascript> function test(){ var testInput=document.getElementById("test").value; var len=testInp
First: The flag logo, the following code to set checkSubmitFlg flag: <script language=""javascript""> var checkSubmitFlg = false; function checkSubmit () {if (checkSubmitFlg == true) {return false; / / if the table After the
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char
web printing, web printing control of the three implementations When do management systems, printing has always been a difficult problem, to do B / S-system, the problem is more dramatic! Cited the following three commonly used web printing approach 1, th
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> simulate combox control - http://www.never-online.net </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTE
In development, met the need to embed flex activex, previous practice is the object directly to the control object directly on the flex of the html-template, in fact, this can be achieved, but this practice should not be part of our nature need to in: fle
<input type="button" ondblclick="bb()" value=" Point I "> <script language="javascript"> var isdb; function aa () { isdb = false; window.setTimeout (cc, 500) function cc () { if (isdb! = false) return; a
showModalDialog / showModelessDialog instance, the parent window, pass a value to the child window, child window to set the value of the parent window The following is showModalDialog / showModelessDialog use of examples, the parent window to pass values
The first js file (js file to be introduced), the file name one.js, reads as follows function alertInOne () { alert ('in one'); } The second js file, the file name two.js, reads as follows / / Note that this place document.write ("<script
Remove the string around both ends of the space inside the vbscript can easily use the trim, ltrim, or rtrim, but in js but not in the way these three built-in, written by hand. The following implementation is to use a regular expression, good efficiency,
Here is the JS script ========================== <SCRIPT Language="JavaScript"> var tempRow = 0; var maxRows = 0; function insertRows () { tempRow = table1.rows.length-1; maxRows = tempRow; tempRow = tempRow +1; var Rows = table1.rows
Pop-up prompt to use the Response.Write ("<script> alert ('deleted successfully');</ script>"), do not know what can not be used, the font larger. Solution is as follows: Use Page.ClientScript.RegisterStartupScript (this
<HTML xmlns = " http://www.w3.org/1999/xhtml "> <head> <title> title page </ title> <SCRIPT LANGUAGE="JavaScript"> function setVariables () { imgwidth = 235; / / image width imgheight = 19; / / image
<HTML xmlns = " http://www.w3.org/1999/xhtml "> <head> <title> title page </ title> <SCRIPT LANGUAGE="JavaScript"> function setVariables () { imgwidth = 235; / / image width imgheight = 19; / / image
1. Jsp page hyperlinks <a href="javascript:void(0)" "downloadFile('${id}')"> $ {name} </ a> 2. Form submission <form action="downloadFile.html" method="post" enctype="multipart/form-
//js Daquan verification form //1. Length limit //<script> function test() { if(document.a.b.value.length>50) { alert(" Can not exceed 50 characters !"); document.a.b.focus(); return false; } } //<form name=a onsubmit="return test()"> //
html page (index.html) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"> <head> <meta http-equ
If you are using 0574hotel station, then the following code can prevent Trojan horse threats to your website: The following code into the bottom of your pages, ie foot.htm the bottom of the template, the "php168.com" replaced with your doma
Ip credited to only one day a bomb cookie once pop code <Script Language="JavaScript"> function setCookie(name, value, expire) { window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()
http://dhtmlx.com include the directory tree, menus, toolbars, and many other js control function is very powerful. Use the following sample record now dhtmlxTree (including the directory tree, context menu): 1, the required js files dhtmlxcommon.js dhtml
textarea Asynchronous submission loses focus index.jsp The key code is as follows : First step : Other controls can also be written page , Not limited to textarea <s:form action="" method="post"> <div > <p > Mood today :</p> <p
In some cases, there will be parameters to show the structure of templates and reports to do with the demand, that is, the parameters of the template and the corresponding statements made on the same report. In such cases, only the top of the report to ma
In some cases, there will be arguments and show the structure of the report template to do with demand, that is, the parameters of the template and the corresponding statements made on the same report. In such cases, only the top of the report make a butt
1 to session.jsp page, registration JS script file, such as <SCRIPT language=javascript src="<%=sSystemPath%>js/user/store.js"></SCRIPT> 2, New store.js script files to the specified project path "If there is, more than two ste
1 business generated according to customers' payment behavior orders, including merchant number, order number, amount, and other pay elements, and submit the payment request. 2 users pay a successful, money paid through the use of call back method wil
DIV: <div> <A href = http://www.hxhack.com/ target = "_blank"> hacking forum </ a> </ div> javascript: <script language="javascript" type="text/javascript"> document.write ("<div>
VBScript example: Array Option Explicit Dim arr (3), i For i = 0 To 3 arr (i) = InputBox ("Enter the first" & i +1 & "Number ","") 'input number 4 Next MsgBox "You entered the array is:" & Join (arr,