ÔõÑù½«jspÒ³ÃæµÄJavaScript´úÂëת»»³ÉjsÎļþ£¿
ÒýÓÃ
Ö±½Ó°ÑJavaScript´úÂ븴ÖÆ£¬È»ºó½¨Á¢¸öÎļþxxx.js½«¸´ÖƵĴúÂëÕ³Ìùµ½xxx.jsÖС£
È»ºóÔÙÔÀ´µÄjspÒ³Ãæͨ¹ý
<script language="javascript" src="<%=request.getContextPath()%>/xxx.js"></script>
ÒýÈë¸Õ²Å±£´æµÄjsÎļþ¡£
......
<script language="javascript">
var canSubmit = false ;
function formCheck()
{
getResult("TDJY_SCANDOC","SCANDATANAME");
if(canSubmit==false){
return false;
}
else{
return true;
}
}
&nb ......
Ç뿴϶˽ű¾£¬ÎÒ×öµÄÒ»¸ö½Å±¾¼ì²â±êÌâÊÇ·ñÖظ´µÄ£¬ÈôÖظ´£¬²»ÈÃÆäÌá½»¡£
º¯ÊýÈë¿ÚÊÇcheck£¨£©º¯Êý£¬ÔÚÆäelseÓï¾äÖе÷ÓÃÁËsendRequestTitle();ͨ¹ýsendRequestTitle();
µÄÏìÓ¦º¯ÊýprocessResponseTitle()À´¸ù¾Ýºǫ́µÄÅжÏÇé¿öÐÞ¸ÄflagµÄÖµ£¬flagÊǸöÈ«¾Ö±äÁ¿£¬ÕâÑùдÔÚprocessResponseTitle()º¯ÊýÀïÓ¦¸Ã¿ÉÒÔÐ ......
ÍøÉÏÕÒµ½ÒÔÏÂ×ÊÁÏ
activexÀ´²Ù×÷javascriptº¯Êý¡£
ÎÒÃÇÔÚÍøÒ³ÖмÓÈëÒ»¶Îjavascript´úÂ룺
function Test(){
alert("test")
}
ÔÚactivexÎÒÃÇ¿ÉÒÔͨ¹ýÈçÏ´úÂëÀ´µ÷Óá£
UserControl.Parent.Script.Test()
ͬʱÎÒÃÇ¿ÉÒ ......
HTML code:
<asp:TextBox ID="Name" runat="server" onblur="checkName()">2</asp:TextBox><asp:Label runat="server" ID="NameCheck"></asp:Label>
JScript code:
function checkName()
{
var lre ......
ÎÒÏëÓÃjavascriptÖÐÉèÖÃasp:TableRowµÄ.VisibleµÄÊôÐÔ£¬Çë¸÷λ¸ßÊÖ°ï°ïÎÒ¡£Ê¤Îª¸Ð¼¤
<asp:Table runat="server"><asp:TableRow ID="tr1"><asp:TableCell>´ó·¨Ê¦</asp:TableCell></asp:TableRow></asp:Table>
<script type="text/javascript">
......
×ܼǼÊý:938; ×ÜÒ³Êý:157; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] 4
[5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