Project

General

Profile

Many questions about WFileUpload/WApplication and javascript...Please help!

Added by Richard Li about 11 years ago

Wt's version is 3.3.1...

1.about WFileUpload

1)How could I get the file name in the input widget before the uploaded() signal emit...

2)How could I get the input file's total size before the uploaded() signal emit...

3)I set a WProgressBar,when the upload() start,the WFileUpload's style is set to "display: none;"

I try some methods to show() it but all failure...

2.about WApplication

1)If I refresh the page,or enter F5,how could I catch the event with Wt...

3.about JavaScript

1)if there is a dom's id named "test",how could I read the dom's attribute like "height","size" on wt's server using js?

Please help...


Replies (1)

RE: Many questions about WFileUpload/WApplication and javascript...Please help! - Added by Wim Dumon about 11 years ago

Hi Richard,

WFileUpload:

1.1: The current API does not allow that

1.2: The current API does not allow that

1.3: It may work if you call show() after calling upload()?

2.1: I don't think that's possible, unless of course you set reload-is-new-session to true in wt_config.xml, in wich case the createApplication function will be invoked.

3.1: Create a JSignal and trigger it through doJavaScript.

BR,

Wim.

    (1-1/1)