Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : javascript

ÔÚUpdatepanelÖÐʹÓÃJAVASCRIPTµÄÎÊÌâ(ת)

ÔÚUpdatepanelÖÐʹÓÃJAVASCRIPTµÄÎÊÌâ
ÔÚUpdatePanle×ÜʹÓÃjavascriptÈ磺Response.Write("<script language='javascript'>alert('" + error.Message.ToString() + "');history.back(-1);</script>"); ʱ£¬µ¯³öÀ´Ò»¸öÌáʾ¶Ô»°¿ò
Sys.WebForms.PageRequestManagerParserErrorException:
The   message   received   from   the   server   could   not   be   parsed   .   Common   causes   for   this   error   are   when   the   response   is   modified   by   calls   to   Responsed.Write(),response   filters,HttpModules,   or   server   trace   is   enabled.
Details:Error   parsing   near' ("<script language='ja'
Ô­Òò¿ÉÄÜÊÇÊÇUpdatePanelÀïÃæ²»Ö§³Öjs½Å±¾¡£
Ö±½Ó¸ü¸Ä´ËÓï¾äΪÈçϼ´¿É
System.Web.UI.ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "", "alert('" + error.Message.ToString() + "');history.back(-1);", tru ......

JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ

Ô­ÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ  
ÖÚËùÖÜÖªwindow.open() º¯Êý¿ÉÒÔÓÃÀ´´ò¿ªÒ»¸öд°¿Ú£¬ÄÇôÈçºÎÔÚ×Ó´°ÌåÖÐÏò¸¸´°Ìå´«ÖµÄØ£¬Æäʵͨ¹ýwindow.opener¼´¿É»ñÈ¡¸¸´°ÌåµÄÒýÓá£
ÈçÎÒÃÇн¨´°ÌåFatherPage.htm:
XML-Code:
<script type="text/javascript">
function OpenChildWindow()
{
    window.open('ChildPage.htm');  
}
</script>
<input type="text" id="txtInput" />
<input type="button" value="OpenChild" onclick="OpenChildWindow()" />
È»ºóÔÚChildPage.htmÖм´¿Éͨ¹ýwindow.openerÀ´·ÃÎʸ¸´°ÌåÖеÄÔªËØ£º
XML-Code:
<script type="text/javascript">
function SetValue()
{
    window.opener.document.getElementById('txtInput').value
        =document.getElementById('txtInput').value;
    window.close();
}
</script>
<input type="text" id="txtInput" />
<input type="button" value="SetFather" onclick="SetValue()" />
ÆäʵÔÚ´ò¿ª×Ó´°ÌåµÄÍ ......

JavaScriptÖÐ µÄµ¹¼Æʱ

<html>
<head>
<title></title>
</head>
<body>
<form id=aa name=aa>
<input type=button value="ͬÒâ(10)" id=a1 disabled="disabled">
</form>
</body>
</html>
<script>
var num=10;
window.setTimeout("aa()",1000);
function aa()
{
 num--;
 if(num==0)
 {
  document.aa.a1.value="ͬÒâ";
  document.aa.a1.disabled="";
  return;
 }
 document.aa.a1.value="ͬÒâ("+num+")";
    window.setTimeout("aa()",1000);
}
</script> ......

JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2

Ô­ÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2-showModalDialog  
ǰһƪÎÄÕÂJavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµÖн²µ½ÁËÈçºÎÀûÓÃwindow.open()·½·¨´ò¿ªÐ´°Ì壬²¢ÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµµÄ·½·¨¡£javascriptÖл¹ÓÐÒ»¸öº¯Êýwindow.showModalDialogÒ²¿ÉÒÔ´ò¿ªÒ»¸öд°Ì壬²»¹ýËû´ò¿ªµÄÊÇÒ»¸öģ̬´°¿Ú£¬ÄÇôÈçºÎÔÚ¸¸´°ÌåºÍ×Ó´°ÌåÖ®¼ä´«ÖµÄØ£¿ÎÒÃÇÏÈ¿´¸Ãº¯ÊýµÄ¶¨Ò壺vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])   
²ÎÊý˵Ã÷£º 
sURL--±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏÔʾµÄÎĵµµÄURL¡£ 
vArguments--¿ÉÑ¡²ÎÊý£¬ÀàÐÍ£º±äÌå¡£ÓÃÀ´Ïò¶Ô»°¿ò´«µÝ²ÎÊý¡£´«µÝµÄ²ÎÊýÀàÐͲ»ÏÞ£¬°üÀ¨Êý×éµÈ¡£¶Ô»°¿òͨ¹ýwindow.dialogArgumentsÀ´È¡µÃ´«µÝ½øÀ´µÄ²ÎÊý¡£
sFeatures--¿ÉÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´ÃèÊö¶Ô»°¿òµÄÍâ¹ÛµÈÐÅÏ¢£¬¿ÉÒÔʹÓÃÒÔϵÄÒ»¸ö»ò¼¸¸ö£¬Ó÷ֺœ;”¸ô¿ª¡£   
dialogHeight :¶Ô»°¿ò¸ß¶È£¬²»Ð¡ÓÚ£±£°£°px£¬£É£Å£´ÖÐdialogHeight ºÍ dialogWidth ĬÈϵĵ¥Î»ÊÇem£¬¶ø£É£Å£µÖÐÊÇpx£¬Îª·½±ãÆä¼û£¬ÔÚ¶¨Òåmodal·½Ê½µÄ¶Ô»°¿òʱ£¬ÓÃpx×öµ¥Î»¡£
dialogWidth: ¶Ô»°¿ò¿í¶È¡£&nb ......

