complex object creation in JScript 
Author Message
 complex object creation in JScript

Hi,

Is anybody aware of any examples of object creation in JScript? I mean,
truly stand-alone objects that may have a pretty complex inner structure,
distinction between the implementation and the interface, various
polymorphic method calls, etc.?

Moreover, what would be the most professional JScript-related site you could
recommend of?

Thanks a lot,
Benjamin



Sat, 02 Nov 2002 03:00:00 GMT  
 complex object creation in JScript


Quote:
> Hi,

> Is anybody aware of any examples of object creation in JScript? I mean,
> truly stand-alone objects that may have a pretty complex inner structure,

Yes, objects can have complex inner structures.

Quote:
> distinction between the implementation and the interface, various
> polymorphic method calls, etc.?

All method calls are polymorphic, since there are no typed parameters(and
the fact that you can always add, and skip params to a func).

There are no distinction even between the class and the objects, everything
is instances. You can inherit classes, but only objects (created with new).

Quote:
> Moreover, what would be the most professional JScript-related site you
could
> recommend of?

developer.netscape.com

Quote:

> Thanks a lot,
> Benjamin

your'e welcome a lot

/Carl
IT-Performance



Sat, 02 Nov 2002 03:00:00 GMT  
 complex object creation in JScript

check this section of code out;  you can create your own objects and use both custom properties and methods in the objects:

8<--------------------------------------------------------

function funJSShowName()    {
    alert( 'Your name is: ' + this.fName + ' ' + this.lName );
    }

function myObj()    {
    this.fName = new String;
    this.lName = new String;
    this.showName = funJSShowName();
    }

var myName = new myObj;

myName.fName = 'FirstName';
myName.lName = 'LastName';
myName.showName();

8<--------------------------------------------------------

You might also check out MSDN online (http://msdn.microsoft.com) and look up information on object prototypes.



Fri, 08 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Custom Complex Type Mapper in JScript Windows Script Component

2. Netscape 6 problem when trying to make visible/hidden complex DIV objects

3. Javascript has over-complex Object model

4. ActiveX object creation on an ASP page

5. Licensed ActiveX object creation using createElement problem.

6. Creation of ActiveX Object on Tomcat

7. Wow, class object inline creation.

8. Remote creation of an object

9. Object Creation On The Fly

10. object creation in vbscript class

11. Question on object creation

12. Remote script creation times-out then throws error 0x800A01AD (ActiveX can't create object)

 

 
Powered by phpBB® Forum Software