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

HTML object properties giving error in Javascript

Status
Not open for further replies.

evaleah

Programmer
Mar 18, 2003
252
US
I have an object that I have created on an aspx page with a number of properties. Actually, it is an ADODC for use with a component that requires it.

The issue is that with the following javascript:
<script LANGUAGE=&quot;JavaScript&quot; FOR=&quot;ApplyQuery&quot; EVENT=&quot;Click()&quot;>
<!--
ok = C1Query1.BuildSQL();
if (ok)
{
DataSrc.CommandType = 8; // Table
DataSrc.RecordSource = C1Query1.SQL;
DataSrc.Refresh();
DataGrid.DataSource = DataSrc;
}

//-->

I keep getting the following error:
&quot;Microsoft JScript runtime error: Object doesn't support this property or method&quot;

If I run the EXACT same page outside of the application it works fine. I have tried taking it out of the application and just including a link to it but as soon as it is involved at all with the .net app it gives me this error. Any ideas out there at all?

Thank you!!!!
 
I found my error. It was actually in the security around ActiveX components I had set. Oh well...

Thanks for looking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top