Pure ASP Upload 3 Support Product Page

This topic is locked
Solved

PAU - nothing after 'File is required' popup - [Solved]

Reported 21 Nov 2011 02:11:30
1
has this problem
21 Nov 2011 02:11:30 Rick Hawkins posted:
When I've ticked 'Require Upload' and folk try to submit the Form empty, the 'File is required' popup appears as it should but after it has been closed:

a) A file can be browsed for but will not upload, and
b) If an attempt is made to submit the Form empty again ... no popup appears.

The same thing happens for me with your demo page www.dmxzone.com/demo/pau3/MindmapDemo/index.asp

If the page is refreshed, all works fine as long as no attempt is made to submit it empty first.

This is with the latest version (3.0.18) but I've found the previous version (at least) gives me the same result.

I've tested on IE8, FF and Chrome and tried the extension on DWMX and CCS3, I've also tried several different CODEPAGEs and charset's and makes no difference whether Progress bars are selected or not.

Hoping that someone may know of a piece of code I can add to refresh the page after a 'File is required' warning.

Kind regards,

Rick Hawkins

Promoted Solutions

Replied 05 Dec 2011 10:59:17
Hello Rick,

in your page, the form has an onSubmit behavior set that looks like this:

 onSubmit="<%=pau.submitCode()%>;return document.MM_returnValue;"


Change it to this:
 onSubmit="<%=pau.submitCode()%>;if(!MM_returnValue)window.location=window.location;return document.MM_returnValue;"


each time the "File is Required" message is shown the page will be redirected after clicking on ok button in the alert.

Replies

Replied 05 Dec 2011 10:59:17
05 Dec 2011 10:59:17 Miroslav Zografski replied:
Hello Rick,

in your page, the form has an onSubmit behavior set that looks like this:

 onSubmit="<%=pau.submitCode()%>;return document.MM_returnValue;"


Change it to this:
 onSubmit="<%=pau.submitCode()%>;if(!MM_returnValue)window.location=window.location;return document.MM_returnValue;"


each time the "File is Required" message is shown the page will be redirected after clicking on ok button in the alert.
Replied 05 Dec 2011 23:17:16
05 Dec 2011 23:17:16 Rick Hawkins replied:
Superb!

Many many thanks Miroslav.

Kind rgards

Rick.

Reply to this topic