Inline Editor (Entry Nr. 401, by user 1 | edit) |
|
// ge_require_once('http://javascript.gibney.org/view.js');
// ge_require_once('http://javascript.gibney.org/dynamic_html_elements.js');
function main()
{
document.designMode = 'on';
document.addEventListener("keypress", catchKeyf ,true);
// In edit mode, we are not able to get rid of the nomal message box, so lets disable it...
// var message = 'Inline Editor Design Mode is on. Click anywhere to begin editing. Esc To turn Editing Off';
// ge_messageBox('http://en.gibney.org/inline_editor/',message);
// ... and use an ugly alert box:
alert ("The iEditor is active. Click anywhere to begin editing. Hit ESC to turn editing off.");
}
function catchKeyf(e)
{
switch (e.keyCode)
{
case 27:
document.designMode = 'off';
document.body.removeChild(document.getElementById('showTable'));
break;
default:
break;
}
}
startMain(); |
|
|
Create a new entry at this position
|
|
|