Creating a JavaScript sibling from within a parent's child?
-
I want to create a parent Node that contains a child Node function that needs to be able to create siblings. The following pseudo-code provides the example. function Parent() { this.Child = function() { if (...) alert(new this()); // want to create a new Parent.Child / Sibling } new this.Child(); }; new Parent();
-
Answer:
Use a linked list. http://www.nczonline.net/blog/2009/04/21/computer-science-in-javascript-doubly-linked-lists/
SkewsMe.... at Yahoo! Answers Visit the source
Related Q & A:
- Is there a way of creating a interactive word document?Best solution by pcworld.com
- Where is a good place to have a teenager's birthday party in melbourne, australia?Best solution by Yahoo! Answers
- How do I deal with a difficult sibling?Best solution by realsimple.com
- How to change your parent's email address in Xbox lives?Best solution by wiki.answers.com
- What can you do with a Bachelor's in Child Development?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.