锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产亚洲片在线观看播放,久久国产亚洲观看,亚洲成aⅴ人在线观看http://www.tkk7.com/hellxoul/category/51193.htmlzh-cnSat, 10 Jan 2015 15:44:30 GMTSat, 10 Jan 2015 15:44:30 GMT60iframe楂樺害鑷傚簲http://www.tkk7.com/hellxoul/archive/2015/01/05/422054.htmlhellxoulhellxoulMon, 05 Jan 2015 03:52:00 GMThttp://www.tkk7.com/hellxoul/archive/2015/01/05/422054.htmlhttp://www.tkk7.com/hellxoul/comments/422054.htmlhttp://www.tkk7.com/hellxoul/archive/2015/01/05/422054.html#Feedback0http://www.tkk7.com/hellxoul/comments/commentRss/422054.htmlhttp://www.tkk7.com/hellxoul/services/trackbacks/422054.html闃呰鍏ㄦ枃

hellxoul 2015-01-05 11:52 鍙戣〃璇勮
]]>
js楠岃瘉妗嗘灦http://www.tkk7.com/hellxoul/archive/2013/10/10/404823.htmlhellxoulhellxoulThu, 10 Oct 2013 02:37:00 GMThttp://www.tkk7.com/hellxoul/archive/2013/10/10/404823.htmlhttp://www.tkk7.com/hellxoul/comments/404823.htmlhttp://www.tkk7.com/hellxoul/archive/2013/10/10/404823.html#Feedback0http://www.tkk7.com/hellxoul/comments/commentRss/404823.htmlhttp://www.tkk7.com/hellxoul/services/trackbacks/404823.htmlone js validation framework

http://niceue.com/validator/demo/twitter-js.php?theme=yellow_right_effect



hellxoul 2013-10-10 10:37 鍙戣〃璇勮
]]>
jquery 鑾峰彇td涓殑鍊?/title><link>http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html</link><dc:creator>hellxoul</dc:creator><author>hellxoul</author><pubDate>Thu, 22 Mar 2012 04:07:00 GMT</pubDate><guid>http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html</guid><wfw:comment>http://www.tkk7.com/hellxoul/comments/372447.html</wfw:comment><comments>http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/hellxoul/comments/commentRss/372447.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/hellxoul/services/trackbacks/372447.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; ">1</span> <span style="color: #000000; "> $(document).ready(</span><span style="color: #0000FF; ">function</span><span style="color: #000000; "> () {<br /></span><span style="color: #008080; ">2</span> <span style="color: #000000; ">   $('#test tr').each(</span><span style="color: #0000FF; ">function</span><span style="color: #000000; "> (){    <br /></span><span style="color: #008080; ">3</span> <span style="color: #000000; ">       alert($(</span><span style="color: #0000FF; ">this</span><span style="color: #000000; ">).children('td').eq(</span><span style="color: #000000; ">1</span><span style="color: #000000; ">).html());<br /></span><span style="color: #008080; ">4</span> <span style="color: #000000; ">            });<br /></span><span style="color: #008080; ">5</span> <span style="color: #000000; ">        });</span></div><img src ="http://www.tkk7.com/hellxoul/aggbug/372447.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/hellxoul/" target="_blank">hellxoul</a> 2012-03-22 12:07 <a href="http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jquery Ajax 鎻愪氦http://www.tkk7.com/hellxoul/archive/2012/03/22/372445.htmlhellxoulhellxoulThu, 22 Mar 2012 04:04:00 GMThttp://www.tkk7.com/hellxoul/archive/2012/03/22/372445.htmlhttp://www.tkk7.com/hellxoul/comments/372445.htmlhttp://www.tkk7.com/hellxoul/archive/2012/03/22/372445.html#Feedback1http://www.tkk7.com/hellxoul/comments/commentRss/372445.htmlhttp://www.tkk7.com/hellxoul/services/trackbacks/372445.html閴翠簬欏圭洰闇瑕侊紝寮濮嬭竟鐪婦emo杈逛嬌鐢↗Query銆傜幇灝嗛」鐩腑鏆傛椂閬囧埌鐨勪笁縐嶄嬌鐢↗Query榪涜Ajax鎻愪氦鐨勬柟寮忓仛涓葷粨銆傚洜涓烘病鏈夌郴緇熷涔狅紝鏈夌偣灞卞錛屽彧姹傚湪欏圭洰涓疄鐜板姛鑳姐?
    1.URL+GET鍙傛暟鎻愪氦
       榪欑鏂瑰紡鏄渶鏅亶鐨勶紝鍙鍖呭惈jquery.js灝卞彲浠ユ甯鎬嬌鐢ㄣ?
     
