codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Underlying object defined within <OBJECT> element  mikepoulin at 22:52 on Wednesday, February 25, 2004
 

hi all,

I've defined an instance of a web browser control, within an object element. When I try to access it's underlying object (the actual browser control), I keep getting an access denied error. Can anyone help? Thanks,
mike

NOTE: See the window_onload event at the end.

<object style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px"
height="100%" width="100%" id="WebBrowserControl" align=top
classid=clsid:8856F961-340A-11D0-A96B-00C04FD705A2 VIEWASTEXT>
<param NAME="ExtentX" VALUE="22304">
<param NAME="ExtentY" VALUE="21114">
<param NAME="ViewMode" VALUE="0">
<param NAME="Offline" VALUE="0">
<param NAME="Silent" VALUE="0">
<param NAME="RegisterAsBrowser" VALUE="0">
<param NAME="RegisterAsDropTarget" VALUE="1">
<param NAME="AutoArrange" VALUE="0">
<param NAME="NoClientEdge" VALUE="0">
<param NAME="AlignLeft" VALUE="0">
<param NAME="NoWebView" VALUE="0">
<param NAME="HideFileNames" VALUE="0">
<param NAME="SingleClick" VALUE="0">
<param NAME="SingleSelection" VALUE="0">
<param NAME="NoFolders" VALUE="0">
<param NAME="Transparent" VALUE="0">
<param NAME="ViewID" VALUE="{0057D0E0-3573-11CF-AE69-08002B2E1262}">
<param NAME="Location" VALUE="http://www.google.ca/">
</object>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contents</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
</head>

<body MS_POSITIONING="GridLayout" bottommargin=0 leftmargin=0 topmargin=0 rightmargin=0 bgcolor=buttonface>
<form name="Form1" method="post" action="/forum/Contents.html" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTI3OTMzNDM4NDs7Pr1//Od5Z0jxqmAbjJLyEn3msR1T" />


</form>
</body>

<SCRIPT LANGUAGE="VBScript">
Sub window_onload()
set a = document.getElementById("WebBrowserControl").object
End sub
</SCRIPT>
</html>









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Display swf file in pdf
•  A-Line Wedding Dresses
•  Re: how to create forum using asp.net with c# language?
•  Discount coach store
•  External hard drive recovery tips
•  Create Better Maps with Global Mapper
•  Re: How to display a message box when record is temporary stored in session/grid view
•  Sharing object in perl
•  Re: C++ Beginner question


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012