[Proto-Scripty] Infinite references

2010-12-09 Thread Bart
Hi, I'm creating a visual tree structure in which every item can have multiple childs. In the following code the parent item adds one child to itself. But for some reason the child adds itself as a child of its own in an infinite loop: - CODE -- var Item = Class.create({

[Proto-Scripty] Re: Infinite references

2010-12-09 Thread T.J. Crowder
Hi, The problem is that your `childs` property is shared by all of your instances, it's not specific to each instance. You have the same problem that the OP has in this question from just a few days ago, so see that thread for the details of why:

[Proto-Scripty] Re: Observe once

2010-12-09 Thread T.J. Crowder
Hi, Provided the code is in the order you're showing it and you don't assign some other value to `discardAll` later, that should work; here's a stand-alone example (not using Lightview, but using custom events): http://jsbin.com/awiqi4 Somewhat off-topic, but unless you have a good reason to do

Re: [Proto-Scripty] Re: Infinite references

2010-12-09 Thread Richard Quadling
On 9 December 2010 09:27, T.J. Crowder t...@crowdersoftware.com wrote: Hi, The problem is that your `childs` property is shared by all of your instances, it's not specific to each instance. You have the same problem that the OP has in this question from just a few days ago, so see that

[Proto-Scripty] Altering information beofre submitting to field

2010-12-09 Thread Lincarte
Hi, i am rather new to autocomplete and i have run across a problem. Ive tried google but the mass of information is intimidating. My probem is that i want to the dropdownlist from the auocompletion to display more information than what will actualy be submitted to the field. i have a list of

Re: [Proto-Scripty] Altering information beofre submitting to field

2010-12-09 Thread Walter Lee Davis
Take a look at the 'informal' option in the Wiki. If you code your drop-down with span class=informal wrapping the parts you don't want submitted, then you will get precisely what you're asking for. Walter On Dec 9, 2010, at 7:58 AM, Lincarte wrote: My probem is that i want to the

[Proto-Scripty] Re: Altering information beofre submitting to field

2010-12-09 Thread Lincarte
Thank You Walter, using the infromation you gave me i was able to perform better google searches myself. The problem however is still usolved. I forgot to mention that i am working with Lotus Notes Domino Designer and i adding the informal attribute in the view removed the section entierly. am i

Re: [Proto-Scripty] Re: Altering information beofre submitting to field

2010-12-09 Thread Walter Lee Davis
What I see on the Wiki is the following: If you wish to display additional information in the autocomplete dropdown that you don’t want inserted into the field when you choose an item, surround it in a span (could work with others but not tested) with the class of “informal”. For