> -----Original Message-----
> From: Chris Pratt [mailto:[email protected]]
> Sent: Saturday, May 21, 2011 16:10
> To: Struts Users Mailing List
> Subject: Re: Unable to add value in <html:file>
>
> I'm pretty sure javascript can't get the file path in modern
> browsers, only the name.
> (*Chris*)
Tested IE8: full path
firefox 4: file name
<html>
<body>
<input id="finput" type="file" name="datafile" >
<span onclick="javascript:alert('ok:'+document.getElementById('finput').value)"
>test</span>
</body>
</html>
>
> On Sat, May 21, 2011 at 11:22 AM, Jason Pyeron
> <[email protected]> wrote:
>
> > Why don't you try to do your validation as AJAX, so you
> never submit
> > the page until it does have the correct "filename/path"?
> >
> > (I am assuming that javascript can read the filename/path
> attribute,
> > just not set it; test with an onclick:alert(property...) )
> >
> > The remainder is up to you to figure out how to write your
> javascript,
> > or hire a consultant to do it for you. If you are looking
> for people
> > on the cheap (I am not cheap) google for freelancer type sites.
> >
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > - -
> > - Jason Pyeron PD Inc. http://www.pdinc.us
> > <http://www.pdinc.us/> -
> > - Principal Consultant 10 West 24th Street #100 -
> > - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
> > - -
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > This message is copyright PD Inc, subject to license 20080407P00.
> >
> >
> >
> >
> > _____
> >
> > From: vivek mishra [mailto:[email protected]]
> > Sent: Saturday, May 21, 2011 5:05
> > To: Struts Users Mailing List
> > Subject: Re: Unable to add value in <html:file>
> >
> >
> > Yeh exactly it's my ownership ... I was trying to find out if could
> > acheive this using struts functionality.. Though I have a
> solution for
> > this requirement already but that would be a hacky way.
> >
> > Many Thanks for your help ..:)
> >
> > Vivek
> >
> >
> > On Fri, May 20, 2011 at 10:26 PM, Dave Newton
> <[email protected]>
> > wrote:
> >
> >
> > I did, I suggested ActiveX, applets, and Flash. It was noted that
> > these would need to be signed ("trusted").
> >
> > The behavior you're seeing is just how browsers work. This is a
> > requirement you cannot meet in the same timeframe as your
> original estimate.
> >
> > If it were me, I'd do two things:
> >
> > 1) Take ownership of the oversight (if it was really my oversight,
> > otherwise whoever agreed to this functionality would need
> to fess up),
> > and
> >
> > 2) give the client two choices: pick something else to do
> during the
> > time it'd take to do the applet/etc., r delay something else so you
> > have the time
> >
> >
> > Dave
> > On May 20, 2011 11:12 PM, "vivek mishra"
> <[email protected]> wrote:
> >
> >
> >
> >
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]