In that case, if you tried MyObject(var1,var2) it would run the constructor for
the object. The constructor defines how you create an object in JS. This means
that there is no "default" method as such.
Hope this isn't too confusing. : )
Strolia-Davis Christopher Contr MSG MAM wrote:
> Hi Jack,
>
> I haven't posted to this group before, so you won't have seen me. Nice to
> meet you, how are you?, etc.
>
> Anyway, a default method would normally be something that is called or run
> just by using the name of the object.
>
> So if you had something like
>
> MyObject.Runall(this,that,theotherthing)
>
> as your default, you could run it by simply putting in something like
>
> MyObject(this,that,theotherthing)
>
> I am actually using my experience as a Visual Basic programmer to field this
> one, so if it is not quite the same in IE, someone let me know.
>
> Hope this helps,
>
> Chris
>
> -----Original Message-----
> From: Jack_Speranza
> To: '[EMAIL PROTECTED]'
> Sent: 2/2/01 5:17 PM
> Subject: RE: [Dynapi-Help] JavaScript Question
>
> OK, I'm really gonna show my ignorance here... what do you mean by a
> "default" method?
>
> -----Original Message-----
> From: Matthew Alan Shirey [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 4:58 PM
> To: Dynapi-Help
> Subject: [Dynapi-Help] JavaScript Question
>
> Hey all,
>
> This isn't really DynAPI related but it is JS related.
> Is there a way to define a default method for a JavaScript object?
> VBScript
> has this ability but so far I have not been able to find the same thing
> in
> JavaScript...
>
> Thanks,
>
> -- Matthew
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help