javascript Êý¾Ý¿âÈ¡Êý¾Ý ȫѡºÍ·´Ñ¡
javascriptËù¶ÔÓ¦µÄȫѡºÍ·´Ñ¡ ¡£²Ù×÷Êý¾Ý¿â¼Ç¼¡£
ÒÔÏÂÊÇÒ³Ãæ´úÂ룺
<tr>
<td colspan="6" width="100%">
<table border="2" width="100%">
<tr class="center">
<th width="20%" class="center">
ȫѡ/·´Ñ¡<input type="checkbox" name="all"
onclick="ckeckAll(this);">
</th>
<th width="20%" class="center">
ÏäÖ÷
</th>
<th width="20%" class="center">
ÏäºÅ
</th>
<th width="20%" class="center">
ÏäÐÍ
</th>
<th width="20%" class="center">
ÏäÀà
</th>
</tr>
<tbody id="listTable">
<logic:iterate id="ylxhlist" name="lssqdListForm"
property="ylxhlist"
indexId="index">
<%
int i=index.intValue();
%>
<tr>
<th width="20%" class="center">
<html:checkbox property="checkbox1" name="ylxhlist"
value="true" indexed="true"/>
<html:hidden name="ylxhlist" property="id" indexed="true"
/>
<html:hidden name="ylxhlist" property="zbid"
indexed="true" />
<html:hidden name="ylxhlist" property="xxdm"
indexed="true" />
<html:hidden name="ylxhlist" property="xldm"
indexed="true" />
<html:hidden name="ylxhlist" property="ztmc"
indexed="true" />
<html:hidden na
Ïà¹ØÎĵµ£º
///ÏÂÃæÊǶÔAccessµÄÁ´½Ó
function getCountfromDB() {
//ÒÔµ±Ç°Ò³ÃæÎļþΪ»ù´¡£¬ÕÒµ½ÎļþËùÔڵľø¶Ô·¾¶¡£
var filePath = location.href.substring(0, location.href.indexOf("Cnt.htm"));
var path = filePath + "MyData.mdb";
//È¥µ ......
<!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 runat="server">
<title>ÎÞ±êÌâÒ³</title>
</head>
<body>
<form id ......
ÈçºÎÆÁ±ÎjavascriptµÄ´íÎóÐÅÏ¢:
Ö»ÒªÔÚÒ³ÃæÖмÓÈëÈçÏ´úÂë¼´¿É£º
<SCRIPT LANGUAGE='JavaScript'>
<!--
//ÆÁ±Îjs´íÎó
function ResumeError() {
return true;
}
window.onerror = ResumeError;
// -->
</SCRIPT> ......
×î½üÒ»Ö±ÔÚÓÃjavascriptÔÚ×öÏîÄ¿
¿ÉÊÇ×ö×Å×ö×Å
¸Ð¾õºÜ¶à¹¦ÄÜ´úÂë¶¼ÊÇÖØ¸´µÄ¡£
±ÈÈç¶ÔjavascriptÊý×éµÄÅÅÐò
»¹ÓжÔÊý×éÊý¾ÝµÄɾѡÒÔ¼°·Ö×é
ËùÒÔ£¬ºóÀ´ÐËÖÂÒÔÉÏÀ´¡£
Ò»·¢²»¿ÉÊÕʰ¡£
дÁËÒ»¸öÄÜÔÚjavascriptÖÐÓ¦ÓÃµÄ SQL ¿â
ºóÀ´ÓÖÏ룬Ôõô²»ÄÜÓÃjavascriptÖ±½ÓÁ¬½ÓÊý¾Ý¿âÄØ£¿
ÓÖ×öÁËÒ»¸öjavascriptÖ±Á¬SqlÊý¾ÝµÄÀà¿â ......