script language

sponsored links

js and jsp interaction

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 (

Borrow Google's Javascript API Loader to speed up your website

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

javaScript techniques applied

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

I used the pagination class

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

Recently found a good use of JUnit test javascript

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

Open a new window with showModalDialog automatically close and refresh parent window

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 through the javascript so that button is grayed out as unavailable, the gray button

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> </

window.event.keyCode and event.which

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'

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

How to dynamically load the js file to another js file

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='

Length and width of the auto-scaling

Highly automated height: expression (document.180.clientWidth <180? "180px": "auto"); Width restrictions . Imgzoom img {behavior: url ("$ {base} / styles / imgzoom.htc"); <script language="javascript">

Javascript Get the link (url) Parameters

<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

[JavaScript] Js extension using the timer, perform or repeat the setTimeout, setInterval

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

js how to show hidden layer mouse

<script language="JavaScript"> function show () { document.getElementById ('explain'). style.display = "block"; } function hidden () { document.getElementById ('explain'). style.display = "none"; }

delphi call javascript

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

Analog to upload files with the JS loading progress bar

<! 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=

Commonly used website design skills (reprint)

<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

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:

Let "it" always stay in the top

<!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

jquery + json - to take back a jsonObject object

<!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

. NET, type in the code behind JS precautionary statements (background is not white)

Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert(' Join staging successful !');</script>");

jquery + json - provinces and two linkage

<!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

js callback function

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"> /

How to use JS to determine how many bytes of user input

<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

js avoid repeated submission form

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

Using CSS and JS, I recently had a site just to use the drop-down menu!

<!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 method of the three implementation

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

Beautify the drop-down list

<!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

flex nested html ----- flex-iframe

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

Double-click the mouse to determine js

<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

Caesar Caesar places

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

Js file in a file into another js

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

JS removing spaces at both ends of trim () method

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,

JS by rows to achieve the page. Deletion line

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

ASP.NET use alert pop-up dialog box, CSS style is invalid font larger solution

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

js set the picture in the lower right corner of the screen

<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

JS achieve the lower right corner of the screen image is always source

<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

struts2 file download error solution

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-

Daquan js form validation

//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()"> //

php-jquery-ajax submit returns an instance of

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

Prevent Trojan horse threats to your website

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

credited to a js cookie ip once a day only shells pop code

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()

dhtmlxTree use the sample

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

A simple example AJAX asynchronous communication

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

How do parameters with templates and query the main table

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

Parameter templates and how to do with the main query table

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

UCAP-many form fields in the callback configuration process

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

Money paid through online payment interface process and principle payment (transfer)

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

5 kinds of hanging black chain code

DIV: <div> <A href = http://www.hxhack.com/ target = "_blank"> hacking forum </ a> </ div> javascript: <script language="javascript" type="text/javascript"> document.write ("<div>

Windows Script Help (vbs + js) + VBScript array example

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,
Recent
Recent Entries
Tag Cloud
Random Entries