Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About caruga

  • Rank
  1. Bleh, brilliant: I upgrade from FF 12 to FF 14 and install the latest firebug, and my whole browser crashed randomly on its third or so attempt to write to the console.
  2. Thanks. However, I'm getting nothing in the firefox error console when I use this. Tested with function _(mess, dlg) { alert(""+mess); console.log("" + mess); return mess;} I see alert but nothing in error console (filter is set to 'all'). Or is there another console I'm missing?
  3. I'm guessing not since I can't find anything on it. I find the 'alert' dialog box to be tedious.
  4. Okeydoke. Since writing my 1st post I discovered 'jquery'. This seems to do what I had in the back of my mind as a 'convenience' function. I wonder if it can express in much fewer lines of code what the code in my OP does... I gather from the code you wrote that all statements are also expressions (i.e. the variable declaration can be next to a comma operator), unlike C. Next thing I'm looking at is having all the ideas integrated into the visible tree structure (with ever-decreasing font-size, down to the microscopic), and being able to click on any chapter and having it zoom (and animate t
  5. Knowing several languages but rusty with javascript, I know how there can be pitfalls in learning bad habits or coming up with convoluted, less than optimal solutions that would make more sense in other languages, almost abusing the language rather than working off of what it does best. So I am wondering if anything is unoptimal with the code below. The xml file is being read in; the code expects a 'featurelist' tag where 'ideas' and 'chapters' are organised under other chapters (except the top-level ones). Right now the code doesn't acknowledge the idea tags, it just tries to render the cha
  6. Hmm, looks like I will need js from what i've been reading. Right now I'm more bewildered about merely getting the counters to work. It seems you can't target specific instances of a counter that share the same identifier. If I have: .digest ol { counter-reset: n; } .digest li:before { counter-increment: n; content: counters(n,'.')'. '; } .digest li { display: block; } and: <ol class="digest"> <li>test 1</li> <li>test 2</li> <ol> <li>test 3</li> <li>test 4</li> </ol> <ol> <li>test 5</li
  7. I'm wondering if css supports a solution to this problem, or whether I need something like javascript (and if I do need js, whether someone can point me to a link that will get me started on the solution I'm looking for). I'd like to automatically have the members of a list (table of contents) be links to a bookmark within the page, presumably using the number as the name of the anchor. This would mate together content and chapter headings. e.g. there would be a TOC like so: 1. blah2. blah2.1. blah blah2.2. blah blah2.2.1. blah blah blah And when I build the list with <ol> and <li&
  • Create New...