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 gkittelson 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
I may have previously put this post in the wrong forum:

... "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 then '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

My initial comments assume that the webbrowser object uses the same security 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



 
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.
I finally discovered why this is happening and have corrected it when opening a file on the local machine.

However, using the identical html and js, the webbrowser control still prevents the js from running generating the same error message:
"The value of the property <function name> is null or undefined, not a Function object". Any insights would be very much appreciated.

Lamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top