Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS works in IE browser (opened as a local file), in MSACCESS webbrowser object results in error ...

Status
Not open for further replies.

lamarw

MIS
Dec 18, 2002
223
US
... "The value of the property <function name> is null or undefined, not a Function object".
I was thinking the code had an error and thus not being recognized as a function when called by the onclick event of a checkbox. When I take the rendered code (html and JS) and put it in a text file named code.html, open an IE, 'File' & 'Open' the saved text file, it runs. However, I get a warning: "IE restricted this web page from running scripts or activeX controls. [Button] Allow blocked content". I must click the 'Allow blocked content' button to get the JS to run, but it does run without generating the above error.

Opening an IE (about:blank) I've looked in the "Tools | Internet options | Security (tab) | Custom level" settings.
Under 'ActiveX controls and plugins':
Allow ActiveX filtering - disabled
Allow scriplets - enabled (probably just for Java)

Under 'Scripting':
Active scripting - enabled

The above comments assumes that the webbrowser object uses the same settings as set from the IE, does it?
Also, in the 'Trusted Sites' I have 127.0.0.1 (local machine). The MSAccess project is in a trusted location and does not require me to 'Enable' anything to run the program.

Sorry for being so verbose. Any thoughts would be very much appreciated.

Lamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top