javascriptʵÏÖ¶ÔÎļþÉÏ´«ÀàÐ͵ÄÏÞÖÆ

×¢£º http://www.java114.com/277/content4355.html
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> upload </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<FORM ACTION="load.jsp" METHOD="POST" ENCTYPE="mutipart/form-data" name="myform">
 ÇëÑ¡ÔñÉÏ´«Îļþ£º<INPUT TYPE="file" NAME="picture"/>
<INPUT TYPE="button" value="Ìá ½»" onclick="check(myform);"/>
<INPUT TYPE="button" value="È¡ Ïû" onclick="window.close();"/>
</FORM>
</BODY>
</HTML>
<script language="javascript">
function isEmpty(str){
 for(var i=0;i<str.length;i++){
  if(str.charAt(i)!==" "){
    return false;
  }
 }
 return true;
}
function check(form){
 var fileNa ......

javascriptÕýÔò±í´ïʽ(ת)

Ò»£¬¸ÅÊö
1£¬ÕýÔò±í´ïʽ£¬¿ÉÒÔ˵ÊÇÈκÎÒ»ÖÖ±à³ÌÓïÑÔ¶¼ÌṩµÄ»úÖÆ£¬ËüÖ÷ÒªÊÇÌṩÁ˶Ô×Ö·û´®µÄ´¦ÀíÄÜÁ¦¡£
2£¬ÕýÔò±í´ïʽÔÚÒ³Ãæ´¦ÀíÖеÄʹÓó¡¾°£º
1£©±íµ¥ÑéÖ¤¡£Ñé֤ijЩÓò·ûºÏijÖÖ¹æÔò£¬ÀýÈçÓʼþÊäÈë¿ò±ØÐëÊäÈëµÄÊÇÓʼþ¡¢ÁªÏµµç»°ÊäÈë¿òÊäÈëµÄ±ØÐëÊÇÊý×ֵȵÈ
2£©´¦ÀíDOMÄ£ÐÍ¡£ÀýÈçͨ¹ý±í´ïʽ¶¨Î»DOMÖеÄÒ»¸ö¶ÔÏó»òһϵÁжÔÏó£¬Ò»¸öÀý×Ó¾ÍÊǶ¨Î»idÊôÐÔÖк¬ÓÐij¸öÌØÊâ×Ö·ûµÄdiv¶ÔÏó¡£
3£©´¿±à³ÌÂß¼­¡£Ö±½ÓÓÃÓÚ±à³ÌµÄÂß¼­Ö®ÖС£
3£¬ËµÃ÷£º±¾²¿·ÖËù¾ÙµÄÕýÔò±í´ïʽµÄ´úÂëƬ¶Ï£¬¶¼ÊǾ­¹ý²âÊԵģ¬µ«ÓÐÒ»µãÐèҪעÒ⣬¶ÔÓÚ»»ÐеÄ×Ö·û´®µÄ¶¨Ò壬ÎÒÃÇÔÚ±íÊöʱʹÓõÄÊÇÀàËÆÈçϵÄÐÎʽ£º
var str=“It’s is
a beautiful city”£»
ÕâÖÖÐÎʽֱ½ÓдÔÚJS´úÂëÖÐÊÇ´íÎóµÄ£¬ÄÇÈçºÎ»ñÈ¡¾ßÓл»ÐеÄ×Ö·û´®ÄØ£¿¼òµ¥µÄ°ì·¨£ºÔÚtextareaÖÐÊäÈëÎı¾²¢»»ÐУ¬È»ºó½«¸ÃÖµ¸³¸øJS±äÁ¿¼´¿É¡£ÀýÈ磺
var str=document.forms[0].mytextarea.value;         
¶þ£¬Óï·¨ÓëʹÓÃ
1£¬¶¨ÒåÕýÔò±í´ïʽ
1£©¶¨ÒåÕýÔò±í´ïʽÓÐÁ½ÖÖÐÎʽ£¬Ò»ÖÖÊÇÆÕͨ·½Ê½£¬Ò»ÖÖÊǹ¹Ô캯Êý·½Ê½¡£
2£©ÆÕͨ·½Ê½£ºvar reg=/±í´ïʽ/¸½¼Ó²ÎÊý
±í´ïʽ£ºÒ»¸ö×Ö·û´®£¬´ú±íÁËijÖÖ ......
×ܼǼÊý:2244; ×ÜÒ³Êý:374; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [365] [366] [367] [368] [369] 370 [371] [372] [373] [374]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