Questions tagged [expando]

An expando is an custom property attached to a document object.

An expando property is an attribute of a DOM element which is not part of the specification or IDL. Some legacy expandos, such as onclick, are natively mapped to an internal event handler for backward compatibility with the DOM level 0 model.

References

80 questions
1
vote
0 answers

Expando vs jQuery data

I'd like to know if there's any reason to use jQuery's data over expando properties. I'm converting a script that's currently using multiple event listeners to use only one listener on parent object, and wish to read arbitrary data objects from the…
Bharel
  • 12,244
  • 2
  • 27
  • 48
1
vote
1 answer

Can Java handle an Expando?

I'll synchronize the data from Google Contacts with a datastore in App Engine... i'm doing this in Python, and the datastore will be read later by a Java GAE instance. Using Expando felt natural, but i'm not sure if the Java instance is going to be…
1
vote
2 answers

Is there a cross-browser way to use a jQuery selector on an expando property?

I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an…
NightOwl888
  • 51,095
  • 20
  • 122
  • 194
1
vote
1 answer

How to add a custom field in life ray existing user table?

I have a requirement that the site owner has permission to create the users and able to view the list of users only created by him. To achieve the same I have created a portlet which has the form with basic user details. While submitting the form…
Prasad
  • 1,080
  • 9
  • 22
1
vote
1 answer

Getting Custom Field Values in Liferay

I added a custom field in Liferay (JournalArticle), and set the value (manuel). Custom Field: Processroles (= Group of Text Values) Value: Dummy,Sourcer How can I search all JournalArticles with this Custom Field Values? If I try this, I…
user2682513
  • 11
  • 1
  • 3
1
vote
1 answer

Inject a Groovy Closure into Expando that acts as Property

I have a class that extends Expando and gets injected with dynamic properties. class Dynamo extends Expando { } Dynamo dynamic = [ firstName: 'bob', lastName: 'dobbs' ] I'd like to create a dynamic property fullName that evaluates to "$lastName,…
durp
  • 188
  • 1
  • 6
1
vote
1 answer

Is it bad for performance to have an App Engine expando model with a huge number of properties?

I've been using a pattern in an application where I'm setting arbitrary attributes on Expando class models in an App Engine app. This works as expected, but hasn't yet been tested with a really large data set. And over time, the number of attributes…
jamtoday
  • 4,734
  • 5
  • 37
  • 48
0
votes
1 answer

EditorForModel and DisplayForModel don't work on Expando objects

Or at least, they don't do what I was expecting. My Action method looks like this: Function Test() As ActionResult Dim model As Object = New ExpandoObject() model.FieldA = 123 model.FieldB = "This is a string" …
Joshua Frank
  • 11,886
  • 11
  • 44
  • 84
0
votes
1 answer

System.Dynamic ExpandoControl is it possible?

I'm trying to figure out how to create a web server control which is basically an ExpandoObject. The desire is to automatically create a property on the control when it is created in the aspx markup. For example:
ChrisS
  • 2,535
  • 2
  • 16
  • 19
0
votes
3 answers

How to remove extended attribute "jquery123456" from element

I have one element "Testing" I want to remove the last attribute (jquery1234567) from the above tag. But the attribute "jquery1234567" will be generated dynamically.
pradeep
  • 11
  • 1
0
votes
2 answers

Grails: println only works sometimes or something

I make a brand new grails project and put this in the bootstrap: ExpandoMetaClass.enableGlobally() Integer.metaClass.precision = {->return 1} println 3.precision() println "rofl" println 15.precision() And it does what I expect, run-app…
Mikey
  • 4,332
  • 9
  • 40
  • 70
0
votes
1 answer

Selenium 2.0 and findBy - Custom properties or Expando Properties

Anyone have a suggestion for finding elements on a page by a custom property, like an expando property? Problem: Site uses alot of JSP and dynamic images for buttons. They do not have static names or IDs. (Think of a registration or checkout process…
0
votes
2 answers

Intercepting dynamic property accessors .NET 4

Here's an interesting question (to me at least): Is it possible to intercept arbitrary property accessors (getters/setters) in an object, such that I can reroute that request elsewhere, such as to a private member object? I'd love it if I could make…
devios1
  • 33,997
  • 43
  • 149
  • 241
0
votes
2 answers

dojo Expando pane content goes hidden when expanded

I have expandoPane which consists of some buttons. When I perform other operations in the project and then expand this expandoPane, its contents goes hidden and those are visble after resizing it using splitter only. I want to solve this. Do you…
harris
  • 39
  • 6
0
votes
0 answers

How can I get result of jquery.data(element).actions through file .js?

If I write in Chrome console: let btns = document.getElementsByName('btn_desktop'); let btnLast = btns[btns.length - 1]; jQuery.data(btnLast).actions; I get the following result in the Chrome console: [{\"oper\":\"viewLink\",\"link\":\"here…
human
  • 1
  • 1