browser - Enable Javascript for local files in VBA WebBrowser Control -


i find rather perplexing ie7 enables javascript default on internet zone, disables local html files [my computer zone] (the internet more secure local computer?), anyway...

i have application in vba using webbrowser control open local html file (say, file:///c:\somefile.html) has javascript in it. i'd javascript executed. there way (from vba code) force browser allow javascript? (taking consideration it's disabled default)

it ideal if wouldn't have rely on registry editing of sorts, or tell user of application change internet explorer settings. i've tried setting localhost webserver , serving file there. works since ie considers internet zone, i'd if didn't have try coding webserver vba either.

system windows xp ie7.

thanks

okay, not "true" solution, enough needs. 1 can use webbrowser.document.parentwindow.execscript function inject javascript page. guess may possible implement similar prototype's evalscripts function here evaluates scripts on page. 1 may need double-check scripts haven't been allowed potentially different security settings. don't know how affects linked script files.

(for own application, control html file extract javascript separate file , execute using above method).


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -