1) FrelixGroup: Members Posts: 3Joined: 2 Aug 2006Location: Redding, CAIP: 75.26.--.--
Posted:
I have to begin by saying "Wow!" as well as "Thank you." and followed by "Wow!!".
I've been interested in creating a few pages for specific-interest content which is pretty basic in itself, but with the added attractiveness that can be achieved using some of today's advanced techniques but I've been really dreading what I was expecting to be a very frustrating and confusing self-education of certain web-based coding languages - what a relief it is to find this site and the many incredibly useful tools contained within. Very many 'kudos' to you!
I haven't installed CheckTree just yet, but from the online demo I have a question, is there a version available without the CheckBox features and only the Expanding / Collapsing Tree features ? For the purpose of my intended application of your script I don't need the CheckBox functions and would rather them not be there since I don't have any real use for them quite yet. Perhaps I should be punished for asking such a question without having tried the script or looked at the code, but I figured my issue would be most efficiently taken care of by posting here and as such, I did =D.
Thanks for any information and assistance / help you can provide me with! Again, cheers to your work and for providing the community with that which you have, you've undoubtedly saved many of us quite a bit of forehead-to-keyboard contact, *laughs*.
[63 Arch Mage] Frelix (Gnome) <Dominion>
2) FrelixGroup: Members Posts: 3Joined: 2 Aug 2006Location: Redding, CAIP: 75.26.--.--
Posted:
After looking at the code, I think I've figured this part out. All I have to do is remove the INPUT element for each checkbox, thus leaving an expandable / collapsable tree. Is this correct? Assuming so, wouldn't this leave quite a bit of code in the script which serves no purpose and could safely be removed? I don't want to botch the script and there's a bit about JavaScript that I don't follow - could someone guide me to removing any of the functions that have to do with the checkbox aspect of the script and the counters for counting checked / unchecked child elements of the tree, etc? All I need for this specific application is the expansion / collapsability of the text strings. I have a use for the CheckBox functions later, but not for what I'm doing right this second, please and thanks!
[63 Arch Mage] Frelix (Gnome) <Dominion>
3) FrelixGroup: Members Posts: 3Joined: 2 Aug 2006Location: Redding, CAIP: 75.26.--.--
Posted:
I've got the tree functioning in exactly the manner I want it to, and after a tiny bit of PhotoShop work and increasing the text size it's looking exactly how I want it to. The parts I snipped from the HTML page are 1) the checkboxes, as they are trivial for my purposes and 2) the SPAN elements which count the number of child branches that are checked as the previous step basically eliminates the need for this. So I'm basically sure of the changes I made to fit my needs, but I'm still curious about how much unnecessary code is left in the checktree.js file which may or may not be doing anything, and which is functioning completely beyond what I intend this specific page to do - making most of it excessive and again, unecessary. The reply I posted just above this one I asked for some kind of guide to removing the unnecessary bits but after going through the checktree.js file and picking about the code, instead I wonder if you could point me in the right place to learn the JavaScript necessary to kind of go at it myself with an idea of what I'm doing...
That's basically my only request at this point. Oh one more thing, again I'm not sure of myself and what little JS I have experience with, but how would I go about coding ( I know I would have to add in a couple of images ) the same sort of plus-last/minus-last conversion, but for a plus-first/minus-first implementation for the very first branch to give it the same "clean" look as with the lasts?
And perhaps your level of coding experience far surpasses these things and I should be looking toward more beginner techniques instead of troubling you with my silly questions, but hey ~ I figured what the hell, might as well ask. Thanks in advance.
[63 Arch Mage] Frelix (Gnome) <Dominion>
4) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 192.188.--.--
Posted:
Glad to see that you're making progress!
A fair amount of the code in that script is devoted to counting and synchronising checkboxes. Mostly in the setBoxStates() function, you could delete most or all of that :).
I'm not sure what you mean by plus/minus first/last. That's controlled in the CSS for the tree, if you open that up you should be able to customise it!
Good luck - Angus.
5) FrelixGroup: Guests IP: 75.26.--.--
Posted:
Thanks for the reply, sorry for my delayed response, I recently moved and didn't have the same bookmarks on my computer as I do on this one ( at my girlfriend's house ). I solved the plus/minus etc issue, and I did have one problem with the alignment of the +expand boxes not vertically centered with the text but I changed the text size to my liking and then just edited the pictures used for them to line up. Thanks again for your help, and giving my cluelessness a chance at a really neat, interactive page! =D