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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading controls in IE7.0

Status
Not open for further replies.

sudya

Programmer
Jul 2, 2007
1
US
Hi ,

Microsoft introduced a security feature in IE7.0 that makes all embedded active-x controls in an HTMl page requiring activation manually.
To resolve this , they posted a solution like to have an external javascript file load <Object>/<Applet>/<Embed> tag contents and then load it ot html webpage externally.
I am facing some issues like described below.

1> I have am Html file that calls external javascript file.

<html><body>
<script>
Some functions defined over here...

func1(){
}

func2(){
}

</Script>

<script src="Call to external JS file either dynamically or static">
</script>
</body>

2> Defined an External JS file as follows (Either dynamic or static)

document.write(<OBJEct... .clsid...codebase.....
onLoad=func1() onError=func2()>);
document.write(.........);
document.write(.........);
document.write("</OBject>");

3> So when i load the HTML page , and though the event handler Onload is specified to call on func1() function from HTMl script tag , it never invokes.
I mean the functions that needs to be invoked from external JS file on Load and OnError will never be invokd.
Assume thers no syntax error , how do i call on this function from external JS file when download completes or an error occurs.

4> Add to this , if there are two or more controls that needs to be downloaded ..how can we synchronize between them so that they wont appear together .

Please guide in this regard.

Thanks
sudya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top