News:

The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Databits

#136
Knowhow Trading Post / Re: Not-working Javascript
December 16, 2008, 11:04:46 PM
ok good news, I know the issue, the bad news... this JS is ugly as sin.

It's all located in this here:
function collapseAll(objs) {
var i;
for (i=0;i<objs.length;i++ ) {
objs[i].style.display = 'none';
}
}
function pageLoad() {
collapseAll($('aboutp','legendp','overp','systemp','typesp','becomingp','gemsp','aimsp','deathp','weaponsp','planep','ronadap','itemsp', 'classesp','recp','spoilerchains','spoileryu','spoilersaru','spoilerhibi','spoileremblem','spoilerdonna','spoilernexy','spoilerohbi', 'spoilerresen','spoilercinna','spoilermin','spoilerjone','spoilerisu','spoilerfila','spoilergachan','spoilerchester','spoilermido', 'spoilerwren','spoilerkaben'));
}
addEvent(window,'load',pageLoad);


What this code here is doing is adding the pageLoad() function to an onload handler event (which runs after the page is finished loading). the pageLoad function has an object with a crap ton of hard coded element id's in it which is passes to the collapseAll() function. The collapseAll() function then basically loops through that entire listing and attempts to just set the property on each of these elements, regardless on if they exist or not...

What I'd suggest is to just pre-hide all these elements with inline styles (or a class added to each one with display: none set in it) and scrap this entire chunk of code. It looks more professional when everything is showing as intended before the page is done loading anyhow. Rather than waiting for the page to load then hiding everything that you want hidden.
#137
Knowhow Trading Post / Re: Not-working Javascript
December 16, 2008, 08:26:33 PM
I don't see any sparkling link thingy on either of those pages.
#138
Yeah, considering that SFTP uses the SSH protocol in some cases, that's no surprise. The thing is that just normal FTP is plain flat out insecure. No matter what you do it seems people always find a way in... then again enforcing smart passwords on users is another measure that should be taken more often than it usually is.  ::)

Did you know one of the most common passwords in the world is "jesus"?
#139
Knowhow Trading Post / Re: Not-working Javascript
December 16, 2008, 01:48:48 PM
If you have questions in PHP, SQL, or even JS/HTML/CSS (hell even C/C++ at this point) just ask. I'm rather well adept in all of them, and even if I don't know the answer I can generally find one.  ;)
#140
Knowhow Trading Post / Re: Not-working Javascript
December 16, 2008, 12:35:31 PM
FireFox says:

QuoteError: results is not defined
Source File: javascript:results()
Line: 1

Which means that you either aren't defining that function before you use it in the page, or that you aren't including the file that defines that function before using it in that page. By the looks of it you're missing a rather important include that you have on the other site:

  <script type="text/javascript" src="js/commonlf.js"></script>
</head>
#141
Art / Re: Music = Imaginary Fuel?
December 15, 2008, 01:53:07 PM
Though I do tend to change styles of music depending on what I'm working on and how frustrated I am with it. Generally I've found that blues are better for working on programming stuff than things like rock. As for classical, screw that... my brother used to play his damn piano all the time when I lived at home, so the sound of classical music just generally irritates me rather than sooth (thanks bro!)
#142
Art / Re: Music = Imaginary Fuel?
December 13, 2008, 12:42:10 AM
I dunno about art, but I love listening to music when I'm programming. It seems to help motivate me (and yes you can get programmers block just as well as anything else).
#143
Knowhow Trading Post / Re: Job Hunting
December 12, 2008, 01:41:36 PM
What is your skill set?

Depending on what you can do I may be able to get you a small amount of contract work, but no guarantees. We've already got a full time web designer and a couple damn good programmers as it is, but my primary contractor looks for extra people in different areas on occasion.
#144
I suppose I'll need to work on getting a new one of these made, preferably with stuff like Smarty/WinSCP.

The old guide still exists in limbo somewhere, my bad since I move it. I'll fix that and get it back online.
#145
Generally I've found that GIMP is able to do some nice compression with PNG's as well.
#146
General Chat / Re: The Circle of Life...
December 10, 2008, 07:34:09 PM
I wouldn't call that lucky, I'd call it smart as hell.
#147
Actually I think the only browser that I can think of that's still somewhat in use now days which doesn't support PNG transparency is IE6. Outside that you're pretty much totally safe using it.
#148
Web Design / Re: CMSeseseses..
November 17, 2008, 05:50:53 PM
You could always try writing one.  :P
#149
Web Design / Re: Image Viewing Programs
November 05, 2008, 08:07:08 PM
Hmm, I'm not really sure how to dumb it down much more than I have. Lets see...

Here:
Minified jQuery vs. Normal Uncompressed jQuery

The "minified" version is a lot smaller (54.4 kb), same code and all, but encoded and compressed. It's a smaller download initially, but more work for the browser in the long run because it has to decompress and evaluate it every time it runs.

Then you have the normal version, which is larger (97.7 kb), which is "slightly" larger (though a 40kb difference isn't shit with broadband now days) and less work for the browser since it doesn't have to decompress it and run it through an eval statement each time a page loads with that script.

There's not really a lot more I can simplify it.  ;D
#150
Writing / Re: Dissertation Writing
November 03, 2008, 09:09:42 PM
SPAM FAIL