Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33778
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2017-08-15 01:50 -0700 |
| References | <ede5bfa5-6b50-4764-9fd7-eabbecc9d5b7@googlegroups.com> <035ee9f5-c834-4a17-8477-0857b5564d1b@googlegroups.com> <21142f82-06bf-4e8c-9484-a91d5609417c@googlegroups.com> |
| Message-ID | <9d28dec7-00a3-4741-b257-5d2d21162486@googlegroups.com> (permalink) |
| Subject | Re: Input type file |
| From | jonas.thornvall@gmail.com |
Den tisdag 15 augusti 2017 kl. 10:36:02 UTC+2 skrev jonas.t...@gmail.com:
> Den tisdag 15 augusti 2017 kl. 01:42:25 UTC+2 skrev jonas.t...@gmail.com:
> > Den tisdag 15 augusti 2017 kl. 01:11:00 UTC+2 skrev jonas.t...@gmail.com:
> > > Input type file create a button saying Choose file No file chosen
> > >
> > > Is it possible that somehow change layout of button and text?
> > >
> > > I can see it probably not allowed, but i try to make menus, so basicly i would like have a ".button CSS "LOAD"" that open the filemenu dialog and when file selected the id set and also open the file?
> > >
> > > I already done the button and if i use the choose file it will open the file, but i want to get rid off the "button?" choose file no file chosen. So can i somehow get the file dialog to open without the button chose file?
> > >
> > > MENU work
> > > _____________
> > > | Chose file |No file chosen .......Can i get rid of this ?
> > > ______________
> > > LOAD work
> > > SAVE work
> >
> > I tried a new approach i found using label,
> >
> > <label class="custom-file-upload">
> > <input type="file" id="fileToLoad" onClick="loadFileAsText()/>
> > </label>
> >
> > I just fiddling, it will open the filemanager and i guess i get the correct fileid, but of course no file loaded because of course loadFileAsText executed immediately. So it there a way to do this get loadfileastext exectued **after** you chosed file automatically?
>
> I did find something that may actually work but i am not quite sure howto put it together?
>
> input.onchange = function(e) {
> ..
> };
Sometimes i astonish myself i did it.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Input type file jonas.thornvall@gmail.com - 2017-08-14 16:10 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-14 16:42 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 01:35 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 01:50 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 03:07 -0700
Re: Input type file Julio Di Egidio <julio@diegidio.name> - 2017-08-15 03:43 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 03:43 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 04:16 -0700
Re: Input type file JJ <jj4public@vfemail.net> - 2017-08-15 18:49 +0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 07:31 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 07:36 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 07:42 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 07:49 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 08:06 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 08:26 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-15 08:45 -0700
Re: Input type file JJ <jj4public@vfemail.net> - 2017-08-16 09:10 +0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-16 04:06 -0700
Re: Input type file jonas.thornvall@gmail.com - 2017-08-16 05:27 -0700
csiph-web