Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Erik Miller
  Where is Erik Miller?
 saratoga springs
 New York - United States
 Erik Miller
 To: Bernard Bout
  Where is Bernard Bout?
 Bernard Bout
Subject: RE: automating HTML File Input
Thread ID: 112439 Message ID: 112566 # Views: 3 # Ratings: 0
Version: Visual FoxPro 8 Category: Microsoft Office Automation
Date: Thursday, November 09, 2006 6:41:47 PM         

> > Hi,
> > I'm working on a project that involves automating IE to visit specific websites and Upload files to them. After some investigation I learned that Input tags with type=FILE aren't scriptable. I assume this is meant for scropting languages, such as javascript, but I also can't change specific properties of the HTML File input using the IE/DOM object. I've done this may times with non FILE input tags and I've done it on the same website with these tags, so I'm pretty sure my code is good. My question is, Is it possible to programmatically place a file path into the value portion of and HTML input tag of type=FILE. I know I can cheese my around this using windows shell.application object to tab to the correct input element and then have the shell simulate someone entering in the data, but I was looking for a more secure, better overall solution.

> It sure is possible. Have a read of this document:
> http://www.west-wind.com/presentations/shellapi/shellapi.asp

I've actually been to this tutorial before and come away empty handed. Is there something I'm missing here? I already know how to manipulate html tags and text data. The input type=FILE is a special case however. I've gotten a handle on this element and can read properties from it, but I can not change anything about it through VFP.


automating HTML File Input Posted by Erik Miller @ 11/8/2006 4:06:46 PM
RE: automating HTML File Input Posted by Bernard Bout @ 11/9/2006 5:52:40 AM
RE: automating HTML File Input Posted by Erik Miller @ 11/9/2006 6:41:47 PM
RE: automating HTML File Input Posted by Bernard Bout @ 11/10/2006 9:55:45 PM
RE: automating HTML File Input Posted by Vulturili Jan @ 1/11/2007 3:16:40 AM