This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href='/classes/viewSource/?path=<?=$_SERVER['PHP_SELF']?>' target='_blank'>View Source</a><br/><br/><br/> | |
/*------------------------------------------------------------------------------------------------- | |
Check enter | |
-------------------------------------------------------------------------------------------------*/ | |
function checkEnter(e,submitFunction){ | |
// Put this in the last field of a form like this : <input type="text" onKeyPress="checkEnter(event,hey)"> | |
// e is the event.. its passed in just as event... It looks like this : keyup charCode=0, keyCode=13 | |
// submit function is the function we'll call, pass it in as a string! | |
// if params are needed for the submitFunction they get passed in too - as many as are needed. we'll invoke arguments to fetch all of them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title> The Big Type Experiment </title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MembersController extends AppController { | |
var $name = 'Members'; | |
var $helpers = array('Html','Javascript','Form','Time'); | |
var $components = array('Session','RequestHandler'); | |
var $uses = array(); | |
function index() { | |
// Works, will load the ajax.ctp layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Random Drawing</title> | |
<style type='text/css'> | |
* { | |
font-family:Helvetica; | |
font-size:35pt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>Tom McQuaid - Designer & Illustrator</title> | |
<meta name="description" content="An online portfolio of creative work from Tom McQuaid, a designer working in Philadelphia, PA." /> | |
<link rel="stylesheet" type="text/css" href="../../styles.css" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script type='text/javascript'> | |
$(document).ready(function() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script type='text/javascript'> | |
$(document).ready(function() { | |
// JS bits go here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showContent(whichContent) { | |
/* Turn off all divs */ | |
$('#content-Problem1').css('display','none'); | |
$('#content-Problem2').css('display','none'); | |
$('#content-Problem3').css('display','none'); | |
$('#content-Problem4').css('display','none'); | |
$('#content-Problem5').css('display','none'); | |
/* Turn on just the one we want */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>NomNom iteration 1</title> | |
<!DOCTYPE html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'ajax_page.php', | |
data: { foo:bar }, | |
success: function(data) { | |
console.log("Done!"); | |
} | |
}); |
OlderNewer