Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > call object's method in javascript

Reply
Thread Tools Display Modes

call object's method in javascript

 
 
Adrian Chen
Guest
Posts: n/a

 
      08-05-2008
Please tell me how can I call mothed provided in object in javascript.

I adopt an object in my webpage(.aspx) like this:
<OBJECT ID="logon" CLASSID="CLSID:79610275-E990-43D0-84BC-0926BA2166D8"
CODEBASE="logon.CAB#version=-1,-1,-1,-1"></OBJECT>

And I try to call funtion:GetFP() in it like this:
<script language="javascript" type="text/javascript">
function func()
{
if(document.form1.logon.GetFP())
return true;
else
return false;
}

But I failed!why? thx!!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected call to method or property access in IE8 Nags Internet Explorer 1 07-14-2009 11:25 AM
IE7: Script can not call the parent's method in local environment legend Internet Explorer 0 10-23-2006 09:32 AM
How to call Control Method in driver? Brian Windows Vista Drivers 10 02-27-2005 01:16 AM
unexpected call to method or property access / media library Phil Windows Media Player 1 01-27-2004 05:36 PM
Call ACPI Method. How? Yevgen Goryachok Windows Vista Drivers 0 08-01-2003 02:28 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59