Property returns "Object" object that contains custom objects

Hi,

I had some difficulties on returning the property of a custom
JavaScript Object.

Assuming I had a JSObject ObjA that was created using JS_NewObject with
my own JSClass ObjA_class. And ObjA_class has one property getObjBs
that will return a JavaScript standard "Object" object.

And I want this "Object" object has properties that names are same as
each ObjB object's property "id" , and the value of each properties is
ObjB object.

e.g.

There are 2 ObjB objects:
student1 and student2.

The ObjB has a propperty "id":
student1.id = "john"
student2.id = "mary"

When I use:
ObjA.getObjBs.john it will return student1 object.
ObjA.getObjBs.mary it will return student2 object.

And I want to know if there's any way to make my ObjA's property
"getObjBs" can return like that.

thanks,
digdog

0
digdog
8/22/2005 11:07:12 AM
netscape.mozilla.jseng 1530 articles. 0 followers. Follow

0 Replies
752 Views

Similar Articles

[PageSpeed] 21

Reply:

Similar Artilces:

Intent to ship: "object-fit" & "object-position" CSS properties
As of sometime early next week (say, Nov 17th 2014), I intend to turn on support for the "object-fit" & "object-position" CSS properties by default. They have been developed behind the "layout.css.object-fit-and-position.enabled" preference. (The layout patches for these properties are actually just about to land; they're well-tested enough [via included automated tests] that I'm confident turning the pref on soon after that lands.) Other UAs who are already shipping this feature: * Blink (Chrome, Opera) * WebKit (Safari) -- supports o...

Intent to implement: "object-fit" & "object-position" CSS properties
Summary: The 'object-fit' and 'object-position' properties allow web developers to customize how a replaced element's content gets scaled and positioned to fit the element's content-box. (i.e. how an image or a video gets scaled/positioned inside of an <img>/<video> tag) The 'object-fit' property lets authors request e.g. 'contain' or 'cover' behavior (or several other behaviors), and 'object-position' lets the them specify how the content should be aligned when there's extra space available. Together, these proper...

Custom Server Control Design Time Property Shows "Object reference not set to an instance of an object"
The property "ReferenceValue" from my code below keeps showing an error in the properties window as above. The control however functions perfectly otherwise. 1 Imports System 2 Imports System.Web 3 Imports System.Web.UI 4 Imports System.Web.UI.WebControls 5 Imports Capr.Web.UI.ControlInterfaces 6 7 8 Namespace Controls 9 10 Public Class WMSTextBox 11 Inherits System.Web.UI.WebControls.TextBox 12 Implements ICaprBaseControl 13 14 Public Sub New() 15 End Sub 16 17 Public P...

Is object representation "per class" or "per object"?
According to S12, it is possible to supply the object layout to bless(), like so: $object = $class.bless(:CREATE[:repr<P6opaque>] :k1($v1) :k2($v2)) But in the section "Introspection", "layout" is a class trait. Does this mean that classes have a default layout that can be overriden for individual objects? If the answer is "yes", what is the reason that somebody would want to have some objects of the same class as P6Opaque and others as PyDict? I can imagine needing to be able to *convert* from one layout to another, but then the convert...

Getting an "Object reference not set to an instance of an object", and no idea which object
I'm working on one of our ASP.NET 2005 projects now.  For the longest time we've gotten an error when compiling it that says, "Object reference not set to an instance of an object".  However, the irritating thing is it doesn't say what "object" its having problems with, and it certainly isn't telling me which file that has the problem.  So, I'm getting this error message that doesn't tell me where the error comes from.  All I know is that the error is "Out there".  Reminds me of an old X-Files episode. How am I t...

I want to setup property value in property page but there "Object reference not set to an instance of an object."
What is it? And how i can debug my controls? Hi, we would pretty much more information. What kind of is the property in question? Is it string, URL or what? You would be able to debug controls by having controls on separate Web Control Library project and then the actual consuming app on project that uses these controls (references the Web Control Library project). Put breakpoints on the code for your controls and run F5 in Visual Studio to start debugging (like you nornmally would). That's it.Thanks,Teemu KeiskiFinland, EU If you access childobjects of your custom control in th...

Httpcontext.Current.Session["foo"]="foo" results in "Object reference not set to an instance of an object"
I tried to set a session variable in a App_Code class:  Httpcontext.Current.Session["foo"]="foo"; but I keep getting "Object reference not set to an instance of an object" error. How can I access Session object in a class file which is not part of a .aspx file? You are using c# right? System.Web.HttpContext.Current.Session["foo"] = "foo"; //for c#System.Web.HttpContext.Current.Session("foo") = "foo"; //for vb Your syntax is correct for setting a session variable inside a class file. Is session enabled for y...

