English 中文(简体)
DOJO AJAX - How to change the whole JSP content?
原标题:DOJO AJAX - How to change the whole JSP content?

我正在使用Dojo图书馆。 我怎么能够取代我的jsp/html内容的所有内容。 在更新数据时,我试图动态地重载我的网页。

我的《工作法典》是:

function reloadPage() {
 var thisUrl =  /CBS/a/customer/  + customerId +  /profile ;

 dojo.xhrGet({
 url: thisUrl,
 load: function (data) {   
   document.body.innerHTML = data;
 },
 error: function (data, ioArgs){
   document.body.innerHTML  = "unknown error";
  }
 });
} 

服务器回收了一部完整的《html法》,包括《html标签》。 <数据编码>变量包含所有html标的。 在我的代码I中,document.one.innerRUS = data; 是错误的,因为身体内容被整个html页所取代。 它像亚克斯那样工作,因为它不断更新,但我的纽子不再工作。 请提供帮助。

问题回答

如果你想要更新<>全程>页,那么你为什么会使用非洲航天中心? 使用宇宙航空研究开发机构的目的——更新内容part(网页),而不是更新整个网页。 如果你想要更新整页,使用再载可能更合适?





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签