Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
vickrish@gmail.com #1
unable to execute a javascript in a dynamically generated HTML
Hi,
I have a dynamically generated HTML code rendered on a browser instance
created though code (AxSHDocVw.AxWebBrowser instance) . I have used a
javascript to generate a print preview.
function printPreview () {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(7, 1);
}
But when I try to execute this script on the click of a button , I get
the following error:
"An Activex Control on this page is not safe."
Your current security settings prohibit running unsafe controls on this
page.
I do not have any option to modify the security settings as the browser
instance what I have is instantiated through code
(AxSHDocVw.AxWebBrowser object)
Also, when I use the same HTML code and save it on the disk and then
open the file, the Javascript executes without any problems.
Can anyone provide a solution as to how I can prevent this error and
execute the script successfully ?
vickrish@gmail.com Guest
-
removing dynamically generated MCs from timeline
I'm working on a Flash/XML photo album that loads external images via XML. I've created thumbnails that load dynamically and now I want the... -
Dynamically Generated Forms
My company has a database-driven system of web forms, each of which consists of many questions in various layouts (2-column radio, 1 column... -
Using textfields that are dynamically generated
Hi, I have a question about using textfields that I'm generating dynamically. I am generating textfields depending on the number of records in... -
How to insert dynamically generated HTML into the <body> of an ASP.NET page?
I need to generate a "buy" button as part of an ASP.NET page - this consists of a small HTML form with hidden fields, conforming to the requirements... -
Dynamically generated png images
I am creating a web page that dynamically generates an image, which is placed in an Image control. Everything works fine for .gif and .jpeg files....



Reply With Quote