Site keyword search returns "Object reference not set to an instance of an object."
Hi, I've installed DNN 3.1 along with a skin from skin3.com and several custom modules.  Now, I'm hoping these all aren't conspiring to make me miserable, but whatever I type into the site keyword search box returns "Object reference not set to an instance of an object."  What's going on? I'm hosted at webhost4life.com (whose support staff says they don't support DNN, just install it).  The web site is www.interlakeninstitute.org.  To reproduce this, just go to the home page and type anything into the search field. I'd really appreciate any ideas you migh...

Error in Data Binding Of Repeater Object of a WebUserControl: "Object reference not set to an instance of an object."
Hi all dudes, I have written the following Code below for Bind a Repeater object in a WebUserControl Object.When I want to set the the DataSource property of Repeater, It encounters the following error:"Object reference not set to an instance of an object."Line 37:     Reader = Cmd.ExecuteReader()Line 38:     Me.Rpt.DataSource = ReaderLine 39:     Me.Rpt.DataBind()When I paste this code in a New WebForm, it doesn't have any problems.So can anyone help me plz ?Thanks in Advance.Public Sub BindRepeater2(ByVal GroupID As String) ...

TableAdapter returns "object" instead of "int?" for a "GetCount" stored procedure
I am using a table adapter to generate a typed dataset. I used the wizard to create a method named "GetAllUsersCount" in dal which calls a stored procedure which has the following code ---- SET NOCOUNT ON; SELECT COUNT(*) AS Expr1 FROM tenderdigest.UserInfo using this code in the procedure the wizard creates a method named "GetAllUsersCount" which returns "int?" , which is i expect.  But later , i created another procedure with code --- SET NOCOUNT ON; SELECT COUNT(*) AS Expr1 FROM tenderdigest.UserInfo where email = @email which the adpater generates as "GetCountByEma...

"STYLE" property in "External User Object"
Hi all,... Does anyone know document to explain "STYLE" property in "External User Object" Thanks for helping... O s a m a D i a b diab98@hotmail.com I suspect that would depend on which EXTERNAL user object it is. Check with the vendor. Osama Diab wrote in message ... >Hi all,... > >Does anyone know document to explain "STYLE" property in "External User >Object" > >Thanks for helping... >O s a m a D i a b >diab98@hotmail.com > > > > I want any document, help please!! Je...

"STYLE" property in "External User Object"
Hi all,... Does anyone know document to explain "STYLE" property in "External User Object" Thanks for helping... O s a m a D i a b diab98@hotmail.com I suspect that would depend on which EXTERNAL user object it is. Check with the vendor. Osama Diab wrote in message ... >Hi all,... > >Does anyone know document to explain "STYLE" property in "External User >Object" > >Thanks for helping... >O s a m a D i a b >diab98@hotmail.com > > > > I want any document, help please!! Je...

"STYLE" property in "External User Object"
Hi all,... Does anyone know document to explain "STYLE" property in "External User Object" Thanks for helping... O s a m a D i a b diab98@hotmail.com I suspect that would depend on which EXTERNAL user object it is. Check with the vendor. Osama Diab wrote in message ... >Hi all,... > >Does anyone know document to explain "STYLE" property in "External User >Object" > >Thanks for helping... >O s a m a D i a b >diab98@hotmail.com > > > > I want any document, help please!! Je...

Using "New" for "Object reference not set to an instance of an object" error doesn't work...
Hi, I'm trying to build a sql insert statement by reading through each textbox the footer of a DataGrid control. Here's my datagrid code:<asp:DataGrid ID="Datagrid1" runat="server" OnPageIndexChanged="dgPersonnelType_PageChanger" AutoGenerateColumns="False" CellPadding="4" AlternatingItemStyle-BackColor="#FFFFBB" AllowPaging="True" PageSize="20" ShowFooter="True"> <ItemStyle BackColor="WhiteSmoke" Font-Names="verdana" Font-Size="10px" /> <Columns> <asp:TemplateColumn HeaderText="Insert"> <HeaderStyle BackColor="#CCCC99" Font-Bold="true" ...

Web resources about - Property returns "Object" object that contains custom objects - netscape.mozilla.jseng

Resources last updated: 12/9/2015 1:14:32 AM