you can try this:
1. make a hidden submit button with id "submit" or something you like.
2. in javascript: document.getElementById("submit").click()
2009-08-19
sohu
I have used form with zone. I can click the page submit button to update zone,
without refresh the whole page. But sometimes I need to submit from Javascript.
Now is resolved.
just like this :
document.getElementById("submit").click();
2009-08-18
sohu
.
if I just submit like this: form.submit(). Then isXHR() will return false and
zone will not be update.
any advise?
2009-08-18
sohu
request with
these value as params.
2. After some operation in java page, return the block and I wish the page will
refresh.But it did not happen.
How to trigger the page to refresh? Or tell me some better way.
thanks a lot.
2009-08-16
sohu
t bad, they are worst.
2009-08-16
sohu
.
I am looking for where goes wrong. The InputStream.read() is -1 the first time
calling, and the request.getContentLength() is not 0.
It seems the InputStream of request has been read by Tapestry Filter or
something. When it comes to me, there is nothing to read from.
2009-08-14
sohu
I met a problem.
I upload files from a page. In the tranditional servlet, all things are right.
The code is :
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DiskFileItemFactory factory = new DiskFileItemFactory();
// set