Questions tagged [object-properties]

117 questions
2
votes
3 answers

How to access an object property from an array of objects in a click handler?

I have created a number of instances of a object constructor which I have placed into an array and looped over to display into a list. Now I want to select a name property from that list to use in an onclick event handler (not shown in this code). I…
Sai
  • 801
  • 3
  • 10
  • 27
2
votes
1 answer

Javascript inheritence in jquery way

If I set a function under an object i can use it once only like function handle(selector) { return{ elem:selector, next:function(){ return (this.nextSibling.nodeType==1) ? this.nextSibling :…
nikoss
  • 3,254
  • 2
  • 26
  • 40
2
votes
2 answers

How to use element with object property like element.myobj.prop

If I declare a object like var obj =function(element){ return{ wide:element.clientWidth }} I must declare it like var fdiv=new obj(document.etc.etc.); and call like fdiv.wide; But this is quite limiting my code. I must declare new obj for each…
nikoss
  • 3,254
  • 2
  • 26
  • 40
2
votes
1 answer

kivy: How to use StringProperty and bind()?

I've got 2 screens, managed by a screenmanager. I'm using a global variable, CHOSEN_ITEM, to save a string variable which is changed by the First Screen. This CHOSEN_ITEM is displayed by the Second Screen. I know StringProperty must be used but I…
ThePhi
  • 2,373
  • 3
  • 28
  • 38
2
votes
1 answer

How to add a property (property name is variable) to object via MongoDB driver (node.js)

The structure of my document in collection is this. { "_id" : ObjectId("54e74de2950fd3a4e5f0a37a"), "userName": "Any_user", "ratings": { "rating1" : [ ], "big_rating" : [ ] } } In MongoDB client (mongo.exe) the adding i need looks like…
NXTaar
  • 21
  • 1
  • 4
2
votes
1 answer

PHP storing refernece in object property (Cannot assign by reference to overloaded object)

So I've been trying to get an IRC bot working with PHP, to run locally. However, I want it to be able to retrieve information from a site, and post this information periodically. So I installed pthreads to do that. However, I'm having a bit of…
TUSF
  • 121
  • 2
2
votes
3 answers

Cannot set the property value for JMS_IBM_MQMD_MsgId in weblogic, JMS, java

I want to send a message to a JMS Queue, and I want to set an object property: tMessage.setObjectProperty("JMS_IBM_MQMD_MsgId", bytes); //bytes is a byte array value But I am getting an exception for this…
victorio
  • 6,224
  • 24
  • 77
  • 113
2
votes
0 answers

How to push object properties and values into an array?

I have an input field in HTML: I'm generating a random value here: function rand(length, current) { current = current || ''; return length ? rand(--length,…
Mike T.
  • 21
  • 1
  • 4
2
votes
3 answers

IE8 can't access object properties within for loop

I have the JS below. An array of objects. Each object with an "s" and "e" property. The first for loop is a test to log the "s" and "e" properties for the first item on the array. The second loop is where I want the working code to happen, but I…
Stimpson
  • 49
  • 6
2
votes
2 answers

I cannot access an object property

I'm using Java and Jena API. I have a class Marriage which have 3 Object Properties called "hasHusband", "Haswife" and "dateOfMarriage". The first two are associated with a class Person which has the datatypeproperties like hasFirstName,…
user1632278
  • 111
  • 6
2
votes
1 answer

Java - Jena API - Get an attribute of another class

I'm using java and the Jena API. I have a class Marriage which has 3 Object Properties called "hasHusband", "Haswife" and "dateOfMarriage". The first two are associated with a class Person which has the datatype properties like first name, last…
user1632278
  • 111
  • 6
2
votes
1 answer

List object properties from a instance in Jena

How can I list all Object Properties associated to a instance in Jena? For example: A Person has an Object Property called "hasVehicle" which is associated with a class Vehicle
Leandro
  • 33
  • 1
  • 4
1
vote
2 answers

C++: object properties emulation: thoughts

Good day everyone! Properties are not implemented in C++. Id est we cannot write myObject.property = value; // try to set field f_ to value is property is private data member. Public data members violate OOP encapsulation rules. Instead we have…
nickolay
  • 3,643
  • 3
  • 32
  • 40
1
vote
1 answer

'max' and 'exactly' cardinality restrictions in the context of the OWA

In first place i have to apologize for my very, very poor english. I've been studying the representation of knowledge in the context of design of experts systems trough ontologies. In particular, i've been using protégé as an OWL ontology…
1
vote
2 answers

Accessing/Setting the property value of an object property of an ASP.NET User Control - Using Decalarative Syntax

I feel like I recall from days gone by an article explaining how to DECLARATIVELY set the value of the property of an object, exposed as the property of an ASP.NET User Control. My situation is that I have a user control which contains a…
Gary O. Stenstrom
  • 2,284
  • 9
  • 38
  • 59