View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000329 | XMB1 | Bugs | public | 2009-09-07 10:28 | 2010-12-23 02:02 |
Reporter | kuba1 | Assigned To | miqrogroove | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.9.11 | ||||
Target Version | 1.9.11.10 | Fixed in Version | 1.9.11.10 | ||
Summary | 0000329: Additional attachments causes the form to reset | ||||
Description | We might want to write ajax into the additional attachments form display so that the first, second, third, etc are not erased. Simply a usability feature. | ||||
Additional Information | http://forums.xmbforum.com/viewthread.php?tid=774631 | ||||
Tags | No tags attached. | ||||
MySQL Version | |||||
PHP Version | |||||
Web Server | |||||
Browser | |||||
Flags | Javascript | ||||
Original Reporter | Carolyn | ||||
SVN Revision | 2362 | ||||
Git Commit | |||||
|
Hi Kuba1, I'm not aware of any way that can be done in AJAX. It seems to be a "feature" of some browsers that you have to click the Add button before you click any of the Choose File buttons. Blanking out the fields is certainly not being done by XMB intentionally. Unless there are some other ideas, this should be resolved as Wont Fix. |
|
I guess if I get really bored some day, I could try rearranging the script so that it generates the max number of inputs but hides them all. I'm just not familiar enough with JS to know if that will be any better. |
2010-04-10 16:42
|
test.html (878 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> </head> <body> <form action="" method="post" id="theform"> <input type="file" id="file1" /><br /> <div id="r2ow2" style="display: none;"><input type="file" id="file2" /><br /></div> <input type="submit" /><br /> <a href="javascript:multiAttach()" id="multiattachlink">Click here to upload another file</a> <script type="text/javascript"> <!--//--><![CDATA[//><!-- var uploadBoxCount = 1; var uploadBoxMax = 10; var uploadTotalLimits = 'Multiple upload size limit per submission is 8MB'; function multiAttach() { document.getElementById('r2ow2').removeAttribute('style'); } //--><!]]> </script> </form> </body> </html> |
2010-04-10 16:46
|
test2.html (878 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> </head> <body> <form action="" method="post" id="theform"> <input type="file" id="file1" /><br /> <div id="r2ow2" style="display: none;"><input type="file" id="file2" /><br /></div> <input type="submit" /><br /> <a href="javascript:multiAttach()" id="multiattachlink">Click here to upload another file</a> <script type="text/javascript"> <!--//--><![CDATA[//><!-- var uploadBoxCount = 1; var uploadBoxMax = 10; var uploadTotalLimits = 'Multiple upload size limit per submission is 8MB'; function multiAttach() { document.getElementById('r2ow2').style.display = 'inline'; } //--><!]]> </script> </form> </body> </html> |
|
Okay that test.html version broke in IE6, but I got test2.html to work in all browsers. So, it looks doable now! |
|
p.s. There is probably an object-oriented method for dynamically generating file input elements. I'll see if I can figure that out before going crazy with hidden inputs. |
|
I came up with a 3-line tweak that seems to work, miraculously. JS n00b is me. |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-09-07 10:28 | kuba1 | New Issue | |
2009-09-07 10:28 | kuba1 | Original Reporter | => Carolyn |
2010-01-23 19:11 | miqrogroove | Note Added: 0000202 | |
2010-01-23 19:11 | miqrogroove | Status | new => acknowledged |
2010-04-09 20:26 | miqrogroove | Note Added: 0000240 | |
2010-04-10 16:42 | miqrogroove | File Added: test.html | |
2010-04-10 16:46 | miqrogroove | File Added: test2.html | |
2010-04-10 16:47 | miqrogroove | Note Added: 0000241 | |
2010-04-10 16:48 | miqrogroove | Priority | low => normal |
2010-04-10 16:48 | miqrogroove | Status | acknowledged => confirmed |
2010-04-10 16:48 | miqrogroove | Projection | none => minor fix |
2010-04-10 16:48 | miqrogroove | Product Version | 1.9.11.06 => 1.9.11 |
2010-04-10 16:48 | miqrogroove | Target Version | => 1.9.11.10 |
2010-04-10 16:50 | miqrogroove | Category | New Features => Bugs |
2010-04-10 16:50 | miqrogroove | Summary | When additional attachments are used the attachment form is erased if already filled => Additional attachments causes the form to reset |
2010-04-10 17:17 | miqrogroove | Note Added: 0000242 | |
2010-04-15 22:02 | miqrogroove | Status | confirmed => assigned |
2010-04-15 22:02 | miqrogroove | Assigned To | => miqrogroove |
2010-04-15 22:15 | miqrogroove | Flags | => Javascript |
2010-04-15 22:15 | miqrogroove | SVN Revision | => 2362 |
2010-04-15 22:15 | miqrogroove | Note Added: 0000245 | |
2010-04-15 22:15 | miqrogroove | Status | assigned => resolved |
2010-04-15 22:15 | miqrogroove | Fixed in Version | => 1.9.11.10 |
2010-04-15 22:15 | miqrogroove | Resolution | open => fixed |
2010-04-15 22:16 | miqrogroove | Additional Information Updated | |
2010-12-23 02:02 | miqrogroove | Status | resolved => closed |