|
-
Jul 4th, 2001, 10:34 AM
#1
Thread Starter
Hyperactive Member
activex and controls on a web page
hi,
wonder if somebody can sort me out here - i am having problems communicating between an activex control & jscript.
backgroup - I am evaluating ms-sharepoint and although it doesnt totally suit our needs, it is a reasonable fit for our Market Research doc management project. - One of the areas it is lacking is where "document properties" can be configured but cannot be a lookup onto, say a database etc etc.
Here is where I come in - After some carefull consideration I have written an ActiveX control which provides our functionality (it uses wininet to talk back to an asp script - this does our database queries (of a fairly complicated hierarchical tree)
My idea is to add it (very carefully) into the sharepoint "document profile screen"
All is ok execpt for the following...
when unit testing my code I have the following clientside
<OBJECT ID="treeustctl"
CLASSID="CLSID:1A658CA0-6A37-11D5-AC99-0000F6C2F767"
CODEBASE="treectrl.CAB#version=3,0,0,0">
</OBJECT>
<p><INPUT TYPE='submit' name='curpos' value='curpos' onclick='FormOnSubmit()'></p>
<SCRIPT language="JavaScript">
function FormOnSubmit()
{
temp = treeustctl.curnode;
alert("node = " + temp)
}
</SCRIPT>
this works perfectly for me - use the control - then on clicking the a button - the 'curnode' property of my control is obtained and displayed....
I then have embedded this in the appropriate ASP page within sharepoint - unfortunately I get persistant script errors (error:'treeustctl' is undefined).
all my naming is correct (and no typo's found) - stumped at the moment!.
I cannot see why it does not address my control? - I am not a javascript expert - can somebody give me a few pointers etc??
could it be something to do with where I put it within the page - should I be specifying the property using
somthing-parent-i-dont-know.treeustctl.curnode
instead? - any ideas?
many thanks, A.J.P. Midlands UK.
p.s. the MS script debugger seems useless to me....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|