Article View: borland.public.cppbuilder.internet.web
Article #810Re: IHTMLSelectElement put_onchange syntax
From: Mitch McInelly
Date: Wed, 01 Feb 2006 17:33
Date: Wed, 01 Feb 2006 17:33
31 lines
2222 bytes
2222 bytes
That did the trick Remy! Thanks again.
Mitch
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43e016aa$1@newsgroups.borland.com...
>
> "Mitch McInelly" <mitch@agencysoftware.com> wrote in message
> news:43e00082$1@newsgroups.borland.com...
>
>> onChange="javascript: setPageDataChangeIndicator();
>> changeMake(document.all['vehicleYear'].value,this,'vehicleModel') "
>
> The onChange event is accessing the 'this' pointer. Try passing the
> IHTMLSelectElement as a parameter when calling Invoke(), ie:
>
> if( pEventDisp )
> {
> TVariant Result, Arg = (IDispatch*) (IHTMLSelectElement*) Input;
> DISPID Id = DISPID_THIS;
> DISPPARAMS Params = {&Arg, &Id, 1, 1};
> pEventDisp->Invoke(DISPID_VALUE, IID_NULL, LOCALE_SYSTEM_DEFAULT,
> DISPATCH_METHOD, &Params, &Result, NULL, NULL);
> }
>
>
> Gambit
>
>
Technical Details
Message-ID:
<43e0f1d2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfeb33$1@newsgroups.borland.com> <43dff8bc@newsgroups.borland.com> <43e00082$1@newsgroups.borland.com> <43e016aa$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4307e96a2fc07463 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mitch McInelly" <mitch@agencysoftware.com> From: "Mitch McInelly" <mitch@agencysoftware.com> Newsgroups: borland.public.cppbuilder.internet.web References: <43dfa1e5$1@newsgroups.borland.com> <43dfb00a$1@newsgroups.borland.com> <43dfeb33$1@newsgroups.borland.com> <43dff8bc@newsgroups.borland.com> <43e00082$1@newsgroups.borland.com> <43e016aa$1@newsgroups.borland.com> Subject: Re: IHTMLSelectElement put_onchange syntax Date: Wed, 1 Feb 2006 09:33:20 -0800 Lines: 33 Organization: Agency Software, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 207.88.115.45 Message-ID: <43e0f1d2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138815442 207.88.115.45 (1 Feb 2006 09:37:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail