Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ADF ÖÐOnClickµÄJavaScriptµÄÖ§³ÖÎÊÌâ

ADF 11g²»ÔÙÖ§³ÖOnclickµÈJavaScript£¬¶øÊDzÉÓÃ<af:clientListener>À´ÊµÏÖÖîÈçɾ³ýijÌõ¼Ç¼µÄÌáʾ¿ò¡£
ʵÏÖ·½Ê½ÈçÏ£º
 
 function confirmDelete() {
if (confirm('Are you sure you want to delete this record?'))
return true;
else
return false;
}

<af:commandLink actionListener="#{bindings.removeRowWithKey.execute}"
action="#{viewCalStatus.deleteCalStatus}" text="Delete">
<af:clientListener method="confirmDelete" type="click"/>
<af:setActionListener from="#{row.rowKeyStr}" to="#{requestScope.calStatusRow}"/>
</af:commandLink>

ADF ÖеÄ<af:commandLink>ºÍ<af:commandButton>´«µÝ²ÎÊýµÄ·½·¨
<af:commandLink id= “” text= “”><f:param name= “param_name” value= “param_value”/></ af:commandLink>     ÆÀÂÛ£º<af:commandLink>¿ÉÒÔ²ÉÓø÷½·¨´«µÝ²ÎÊý£¬¶ø<af:commandButton>²»ÐС£²»¹ý¿ÉÒÔÓ¦ÓÃ<h: commandButton >´úÌæ<af:commandButton>ʵÏÖ²ÎÊý´«µÝ¡£¾ßÌå·½·¨ÈçÏ£º  <h:commandButton value="¸üÐÂ" action="#{emplBean.edit_action}" id="cb1"> <input type="hidden" name="emplId" value="${emplBean.employee.empno}"/></h:commandButton>  


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐĿǰ¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×î¶¥¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×î¶¥¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

Javascriptµ÷ÓÃWebService

WebServiceÎļþ£º
  [WebMethod]
public int DoMulti(int num1,int num2)
{
int result;
result = num1 * num2;
return result;
}
ASPXÎļþ£º
<%@ Page language="c#" Codebehind="Javascript.aspx.cs" AutoEventWireup="false" Inherits=" ......

¹ØÓÚjavascript ²Ù×÷¹â±ê

°æ±¾£ºDHTML Object Model¡¡·µ»ØÖµ£ºÓÐ
Óï·¨£º
oTextRange = object . createTextRange ()
²ÎÊý£º
ÎÞ
·µ»ØÖµ£º
oTextRange : ¶ÔÏó(Element)¡£Èç¹û³É¹¦µÄ»°·µ»Ø±»½¨Á¢µÄ TextRange ¶ÔÏó¡£
˵Ã÷£º
Ϊ object ½¨Á¢ TextRange ¶ÔÏó¡£
ʹÓÃ´Ë TextRange ¶ÔÏó¿ÉÒÔ¼ìË÷ºÍÐÞ¸Ä object ÄÚµÄÎı¾¡£ TextRange ¶ÔÏ ......

JavaScriptµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>JSµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡</title>
    <script type="text/javascript">
      //ת»»wordµÄº¯Êý
      function ......

JavaScript È«½Ç°ë½Çת»»ÎÊÌâ

<script language=JAVAscript>
var s="b";
var strCode
for(var i=0;i<s.length;i++)
{
strCode=s.charCodeAt(i);
if((strCode>65248)||(strCode==12288))
{
alert("ÓÐÈ«½Ç");
break;
}
}
</script>
°ë½Ç×Ö·ûÓÉÒ»¸ö×Ö½Ú±£´æ£¬È«½Ç×Ö·ûÓÃÁ½¸ö×Ö½Ú±£´æ
ËùÒÔÂëÖµµÄ¾ø¶ÔֵСÓÚ256µÄ¾ÍÊǰë½Ç£¬· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