Re: Changing JScript global variable values dynamically

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 05/26/04


Date: Wed, 26 May 2004 09:47:35 -0400


"Peter" <peter1234se@yahoo.se> wrote in message
news:68de87e0.0405252306.543c18ef@posting.google.com
> "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
> news:<ulF3SVaPEHA.3100@TK2MSFTNGP10.phx.gbl>...
>> "Peter" <peter1234se@yahoo.se> wrote in message
>> news:68de87e0.0405182205.3adf2788@posting.google.com
>>> "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
>>> news:<ew4ZjyOPEHA.2452@TK2MSFTNGP11.phx.gbl>...
>>>>
>>>> Are you doing it in or after DocumentComplete event? You need to
>>>> wait until the document is fully loaded and DHTML DOM is in place.
>>>
>>> Yes, this is long after the document is completely loaded.
>>> To bad, there isn't a way to enumerate all supported "Names".
>>
>> Is too. Query for IDispatchEx, use GetNextDispID and GetMemberName.
>
> I tried enumerating all Ids using these methods and found this:
>
> Not a sign of my own script functions ow variables!

Sorry, my bad. You are right. Script functions and global variables,
even though treated as methods and properties of Global script object,
are not included in this enumeration. Nevertheless, they can be invoked
via IDispatch[Ex] - I've done this myself.

If you have a small project that reproduces the problem, e-mail it to me
at itandetnik@mvps.org. I'll look at it.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken