while automating an InternetExplorer object in access97, i've run across
one major problem that crashes my automation code rather ungracefully.
i'm sumitting data to a form that *may* cause a javascript alert() box to
pop up. i need to trap or prevent this alert() box and be able to handle
it without the whole script crashing so ungracefully.
does ANYONE know of a way i can do this? or do you know of another avenue
we haven't explored?
(for additional credit, i also need help uploading files through a form.
i.e., how do i assign a file to a "file" input field?)
this is an important issue, as it means the future of my employer, as well
as my own employment.

Signature
Charles Banas
Amos Cividalli - 30 Jul 2003 12:25 GMT
1. Try overiding the 'alert' function in the HTML/ASP page, or check the
data you submit so that there is no need to alert.
2. As far as I have tried it out, the only way to use the "file" input tag
is by clicking it. Since a form submission can be done in code, the ability
to enter the file name and location to this input could have severe security
results - one could write a code that uploads any file in the user's machine
to the site, without the user noticing it. On the other hand, you can always
write an ActiveX that chooses the file for you - only that your users will
have to explicitly allow the installation of such an ActiveX control, once
they visit your site.
Amos
> while automating an InternetExplorer object in access97, i've run across
> one major problem that crashes my automation code rather ungracefully.
[quoted text clipped - 11 lines]
> this is an important issue, as it means the future of my employer, as well
> as my own employment.