JS user-defined properties of Objects

Discussion in 'Javascript' started by awebguynow, Jun 21, 2006.

  1. awebguynow

    awebguynow Guest

    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.
    awebguynow, Jun 21, 2006
    #1
    1. Advertising

  2. 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.
    Richard Cornford, Jun 21, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor Porton
    Replies:
    1
    Views:
    688
    Steven T. Hatton
    Aug 29, 2004
  2. Replies:
    1
    Views:
    255
    Peter Hansen
    Jan 11, 2006
  3. Oodini
    Replies:
    1
    Views:
    1,753
    Keith Thompson
    Sep 27, 2005
  4. =?Utf-8?B?TWFyaw==?=

    Page level (user defined) properties?

    =?Utf-8?B?TWFyaw==?=, May 31, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    270
    =?Utf-8?B?TWFyaw==?=
    May 31, 2007
  5. Replies:
    1
    Views:
    483
    Sion Arrowsmith
    Jul 10, 2008
Loading...

Share This Page