Java浠g爜  鏀惰棌浠g爜
  1. $.ajax({  
  2.     type: "get",  
  3.     url: "/openshop/control/getCustomerAddress",  
  4.     data:"customerId="+$.trim($("#customerId")[0].value),  
  5.     cache: false,  
  6.     success: function(msg){  
  7.           $("#addressInfo")[0].innerHTML = msg;  
  8.           showTipWindow(newid,oldid,0,e);  
  9.     }  
  10. });   
  11.      


    2.鏁翠釜form鐨勬彁浜?
        濡傛灉涓嶄嬌鐢↗Query鐨刦orm ajax鎻愪氦錛屽垯蹇呴』鎵嬪姩緇勮鎵鏈夌殑琛ㄥ崟鍏冪礌閿煎銆傜幇鍦ㄤ嬌鐢↗Query鐨勪竴涓彃浠訛細jquery.form.js銆傚皢jquery.js錛宩query.form.js鏂囦歡閮藉寘鍚埌欏圭洰涓傜劧鍚庝嬌鐢ㄥ涓嬩唬鐮侊細
      
Java浠g爜  鏀惰棌浠g爜
  1. $('#'+newid+'_frmNewAddr').ajaxForm({ beforeSubmit: validate ,success: showResponse});  
  2.   
  3. ....  
  4.   
  5. function validate(formData, jqForm, options){  
  6.     var form = jqForm[0];   
  7.     if (!form.new_recipient.value ) {   
  8.         alert('鏀朵歡浜哄繀欏誨~鍐欙紒');   
  9.         return false;   
  10.     }   
  11.     if (!form.new_address.value ) {   
  12.         alert('鏀朵歡鍦板潃蹇呴』濉啓錛?);   
  13.         return false;   
  14.     }   
  15.   
  16.    ....  
  17.   
  18.    return true;   
  19. }  
  20.   
  21. function showResponse(responseText, statusText, xhr, $form){  
  22.     var address = eval("("+removeDivTag(responseText)+")");   
  23.     $("#address_recipient")[0].innerHTML = address.recipient;  
  24.     $("#address_address")[0].innerHTML = address.address;  
  25.     $("#address_organization")[0].innerHTML = address.organization;  
  26.          ......  
  27. }  
  28.          

      鍏朵腑$('#'+newid+'_frmNewAddr')鑾峰彇琛ㄥ崟瀵硅薄錛屽叾涓璪eforeSubmit瀵瑰簲鐨剉alidate()鏄竴涓〃鍗曟彁浜ゅ墠璋冪敤 鐨勬柟娉曪紝鍙互鍦ㄦ鏂規硶涓仛琛ㄥ崟楠岃瘉錛屽彧鏈夎鏂規硶榪斿洖true錛岃〃鍗曟墠浼氭彁浜ゃ傝宻uccess瀵瑰簲鐨剆howResponse鍒欐槸ajax瀵硅薄鎴愬姛榪斿洖鍚?鐨勫洖璋冩柟娉曪紝鍙互灝嗗洖璋冨緱鍒扮殑鍐呭鏃犲埛鏂板憟鐜板埌褰撳墠欏甸潰鐨勭浉搴斿尯鍩熶腑銆傝緝鏂逛究鐨勫仛娉曟槸鍦ㄦ湇鍔″櫒绔互JSON鏍煎紡榪斿洖鏁版嵁錛岀劧鍚庡湪鍥炶皟鍑芥暟涓嬌鐢?eval("("+removeDivTag(responseText)+")")鏂規硶鑾峰彇鍏鋒湁鎸囧畾緇撴瀯鐨刯s瀵硅薄銆?

     3.浣跨敤JQuery鍋氭枃浠朵笂浼犵殑ajax鎻愪氦
     鏈漢瀵繪壘騫舵瘮杈冧簡澶氱ajax鎴栫被ajax鏂瑰紡涓婁紶鏂囦歡鐨勫仛娉?璀浣跨敤iframe絳夈傛渶緇堣寰椾嬌鐢↗Query鏄渶鏂逛究鐨勶紝涓嶇煡鍚勪綅浣跨敤鍚庢槸鍚︿笌鎴戞湁 鍚屾劅銆傛垜灝嗘垜鐩墠鐨勫仛娉曟葷粨濡備笅錛岄鍏堥』鍦ㄩ」鐩腑鍖呭惈jquery.js錛宎jaxfileupload.js錛宎jaxfileupload.css銆?
Java浠g爜  鏀惰棌浠g爜
  1. <script type="text/javascript">  
  2. function ajaxFileUpload(imgName)  
  3. {  
  4.     $("#loading")  
  5.     .ajaxStart(function(){  
  6.         $(this).show();  
  7.     })  
  8.     .ajaxComplete(function(){  
  9.         $(this).hide();  
  10.     });  
  11.   
  12.     $.ajaxFileUpload  
  13.     (  
  14.         {  
  15.             url:'/productmgr/control/uploadProductImg',  
  16.             secureuri:false,  
  17.             fileElementId: imgName+'File',  
  18.             dataType: 'text',  
  19.             success: function (data, status)  
  20.             {  
  21.                 data = removeDivTag(data);  
  22.                 if(data=="ImgEmptyErr"){  
  23.                     alert("璇烽夋嫨涓婁紶鍥劇墖錛?);  
  24.                     return;  
  25.                 }  
  26.                 if(data=="sysErr"){  
  27.                     alert("涓婁紶澶辮觸錛岃閲嶈瘯錛?);  
  28.                     return;  
  29.                 }  
  30.                 $("#"+imgName)[0].value = data;  
  31.                 $("#"+imgName+"Div")[0].innerHTML = "涓婁紶鎴愬姛錛?  
  32.                 //alert($("#"+imgName)[0].value);  
  33.             },  
  34.             error: function (data, status, e)  
  35.             {  
  36.                 alert("娣誨姞浜у搧鍥劇墖鏃跺彂鐢熷涓嬮敊璇細"+e);  
  37.             }  
  38.         }  
  39.     )     
  40.     return false;  
  41.   
  42. }  
  43. </script>  

      鏈漢鏈嶅姟鍣ㄧ浣跨敤鐨勬槸beanshell鑴氭湰錛屼唬鐮佸涓嬶細
Java浠g爜  鏀惰棌浠g爜
  1. /* 
  2.  * 浜у搧鍥劇墖涓婁紶 
  3.  *  
  4.  * author : Emerson 
  5.  * 
  6.  * Yiihee , Inc. */  
  7.   
  8.   
  9. import org.ofbiz.base.util.*;  
  10. import org.ofbiz.base.util.string.*;  
  11. import org.ofbiz.entity.*;  
  12. import java.text.SimpleDateFormat;  
  13. import java.util.*;  
  14. import java.io.*;  
  15. import org.apache.commons.fileupload.disk.*;  
  16. import org.apache.commons.fileupload.servlet.*;  
  17. import org.apache.commons.fileupload.*;  
  18.   
  19.   
  20.     configProperties = UtilProperties.getProperties("opencommon.properties");  
  21.     String imageUploadServerPath = configProperties.get("openb2c.image.upload.server.path");  
  22.   
  23.     //SimpleDateFormat sf = new SimpleDateFormat("yyyyMMddHHmmss");     
  24.     //Date date = new Date();     
  25.     //String filename = sf.format(date);  
  26.     String fileName;  
  27.   
  28.     File uploadPath = new File(imageUploadServerPath);//涓婁紶鏂囦歡鐩綍  
  29.     if (!uploadPath.exists()) {  
  30.        uploadPath.mkdirs();  
  31.     }  
  32.     // 涓存椂鏂囦歡鐩綍  
  33.     File tempPathFile = new File(imageUploadServerPath+"\\temp\\");  
  34.     if (!tempPathFile.exists()) {  
  35.        tempPathFile.mkdirs();  
  36.     }  
  37.     try {  
  38.        // Create a factory for disk-based file items  
  39.        DiskFileItemFactory factory = new DiskFileItemFactory();  
  40.    
  41.        // Set factory constraints  
  42.        factory.setSizeThreshold(4096); // 璁劇疆緙撳啿鍖哄ぇ灝忥紝榪欓噷鏄?kb  
  43.        factory.setRepository(tempPathFile);//璁劇疆緙撳啿鍖虹洰褰?nbsp; 
  44.    
  45.        // Create a new file upload handler  
  46.        ServletFileUpload upload = new ServletFileUpload(factory);  
  47.    
  48.        // Set overall request size constraint  
  49.        upload.setSizeMax(4194304); // 璁劇疆鏈澶ф枃浠跺昂瀵革紝榪欓噷鏄?MB  
  50.    
  51.        List items = null;  
  52.        items = upload.parseRequest(request);//寰楀埌鎵鏈夌殑鏂囦歡  
  53.          
  54.        if(items==null||items.size()==0){  
  55.            String msg = "ImgEmptyErr";  
  56.            context.put("result", msg);  
  57.            return;  
  58.        }  
  59.          
  60.        Iterator i = items.iterator();  
  61.          
  62.        //姝ゅ瀹為檯鍙湁涓涓枃浠?nbsp; 
  63.        while (i.hasNext()) {  
  64.            FileItem fi = (FileItem) i.next();  
  65.            fileName = fi.getName();  
  66.            if (!UtilValidate.isEmpty(fileName)) {  
  67.                File fullFile = new File(fi.getName());  
  68.                //File fullFile = new File(filename);  
  69.                File savedFile = new File(uploadPath, fullFile.getName());  
  70.                int j = 0;  
  71.                while(savedFile.exists()){  
  72.                    j++;  
  73.                    savedFile = new File(uploadPath, savedFile.getName().substring(0,savedFile.getName().lastIndexOf(".")-1)+"("+j+")"+savedFile.getName().substring(savedFile.getName().lastIndexOf("."),savedFile.getName().length()));  
  74.                }  
  75.                fi.write(savedFile);  
  76.                fileName = savedFile.getName();  
  77.            }else{  
  78.                String msg = "ImgEmptyErr";  
  79.                context.put("result", msg);  
  80.                return;  
  81.            }             
  82.        }  
  83.        context.put("result", fileName);  
  84.     } catch (Exception e) {  
  85.         Debug.log("涓婁紶浜у搧鍥劇墖鍙戠敓閿欒:"+e);  
  86.         String msg = "sysErr";  
  87.         context.put("result", msg);  
  88.         return;  
  89.     }  

  鐒跺悗灝唕esult緇撴灉娓叉煋鍒癴reemarker妯℃澘錛屽茍緇忓洖璋冨嚱鏁拌В鏋愬悗灞曠ず緇欑敤鎴楓?

鎬葷粨錛欽Query寮哄ぇ寮傚父錛屾湰鏂囦粎浠庤嚜韜嬌鐢ㄨ搴﹀垪涓句簡鍏墮儴鍒嗙敤娉曪紝鏈浘娣辯┒鏈鏂版渶浼樻渶綆鐢ㄦ硶錛屾殏浠ユ鏂囦綔涓虹粡楠屾葷粨錛屼互寰呮棩鍚庡弬鑰冧慨姝c備唬鐮佺墖孌靛北瀵ㄤ箣澶勫疄灞炴湰浜烘妧鎷欙紝鑰岄潪JQuery涔嬭繃銆?nbsp;  

hellxoul 2012-03-22 12:04 鍙戣〃璇勮
]]>
jquery 涓婁笅縐誨姩琛ㄦ牸鍏冪礌錛屽茍淇濇寔欏哄簭涓嶅彉http://www.tkk7.com/hellxoul/archive/2012/03/22/372444.htmlhellxoulhellxoulThu, 22 Mar 2012 04:02:00 GMThttp://www.tkk7.com/hellxoul/archive/2012/03/22/372444.htmlhttp://www.tkk7.com/hellxoul/comments/372444.htmlhttp://www.tkk7.com/hellxoul/archive/2012/03/22/372444.html#Feedback0http://www.tkk7.com/hellxoul/comments/commentRss/372444.htmlhttp://www.tkk7.com/hellxoul/services/trackbacks/372444.html    <html>  
    <head>  
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
    <title>琛ㄦ牸</title>  
    <style type="text/css">  
    .editText  
    {  
        border-width:1px;  
        border-top-style:none;  
        border-left-style:none;  
        border-right-style:none;  
        border-bottom-style:solid;  
        border-color:#030;  
        width:100%;  
    }  
    </style>  
    <script src="jquery-1.3.2.js" type="text/javascript">  
    </script>  
    <script type="text/javascript">  
    function moveUp(obj)  
    {  
        var current=$(obj).parent().parent();  
        var prev=current.prev();  
        if(prev)  
        {  
            current.insertBefore(prev);  
        }  
    }  
    function moveDown(obj)  
    {  
        var current=$(obj).parent().parent();  
        var next=current.next();  
        if(next)  
        {  
            current.insertAfter(next);  
        }  
    }  
    </script>  
    </head>  
    <body>  
    <table class="grid" width="100%" border="1" cellspacing="0" cellpadding="0">  
      <tr>  
        <td>瀛楁鑻辨枃鍚?lt;/td>  
        <td>瀛楁涓枃鍚?lt;/td>  
        <td>瀛楁鏁版嵁綾誨瀷</td>  
        <td>鍒楀</td>  
        <td>鏄惁鏄劇ず</td>  
        <td>鏄惁浣滀負鏌ヨ鏉′歡</td>  
        <td>璋冩暣欏哄簭</td>  
      </tr>  
      <tr>  
        <td>1</td>  
        <td><input type="text" name="textfield" class="editText" id="textfield"></td>  
        <td> </td>  
        <td><input type="text" name="textfield5" id="textfield5"></td>  
        <td><input type="checkbox" name="checkbox" id="checkbox"></td>  
        <td><input type="checkbox" name="checkbox5" id="checkbox5"></td>  
        <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td>  
      </tr>  
      <tr>  
        <td>2</td>  
        <td><input type="text" name="textfield2" id="textfield2"></td>  
        <td> </td>  
        <td><input type="text" name="textfield6" id="textfield6"></td>  
        <td><input type="checkbox" name="checkbox2" id="checkbox2"></td>  
        <td><input type="checkbox" name="checkbox6" id="checkbox6"></td>  
        <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td>  
      </tr>  
      <tr>  
        <td>3</td>  
        <td><input type="text" name="textfield3" id="textfield3"></td>  
        <td> </td>  
        <td><input type="text" name="textfield7" id="textfield7"></td>  
        <td><input type="checkbox" name="checkbox3" id="checkbox3"></td>  
        <td><input type="checkbox" name="checkbox7" id="checkbox7"></td>  
        <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td>  
      </tr>  
      <tr>  
        <td>4</td>  
        <td><input type="text" name="textfield4" id="textfield4"></td>  
        <td> </td>  
        <td><input type="text" name="textfield8" id="textfield8"></td>  
        <td><input type="checkbox" name="checkbox4" id="checkbox4"></td>  
        <td><input type="checkbox" name="checkbox8" id="checkbox8"></td>  
        <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td>  
      </tr>  
    </table>  
    </body>  
    </html> 

hellxoul 2012-03-22 12:02 鍙戣〃璇勮
]]>
jquery鍒ゆ柇瀵硅薄鏄惁瀛樺湪 http://www.tkk7.com/hellxoul/archive/2012/03/22/372443.htmlhellxoulhellxoulThu, 22 Mar 2012 04:01:00 GMThttp://www.tkk7.com/hellxoul/archive/2012/03/22/372443.htmlhttp://www.tkk7.com/hellxoul/comments/372443.htmlhttp://www.tkk7.com/hellxoul/archive/2012/03/22/372443.html#Feedback1http://www.tkk7.com/hellxoul/comments/commentRss/372443.htmlhttp://www.tkk7.com/hellxoul/services/trackbacks/372443.htmlif($ ("#id")){

}else{}

