Member Avatar

Hi all, I have some HTML as follows and I want it so when you click on an <li> it returns the dd3-content and url. <div class="dd" id="nestable3"> <ol class="dd-list" id="start"> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Home</div> <div class="url" style="display:none;">homeurl</div> </li> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">About Us</div> <div class="url" style="display:none;">abouturl</div> </li> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Gallery</div> <div class="url" style="display:none;">galleryurl</div> <ol class="dd-list"> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Contact</div> <div class="url" style="display:none;">contacturl</div> </li> </ol> </li> </ol> </div> My problem is if it more than one level deep. It is returning the li …

Member Avatar
+0 forum 8
Member Avatar

Hi, I'm having a major problem with an algorithm for Java. I am building a program that recursively parses a simple programming language that follows obvious production grammars. My main issue is nesting. For instance, the pattern might be something like this: Create Jpanel1:{ Create JButton1 Create JPanel2:{ Create JButton2 Create JButton3 } Create JTextField1 Create JPanel3:{ Create JPanel4:{ Create JButton4 } } } By now you've probably got an idea of what I'm talking about. In order to add JButton1 to JPanel1 I have to teach JButton1 who it's parent is (JPanel1 of course). You'll also notice that JButton1 …

Member Avatar
+0 forum 2
Member Avatar
Reusable Code Snippet MIPS I Collection Tools

Figured I've been working on material for a while and would throw these up for everyone that needs them in the future to use. It's very simple implementation; if I get enough people asking me to, I will write the methods for each of the instructions so you don't have to do it yourselves. I know Jump and Link was hard enough for me. :) Welcome, Jamie

Member Avatar
+0 forum 3

The End.