posts - 165, comments - 198, trackbacks - 0, articles - 1
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          jsp頁(yè)面 模塊化 (top+left+center)格式

          Posted on 2007-09-14 17:46 G_G 閱讀(2239) 評(píng)論(3)  編輯  收藏 所屬分類: HTML
          本人特留使用 ( ^_^ 寫html 不多 呵呵 )
          ??? 本頁(yè)問(wèn)題說(shuō)明: 在第一次加載這3個(gè)頁(yè)面的javascript可正常使用
          ?????????????????? 后 ajax修改的( innerHTML= )頁(yè)面 javascript就使用不了全頁(yè)的document而是修改后的document
          ??? ?? ?? ?? ?? ?? 有人可以幫幫忙嗎?
          <%@?page?language="java"?import="java.util.*"?pageEncoding="GBK"%>
          <%
          String?path?=?request.getContextPath();
          String?basePath?=?request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
          %>

          <!DOCTYPE?HTML?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitional//EN">
          <html>
          ??
          <head>
          ????
          <base?href="<%=basePath%>">
          ????
          ????
          <title>My?JSP?'Layout.jsp'?starting?page</title>
          ?????
          ????
          <meta?http-equiv="pragma"?content="no-cache">
          ????
          <meta?http-equiv="cache-control"?content="no-cache">
          ????
          <meta?http-equiv="expires"?content="0">
          ????
          <meta?http-equiv="keywords"?content="keyword1,keyword2,keyword3">
          ????
          <meta?http-equiv="description"?content="This?is?my?page">
          ????
          <SCRIPT?src="http://127.0.0.1:7000/jspLayout/js/ajax.js"></SCRIPT>
          ????
          <!--
          ????<link?rel="stylesheet"?type="text/css"?href="styles.css">
          ????
          -->
          ??
          </head>
          ??
          ??
          <body>
          ???????????
          <%@include?file="../html/top.jsp"%>
          ???????????
          <table?width="90%">
          ???????????????
          <tr>
          ???????????????????
          <td??valign="top"?align="center"?height="80%">
          ???????????????????????
          <jsp:include?flush="true"??page="../html/left.html"/>
          ???????????????????
          </td>
          ???????????????????
          <td?id="cen"?valign="middle"?align="center"?width="80%"?height="80%">
          ???????????????????????
          <jsp:include?flush="true"??page="../html/center.html"/>
          ???????????????????
          </td>
          ???????????????
          </tr>
          ???????????
          </table>
          ??
          </body>
          </html>


          評(píng)論

          # re: jsp頁(yè)面 模塊化 (top+left+center)格式  回復(fù)  更多評(píng)論   

          2007-09-17 22:47 by Tiger F
          document對(duì)象是動(dòng)態(tài)的,如果你對(duì)頁(yè)面進(jìn)行了修改,那就一定會(huì)反映到document對(duì)象中的,所以你不能通過(guò)它再得到修改前的某些內(nèi)容的。

          另外,既然指定了base,實(shí)在不該再出現(xiàn)src="http://127.0.0.1:7000/... 這樣的代碼呀。

          # re: jsp頁(yè)面 模塊化 (top+left+center)格式  回復(fù)  更多評(píng)論   

          2007-09-18 14:04 by G_G
          謝謝
          提醒

          # re: jsp頁(yè)面 模塊化 (top+left+center)格式  回復(fù)  更多評(píng)論   

          2007-10-12 10:14 by G_G
          javascript 定義到 一個(gè)js中
          后 幾個(gè)jsp 共用 這個(gè) js

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 白河县| 繁峙县| 岱山县| 莱芜市| 平安县| 卓尼县| 武汉市| 湾仔区| 定结县| 昭苏县| 昂仁县| 惠水县| 湖口县| 白朗县| 虎林市| 轮台县| 内乡县| 馆陶县| 台山市| 同仁县| 桐庐县| 泽普县| 荣成市| 万山特区| 乌拉特中旗| 高淳县| 民勤县| 泸西县| 边坝县| 九台市| 大丰市| 奉新县| 浦城县| 阜阳市| 怀来县| 出国| 乌恰县| 南宁市| 宿迁市| 芷江| 大悟县|