This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239899 - HTML 5 File API IDE autocomplit missing
Summary: HTML 5 File API IDE autocomplit missing
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-01 17:23 UTC by anisimov
Modified: 2014-10-06 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anisimov 2014-01-01 17:23:12 UTC
IDE currently doesn't have a HTML 5 File API autocomplit for Javascript.

Try this code for autocoplit.

function handleFileSelect(evt) {
       var files = evt.target.files; // !!! MISSING AUTOCOMPLIT FOR files[] array only 'freeze()' present for autocomplit purposes
       // files is a FileList of File objects. List some properties.
       var output = [];
          for (var i = 0, f; f = files[i]; i++) {
      output.push('<li><strong>', f.name, '</strong> (', f.type || 'n/a', ') - ',
      f.size, ' bytes, last modified: ',
      f.lastModifiedDate ? f.lastModifiedDate.toLocaleDateString() : 'n/a',
                    '</li>');
            }
            document.getElementById('list').innerHTML = '<ul>' + output.join('') + '</ul>';
        }

        document.getElementById('files').addEventListener('change', handleFileSelect, false);
Comment 1 anisimov 2014-01-01 17:24:36 UTC
HTML 5 File API is here http://www.w3.org/TR/FileAPI/
Comment 2 Martin Fousek 2014-01-02 06:43:34 UTC
Ok, firstly we are missing the documentation for these objects, reassigning for now.