Page 1 of 1
Browse Button???
Posted: Sat Apr 19, 2008 7:24 pm
by dj_jamz102
Hello
I need a code that do the browsing method which do not use a <input type="file" name=""> control. Best exmaple here is the friendster page in upload photos. Thank you!
Re: Browse Button???
Posted: Sat Apr 19, 2008 8:05 pm
by aceconcepts
Why don't you want to use type="file"?
Re: Browse Button???
Posted: Sat Apr 19, 2008 9:02 pm
by dj_jamz102
It's not so important to see the directory of the path being browsed, so i decided not to include the text field on it.. Is their any option on this aside of using an input in html? May be it can a a script code or whatever?
Re: Browse Button???
Posted: Sat Apr 19, 2008 9:06 pm
by aceconcepts
You might be able to find an Ajax or JS approach. However, I've never required a standalone browse button so i'm not entirely sure if you can tell html to hide the textbox or any alternative methods.
Re: Browse Button???
Posted: Sat Apr 19, 2008 9:52 pm
by dj_jamz102
so, do you know any site or link that you think may help on this?
Re: Browse Button???
Posted: Sat Apr 19, 2008 10:13 pm
by aceconcepts
<input type=file> is the only supported way for a browser to upload a file.
the browse is implemented by the bowser, and the only attibute that client script can look at is the filename, no size or mimetype (though you could maybe derive this from the extension).
REF: bruce barker
http://www.sqlwork.com
Re: Browse Button???
Posted: Sat Apr 19, 2008 10:32 pm
by dj_jamz102
OK.. Thank's a lot.
I would like to ask you something; have you been in friendster web page then in upload photos? If you've been there, I would like to ask you if do you have some idea on how is it done? Thank you..
Re: Browse Button???
Posted: Sun Apr 20, 2008 4:16 am
by markusn00b
They use input type="file" they just style the button using css.
Re: Browse Button???
Posted: Sun Apr 20, 2008 5:22 am
by dj_jamz102
markusn00b wrote:They use input type="file" they just style the button using css.
is it a css only? I think there is something behind aside from css.
Re: Browse Button???
Posted: Sun Apr 20, 2008 5:53 am
by markusn00b
dj_jamz102 wrote:markusn00b wrote:They use input type="file" they just style the button using css.
is it a css only? I think there is something behind aside from css.
There really isn't.
I looked at the source code and it uses input type="file" - the reason it looks different is because they have styled it differently.
Re: Browse Button???
Posted: Sun Apr 20, 2008 6:32 am
by dj_jamz102
markusn00b wrote:dj_jamz102 wrote:markusn00b wrote:They use input type="file" they just style the button using css.
is it a css only? I think there is something behind aside from css.
There really isn't.
I looked at the source code and it uses input type="file" - the reason it looks different is because they have styled it differently.
I guess I have to find my own ways..Nevermind.. Thank you!
Need help on this..
I have a browse button using <input type="file"> and a submit button using <input type="submit">. By default the submit button is disabled unless the browse button is click then open a new browse window to browse a file at the same time submit button is enabled. When the time the browse window is canceled or closed i want the submit button to be disabled again just the default. How can I do this?
Re: Browse Button???
Posted: Sun Apr 20, 2008 6:43 am
by aceconcepts
You would need to determine the result of an event
i.e. from the browse, did the user actually select a file to upload?
if so then enable the submit button.