rendered paste body<?
require_once 'appinclude.php';
require_once 'dbappinclude.php';
?>
<a href="#" id="dialog_body" onclick="var dialog = new Dialog().showChoice('Important Dialog', dialog_color, 'Okay', 'Nevermind');
dialog.onconfirm = function() {
var myform = document.getElementById('myform');
for (i=0;i<myform.t.length;i++) {
if (myform.t[i].getChecked) {
var color = myform.t[i].getValue;
document.getElementById('dialog_body').setStyle({background: color});
}
}
};
return false;">
A dialog that changes your colors...</a><br />
<fb:js-string var="dialog_color">
<b>What color would you like this set to be?</b><br />
<form id="myform">
<input type="radio" name="t" value="blue" />
<input type="radio" name="t" value="red" />
<input type="radio" name="t" value="yellow" />
</form>
</fb:js-string>