Jump to content

codefossa

Members
  • Posts

    583
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by codefossa

  1. Well, luckily for you I have it already which I reuse all the time?  Just needs simple edits.

     

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
    
    <style>
    label.error { width: 250px; display: inline; color: red;}
    </style>
    
    <script type="text/javascript">
    function ahah(url, target) {
    	if (window.XMLHttpRequest) {
    		req = new XMLHttpRequest();
    	} else if (window.ActiveXObject) {
    	req = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    	if (req != undefined) {
    		req.onreadystatechange = function() {ahahDone(url, target);};
    		req.open("GET", url, true);
    		req.send("");
    	}
    }  
    
    function ahahDone(url, target) {
    	if (req.readyState == 4) {
    		if (req.status == 200) {
    			document.getElementById(target).innerHTML = req.responseText;
    		} else {
    			document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText;
    		}
    	}
    }
    
    function load(name, div) {
    	ahah(name,div);
    	return false;
    }
    </script>
    

  2. I'm not 100% sure of what you're asking, but here's what I believe you are asking.  You basically want to have two types of ID's in a single table. (Students & Staff)

     

    To do this, I would just add an extra column which would be named 'type' or 'staff', whatever you want.  Then make sure it's an int, and just use 0 & 1 to represent student or staff.

     

    If it's not what you wanted, then sorry.

  3. In your layout, where announcements show in the header with the grey box, you have a break as well as in the footer.  I would suggest simply adding a br tag to the header and footer to solve this.

     

    I'm not sure if it's in all OS's, but I know it happens in Linux Ubuntu using Firefox, which happens to be what I use.

  4. Hey, I'm Kira or more well known as "IceXaos".  I own a community which uses SMF 2.0 RC3 which happens to be the same software used here, with one upgrade.  My community is name Runedev, found at http://runedev.info and we're a gaming / cheating community.  I'm pretty decent in HTML, CSS, PHP, and a bunch more, so since I've known about this community for quite a while now, I finally thought I'd join.

     

    I don't normally even do introductions, but there it is. :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.