Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / July 2003

Tip: Looking for answers? Try searching our database.

InternetExplorer object - need ideas - IMPORTANT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles Banas - 28 Jul 2003 18:44 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.