jquery涓嶇瀵硅薄瀛樹笉瀛樺湪閮戒細榪斿洖object銆?/p>

搴旇鐢?

if($ ("#id").length>0){}else{}

or     

 if($ ("#id")[0]){    } else {   }

or 

 if(document.getElementById("id")){} else {}



hellxoul 2012-03-22 12:01 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 四虎永久精品免费观看| 亚洲人成在线免费观看| 国产一级淫片a免费播放口之| wwwxxx亚洲| 西西大胆无码视频免费| 亚洲综合中文字幕无线码| 无码少妇一区二区浪潮免费| ass亚洲**毛茸茸pics| 性盈盈影院免费视频观看在线一区| 亚洲精品第一综合99久久| 最近2019中文字幕mv免费看 | 国产成人一区二区三区免费视频| 亚洲色偷偷综合亚洲AV伊人蜜桃 | 国产aⅴ无码专区亚洲av| a毛片免费全部在线播放**| 亚洲AV无码久久精品成人| 精品一区二区三区免费毛片爱| 久久亚洲精精品中文字幕| 可以免费看黄视频的网站| 亚洲αⅴ无码乱码在线观看性色| 啊v在线免费观看| 视频免费在线观看| 亚洲喷奶水中文字幕电影| 日韩a在线观看免费观看| aaa毛片免费观看| 亚洲激情电影在线| 日韩视频在线免费| 99久久免费国产精精品| 亚洲午夜国产精品无卡| 免费va人成视频网站全| 久久大香香蕉国产免费网站| 亚洲男人的天堂网站| 亚洲中文字幕不卡无码| A在线观看免费网站大全| 黄网站在线播放视频免费观看| 亚洲国产精品无码av| 成在人线AV无码免费| 在线看片免费人成视频久网下载| 亚洲综合久久一本伊伊区| 久久久久噜噜噜亚洲熟女综合 | 日本片免费观看一区二区|