javascript¶ÁÈ¡xmlʵÏÖÓ¦ÓóÌÐò²Ëµ¥Ð§¹û
/*Ñùʽ*/
<style type="text/css">
td{font-size:12px;}
.item{text-decoration:none;width:100%;height:100%; line-height:22px;cursor:default;color:Black;vertical-align:middle}
.staticTab{cursor:default;height:22px}
.staticTD{width:70px;text-align:center; vertical-align:middle;white-space:nowrap}
.dynamicTR{height:22px; vertical-align:middle}
.dynamicTab{width:60px;cursor:default;background-color:#ccebff;position:absolute;z-index:1}
.dynamicTDRight{text-align:right;font-size:9px;}
.dynamicTDCenter{text-align:left;white-space:nowrap}
</style>
/*--------------²Ëµ¥Ó¦Óõ½µÄjs--------------------*/
var menuHTML="";
function createXMLHttpRequest(){xmlHttp=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();}
function getMenuData(){//´ÓºóÌ«»ñȡͷ²¿µÄµ¥¾Ý»òÉóÅúÈ˵ȵÄÐÅÏ¢
createXMLHttpRequest();
xmlHttp.open("GET","Menu.ashx?id="+(new Date()).getTime(),true);
xmlHttp.onreadystatechange=getMenu_onreadystatechange;//Óú¯ÊýÃû,²»¼ÓÀ¨ºÅ.
xmlHttp.send(null);
}
function getMenu_onreadystatechange(){//ÏàÓ¦´¦Àí
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
var menuXML=xmlHttp.responseXML.getElementsByTagName("menu");//childNodes
createStaticMenu(menuXML[0]);
}else
alert('·þÎñÆ÷¶Ë·¢Éú´íÎó!');
}
}
function getId(number,fatherId){
number+=1;
if(number<1
Ïà¹ØÎĵµ£º
ºÅ³ÆxmlhelperµÄÒ»¸öÀà
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
namespace WebApplication2
{
/// <summary>
/// XMLHelper XMLÎĵµ²Ù×÷¹ÜÀíÆ÷
/// </summary>
public class XMLHelper
{
public X ......
public static Hashtable xml_unserialize(string strXml)
{
//¼ÓÉÏÏÂÃæÕâ¾ä¾ÍºÃÁË
strXml = strXml.Replace("&", "&");
Hashtable ht = new Hashtable();
XmlDocument XMLDom = new XmlDocument();
......
JavaScriptµ÷ÓÃdataTable²¢»ñÈ¡ÆäÖµ(ASP.Net,VS2005)
±¾¹¦ÄÜÖ÷ÒªÓõ½http://www.cnblogs.com/Hdsome/archive/2008/06/26/1230177.htmlÕâ¸öÐֵܵĴúÂ룬ÎÒÖ÷ÒªÊÇ×öÕûÀíºÍÀ©Õ¹¡£
Ê×ÏÈÔÚhttp://www.codeplex.com/AjaxPro/Release/ProjectReleases.aspx?ReleaseId=713ÍøÖ ......
JavaScriptµÄwindow¶ÔÏóµÄopen·½·¨µÄÓï·¨¸ñʽÈçÏ£º
window.open("Ò³ÃæµÄURL","´°¿ÚÃû³Æ","´°¿Ú²ÎÊý");
Ò³ÃæµÄURL£ºÒ³ÃæµÄURL¿ÉÒÔÊÇÏà¶Ô·¾¶£¬Ò²¿ÉÒÔÊǾø¶Ô·¾¶¡£
´°¿ÚÃû³Æ£ºµ¯³ö´°¿ÚµÄÃû³Æ¿ÉÒÔ×ÔÐж¨Ò壬ËüµÄÒâÒåÔÚÓÚ£¬µ±ÄãË¢ÐÂÔʼµÄÕâҳȫ´°¿ÚµÄʱºò£¬µ¯³ö´°¿Ú¾Í»áË¢ÐÂÒ»´Î£»¶øÈç¹û°ÑÃû³ÆÊ¡ÂÔ£¬¸ÄΪ""£¬ÄÇôµ±Ë¢ÐÂÕâ ......
ÔÚservice(spring)ÖÐÍê³É
step 1:
´ò¿ªÒ»¸ösession
д sql Óï¾ä£¬
×¢Òâµã£ºÐ´sqlÓï¾äʱ,Ëù²éѯµÄÊÔͼΪ£ºkangaroo_VW_UnitView£¬´ËÊÔͼµÄÉú³É
ÓÐ kangaroo_unit±í×óÁ¬½Óµ½kangaroo_img±í¶øÉú³É¡£
step 2:
°ÑËù²éѯµÄ·ûºÏÌõ¼þµÄ¼¯ºÏ·ÅÈëÁÙʱµÄArrayListÖУ¬²¢¶ÔÁÙʱµÄArrayList½øÐÐ
µü´ú¡£
step 3:
°Ñµü´ú³öÀ´µÄ¼¯ ......