月度归档:2013年11月

innerHTML script

function parseScript(html)
{
	var result = { html:'',scripts:[] };
	if (html)
	{
		//脚本
		//var re = /(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;
		var re = /(?:<script([^>]*text\/javascript[^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;
		//外部脚本
		var srcRe = /\ssrc=([\'\"])(.*?)\1/i;
		var match;
		//
		while(match = re.exec(html))
		{
			var item = { src:'', text:''};
			//
			var attrs = match[1];
			var srcMatch = attrs ? attrs.match(srcRe) : false;
		    //外部
		    if(srcMatch && srcMatch[2]){
				item.src = srcMatch[2];
		    //内部
		    }else if(match[2] && match[2].length > 0){
				item.text = match[2];
		    }
			//
			result.scripts.push(item);	
		}
		result.html = html.replace(re, "");	
	}
	return result;
}


if (data = parseScript(data))
			{	
				if (data.html != '')
					main.innerHTML = data.html;
				for(var i=0;i<data.scripts.length;i++)
				{
					var item = data.scripts[i];
					if (item.text != '')
					{
						eval(item.text);
					}
					else if (item.src != '')
					{
						var tag = document.createElement('script');
						tag.setAttribute('type','text/javascript');
						tag.setAttribute('src', item.src);
						main.appendChild(tag);
					}					
				}
			}

Adf

Aooshi Donet Framework (Adf)

PS:原名 Aooshi.dll  自3.7版本起更名为 Adf

 

Source(源代码授权):

User(帐户): readonly

Pass(密码): readonly

Aooshi(源代码):

https://svn.aooshi.org:8080/svn/adf/tags/aooshi/3.7

 

Adf(源代码):

https://svn.aooshi.org:8080/svn/adf/tags/adf/4.2

https://svn.aooshi.org:8080/svn/adf/tags/adf.cs/1.2

https://svn.aooshi.org:8080/svn/adf/tags/adf.cs/1.3

https://svn.aooshi.org:8080/svn/adf/tags/adf.scheduler/1.0

https://svn.aooshi.org:8080/svn/adf/tags/adf.service/1.0

https://svn.aooshi.org:8080/svn/adf/tags/db/2.2

https://svn.aooshi.org:8080/svn/adf/tags/IdGenerate/1.0

https://svn.aooshi.org:8080/svn/adf/tags/adf.registryserver/1.0/

https://svn.aooshi.org:8080/svn/adf/tags/TaskScheduler/1.0

https://svn.aooshi.org:8080/svn/adf/bin

  

Download(下载):

http://www.aooshi.org/adf/download

http://www.aooshi.org/adf/download/Adf.4.5.2.zip

http://www.aooshi.org/adf/download/Adf.Web.4.5.2.zip

http://www.aooshi.org/adf/download/Adf.Service.1.3.zip

http://www.aooshi.org/adf/download/Adf.Scheduler.2.0.zip

http://www.aooshi.org/adf/db/

http://www.aooshi.org/adf/download/Adf.Cs.1.4.zip

http://www.aooshi.org/adf/download/Adf.CacheServer-1.0.zip

http://www.aooshi.org/adf/download/Adf.SessionServer-1.0.zip

 

 

SVN Download:

svn checkout https://svn.aooshi.org:8080/svn/adf/bin c:\develop\bin\adf4

 

Help(在线帮助文档):

http://www.aooshi.org/adf/help

Help(离线帮助文档):

http://www.aooshi.org/adf/help/Adf.Documentation.chm

Adf Db Help:

http://www.aooshi.org/adf/db/

http://www.xiaobo.li/adf/417.html

Adf Db :

http://www.aooshi.org/adf/db/demo

Adf.Cs :

http://www.xiaobo.li/adf/513.html

Adf.Service :

http://www.xiaobo.li/adf/517.html

Adf.RegistryServer :

http://www.xiaobo.li/adf/516.html

 

一些示例:

SVN:  https://svn.aooshi.org:8080/svn/adf/tags/examples/

Adf 开发项目结构建议: http://www.xiaobo.li/adf/417.html