hls_common_javascript.lview 916 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-11-30 下午4:29:15  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script src="${/request/@context_path}/modules/hls/javascripts/hls.js" type="text/javascript"/>
        <script type="text/javascript"><![CDATA[
				
			if(!window.f_hls)
            {
                var f_hls = new HLS({
                	context_path : '${/request/@context_path}'
                });
            }
            
            function hlsCommon_validateCode(record,name,value)
			{
			    if(f_hls.validateCode(value))
			    {
			        return true;
			    }
			    else
			    {
			        return '代码只能包含字母、数字和下划线!';
			    }
			}
			
        ]]></script>
    </a:view>
</a:screen>