By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

JS user-defined properties of Objects

P: n/a
I'm actually trying to analyze the Google Suggest code
as dissected by C. Justus, eyalamir, alacrity and others.

This could be a follow-up to my unanswered posting:
Topic: "Google Suggest, advanced JS, DHTML" other keywords: okuh

But my ? this time is specific: Can properties of Objects be created
on the fly ?
Can they be user-defined (UD) and brought into existence, just by an
assignment ?

Ex:
M.completeDiv = _completeDiv;
or
var b = fr.completeDiv;
b.completeStrings = cs;
//b.displayStrings = ds;
//b.prefixStrings = pr;

I would say my level of knowledge is intermediate, but would like to
learn more.
If there are references online about this, please direct me to them.
Thanks.

Jun 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
awebguynow wrote:
<snip>
... Can properties of Objects be created
on the fly ?
Yes.
Can they be user-defined (UD) and brought into
existence, just by an assignment ?
That would depend on what you consider a 'user' in this context.
Executing javascript code can add properties to JS object with
assignments.

<snip> I would say my level of knowledge is intermediate, ...


You are being very optimistic.

Richard.
Jun 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.