Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javascript to check filepath

468750Apr 22 2009 — edited Apr 22 2009
Hi,

I'm wanting to make sure that my users don't enter any old text into a file browse item.

I tried entering "readonly" in the "HTML Form Element Attributes" but this then disables the browse button of the item (well it disables it in IE6 but not in Firefox 3).

I tried setting a javascript call to a function on the upload button, where the function searched the file browse item value with the intension of checking it against a regular expression. But the file browse item
alert(document.getElementById("P500_FILE").value) 
only seems to return the file name and not the full path.


Can someone tell me how to return the file path?

Thanks in advance,
Gus..
This post has been answered by Tyler-Oracle on Apr 22 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2009
Added on Apr 22 2009
10 comments
638 views