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 | |
define("XMLAPI","1"); | |
include("common.php"); | |
defp(); | |
connect(); | |
auth(); | |
$id=$user_id; | |
$aaid=intval($_REQUEST[aaid]); | |
$id=$user_id; | |
$aaid=intval($_REQUEST[aaid]); |
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
// where... | |
someFunc = function(e) { | |
// e has the event data | |
} | |
// I'm having a play with YUI 3 and came across an oddity. | |
Y.all('input').on('focus', someFunc); | |
// In the context of someFunc, 'this' is the set of inputs and |
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
console.log('Body script'); | |
YAHOO.util.Event.onDOMReady(function(o) { | |
console.log('DOM Ready'); | |
var handleSuccess = function(o) { | |
alert('Success'); | |
}; | |
var handleFailure = function(o) { | |
alert('Failure'); | |
}; | |
var callback = { |
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
var names, array, size, order, str, sort, reverse, rev; | |
names = prompt("Please input names separated by spaces: ", ""); | |
order = prompt("What order? (ascending or descending)", ""); | |
array = names.split(/\s+/); | |
size = array.length; | |
if (names == "" || names == null) | |
{ document.write("Oops, you did not enter a name, please enter a name!"); } | |
else if (names != "" && names != null) |
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 XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns = "http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<script type = "text/javascript"> | |
<!-- | |
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 XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns = "http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Browser Information!</title> | |
<script type = "text/javascript"> | |
<!-- | |
function browser() { |
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 moveIt(radio) { | |
var pos; | |
pos = radio.value; | |
moz = document.getElementById('moz'); | |
switch (pos) { | |
case "nw" : | |
moz.style.top="200px"; | |
break; | |
case "ne" : | |
moz.style.top="400px"; |
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 XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<title>Image Testing!</title> | |
<link rel="stylesheet" type="text/css" href="image.css" /> | |
<script src="image.js" language="javascript" type="text/javascript"></script> | |
</head> |
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
// start all zindex at 0 | |
document.getElementById('image_one').style.zIndex = 0; | |
document.getElementById('image_two').style.zIndex = 0; | |
document.getElementById('image_three').style.zIndex = 0; | |
// storage for current node | |
var topImage = null; | |
function layers(newTop) { |
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
var _menuClick = function (e) { | |
var function_code = e.target.get("id").split("-")[1]; | |
Y.log('handling click...' + function_code, "info", log_key); | |
var container = Y.one("#manage_action"); | |
Y.io( | |
menu_config["base_url"] + function_code, | |
{ | |
on: { |
OlderNewer