Thanks Nic.
I got it working,
thanks, Jeremy Coulter
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Nic Wise
> Sent: Wednesday, 26 April 2000 14:18
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: OCX Objects ona webpage
>
>
> Well:
>
> <OBJECT ID="myFunkeyObject" CLASSID="somelongGUID" ....>
>
> <SCRIPT>
> self.document.all.myFunkeyObject.theSectionYouAreOn = 1;
> </SCRIPT>
>
> Assuming you have a public property called theSectionYouAreOn.
> Aint the DOM
> a wounderfull thing?? You might want to trigger this off:
>
> <BODY onLoad="setTheSection();">
>
> <SCRIPT>
> void setTheSection() {
> self.document.all.myFunkeyObject.theSectionYouAreOn = 1;
> }
> </SCRIPT>
>
> My javascript is rusty as hell, so you might want to look it up on MSDN.
>
> :)
>
> BTW, I'd REALLY recommend looking at using MIDAS over HTTP if its internet
> based - no need for the BDE, and it goes thru firewalls like a knife thru
> butter (well, outgoing, anyway :) )
>
> N
>
> --
> Nic Wise - 021.676.418 / [EMAIL PROTECTED] / Inprise/Borland New Zealand
> Is it not a foolish man, said little Woo, who keeps all his
> chickens in his
> trousers?
> For at best, will he not suffocate his chickens, and, and worst,
> will he not
> disappoint the ladies in the village? --Alexi Sayle
>
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Jeremy Coulter
> > Sent: Wednesday, 26 April 2000 14:04
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: OCX Objects ona webpage
> >
> >
> > HI all.
> >
> > I have written an OCX (and ActiveX Form) in delphi that will help
> > us with a
> > new training system we are putting in place for our clients to help them
> > learn our systems.
> >
> > Anyway, what I would like to know is how do I go about passing
> data to the
> > control ?
> > I.e. I want to pass what training section they are on so my OCX
> knows what
> > data to use etc.
> >
> > Would I simply enbed the control into the HTML page, then pass
> > data to it as
> > if it were an OCX dll ??
> >
> >
> > Cheers, Jeremy Coulter
> >
> > ------------------------------------------------------------------
> > ---------
> > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> > Website: http://www.delphi.org.nz
> >
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz