--------------------------------------------------------------------------------
ÕªÒª ±¾ÎĽ²ÊöÁËÈç¹ûͨ¹ýmsxml2.xmlhttpÀ´µÇ¼Exchange 2000 OWAµÄ·½·¨
--------------------------------------------------------------------------------
Ŀ¼ Ç°ÑÔ ·þÎñÆ÷¶ËºÍ¿Í»§¶ËÒªÇó ÑùÀý´úÂë ×Ü½á ²Î¿¼ÐÅÏ¢
--------------------------------------------------------------------------------
Ç°ÑÔ MS Exchange 2000 ServerÌṩÁ˷dz£ºÃµÄOWA·ÃÎÊ·½Ê½£¬µ«ÆäµÇ¼²ÉÓÃÁË¡°¾Ü¾øÄäÃû·ÃÎÊ="²¢¼¯³ÉÁË¡°Windows ÑéÖ¤="£¬ËùÒÔʹµÃµÇ¼Exchange 2000 Server OWAʱ½çÃæ²»ÓѺᣵ±ÄãÔÚIEÏÂÊäÈëhttp://yourserver/exchange²¢½øÈëʱ£¬ÏÔʾÈçͼ1£º
ͼ1 ÎÒÃÇ¿ÉÒÔͨ¹ý²ÉÓÃ×Ô¶¨ÒåHTMLÒ³Ã棬ʹÓÃmsxml2.xmlhttpÀ´½â¾ö¡£
--------------------------------------------------------------------------------
·þÎñÆ÷¶ËºÍ¿Í»§¶ËÒªÇó ·þÎñÆ÷¶ËÒªÇ󣺰²×°²¢ÅäÖúÃExchange 2000 Server£¬È·¶¨¿ÉÒÔ´Óhttp://yourserver/exchangeÀ´µÇ¼²¢·ÃÎÊOWA¡£ ¿Í»§¶ËÒªÇ󣺿ͻ§¶Ëä¯ÀÀÆ÷ΪIE5.5»ò¸ü¸ß
--------------------------------------------------------------------------------
ÑùÀý´úÂë Ô´³ÌÐò£º <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!-- function plogin_onclick() { var Location="http://yourserver/exchange/"; //¶¨ÒåÄãµÄexchange 2000 server OWA·¾¶ var auth = new ActiveXObject("msxml2.xmlhttp") //´´½¨msxml2.xmlhttp¶ÔÏó auth.open("get",Location,false,login.name.value ,login.pwd.value ) //authµÄopen·½·¨£¬Ó**TMLÒ³ÃæÀïµÄlogin formÀïµÄnameºÍpwd ÒÔ¼°Location×÷Ϊ²ÎÊý£¬¾ßÌå˵Ã÷¼û²Î¿¼ÐÅÏ¢£¨2£© auth.send() //authµÄsend ·½·¨¡£ switch(auth.status){ //¼ì²âauth.sendÒÔºóµÄ״̬£¬ case 200: //״̬Ϊ£º200´ú±íÓû§ÃûÃÜÂëÕýÈ·£¬ window.location.href = Location; //ä¯ÀÀÆ÷ÖØתÏòÖÁexchange 2000 server OWA break; case 401: //״̬Ϊ£º401´ú±íÓû§ÃûÃÜÂë²»ÕýÈ·£¬Éí·ÝÑéÖ¤´íÎó alert("Óû§ÎÞЧ»òÃÜÂë´íÎó¡£"); //±¨´í break; default: //ÆäËü״̬£¬Èç·þÎñÆ÷ÎÞ·¨·ÃÎÊ alert("¶Ô²»Æ𣬷þÎñÆ÷·¢Éú´íÎó£¬ÇëÉÔºóÔÙÊÔ£¡"); //±¨´í } } //--> </SCRIPT> </head> <body bgcolor="#ffffff" text="#000000" marginwidth="0" marginheight="0"> ×Ô¶¨Exchange 2000 OWAµÄµÇ¼½çÃæ <table width="760" border="0" cellspacing="0" cellpadding="0" align="center" height="276"> <tr align="left" valign="top"> <td height="266" align="right" bgcolor="#336699"><br> </td> <td width="217" height="278" rowspan="2"> <table width="93%" border="0" cellspacing="0" cellpadding="0" height="90"> <tr> <td height="29"> </td> </tr> <tr> <td height="98" align="left" valign="top"> <!--¶¨ÒåFORMÃû³ÆΪ£ºlogin--> <form name=login method=post> <table width="200" border="0" cellspacing="0" cellpadding="0" height="91" align="left" bordercolor="#cccccc" bgcolor="#ffcc00"> <tr bgcolor="#ffcc00"> <td width="60" height="27"> <div align="right">Óû§Ãû</div> </td> <td width="155" height="27"> <!--¶¨ÒåÓû§Ãû--> <input name="name" style="WIDTH: 129px; HEIGHT: 22px" size=16 > </td> </tr> <tr bgcolor="#ffcc00"> <td width="45" height="27"> <div align="right" class="text_b">ÃÜÂë </div> </td> <td width="155" height="27"> <!--¶¨ÒåÃÜÂë--> <input type=password name="pwd" style="WIDTH: 129px; HEIGHT: 22px" size=16 maxLength=16> </td> </tr> <tr bgcolor="#ffcc00"> <td width="45" height="27"> </td> <td width="155" height="27"> <!--µã»÷ºó´¥·¢plogin_onclick()½Å±¾--> <input type="button" name="plogin" value="µÇ¼" LANGUAGE=javascript onclick="return plogin_onclick()"> </td> </tr> </table> </form> </td> </tr> </table> </body> </html>
ÏÖʵЧ¹û£ºÈçÏÂͼ
ͼ2 --------------------------------------------------------------------------------
×Ü½á ²ÉÓÃÒÔÉÏ·½·¨ÎÒÃÇ¿ÉÒÔ¸ù¾Ý¾ßÌåÐèÒªÖƶ¨³öÃÀ¹ÛµÄ½çÃæ¡£ ×¢Ò⣺ÓÉÓÚIE5.5ÒÔÏ°汾²»Ö§³Ömsxml2.xmlhttp£¬ËùÒÔ¿Í»§¶Ëä¯ÀÀÆ÷½¨ÒéʹÓÃIE5.5»ò¸ü¸ß°æ±¾µÄ¡£ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
|