none
急!! how to implement a callback for form.submit() RRS feed

  • 问题

  • 不好意思公司的电脑不能输入中文: 

    I'm doing a uploading page now and I use form.submit() to upload a csv file to the server. Then I need a callback to send the content of the csv file back to the client side. 

    I have read this:   http://forums.smartclient.com/showthread.php?t=3102

    But I cannot fully understand its callback method even after i read some jsp tutorial. Especially for:
    1. What is $wnd[callbackName] ?
    2. What is window.top.${callbackName}(...); ?
    3. How to put my returning data, an ArrayList, into (...)?
    3. How to write the <script type='text/javascript'>...</script> part? 
    Use "PrintWriter out = response.getWriter();" and " out.println();" ?

    Can someone explain it to me? I really need help. Thanks very much!!


    -,-
    2010年9月7日 2:16

答案