Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

File Browser to determine the image path


Hi,
I have to give a browse button and you will be able to browse and pick
the image path instead of typing it out. One more requirement will be
the image will be residing on a shared machine in the network.

I will do the transformation to fix the LAN file path to something via
a web server. Kindly let me know how to start with it. Should I use a
<input type ="file">. I also need to specify the initial path.

TIA.
Sakthi

Yes,you must use a file input element (<input type="file"...) to let
client select files.  but this input must outside the form tag.

when client user have selected a file ,you can copy the input
element's value property to a hidden input element inside the form
tag.

and when client hit submit button,the file content so will not be
submit.

On 5?10?, ??2?00?, Maverick <sakthiyuva@gmail.com> wrote:

On May 10, 7:00 am, Maverick <sakthiyuva@gmail.com> wrote:

> Hi,
> I have to give a browse button and you will be able to browse and pick
> the image path instead of typing it out. One more requirement will be
> the image will be residing on a shared machine in the network.

> I will do the transformation to fix the LAN file path to something via
> a web server. Kindly let me know how to start with it. Should I use a
> <input type ="file">. I also need to specify the initial path.

> TIA.
> Sakthi

the file input's value is read only to scripts for security reasons.
Unless you have control over your users, you cannot use a prefix.

Maverick <sakthiyuva@gmail.com> wrote:
>Hi,
>I have to give a browse button and you will be able to browse and pick
>the image path instead of typing it out. One more requirement will be
>the image will be residing on a shared machine in the network.

>I will do the transformation to fix the LAN file path to something via
>a web server. Kindly let me know how to start with it. Should I use a
><input type ="file">. I also need to specify the initial path.

<input type="file"...> is the only way to get a "browse" button to let
your user select a file. There is no way to specify an initial path,
the value property of the element is read-only. And the element
selects a file, not a directory or path.

An ActiveX component, or something on that order that can get around
normal web security restraints may be able to do what you want.

--
Tim Slattery
Slatter@bls.gov
http://members.cox.net/slatteryt

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc