With Javascript: http://stackoverflow.com/questions/1704533/intercept-page-exit-event
With JQuery: http://stackoverflow.com/questions/6063522/jquery-beforeunload
var elem = document.getElementById(‘frmNameSearch’).elements;
str = ”;
for(var i = 0; i < elem.length; i++)
{
str += “Type: ” + elem[i].type + ” Name: ” + elem[i].name + “n”;
}
console.log(str);
Needed to replace
<p>Regulatory Taking:
with
<p><b>Regulatory Taking</b>:
where text between <p> and : were undetermined. The following RegEx find/replace in Notepad++ does the job:
Find: <p>(.+):
Replace: <p><b>$1</b>:
$1 is the ‘Backreference’ to (.+)
Here is a nice tutorial about PHP authentication using PEAR.
$staffName = isset($_GET[‘staffName’]) ? $_GET[‘staffName’] : $staffName = ”;
or even shorter
$staffName = $_GET[‘staffName’] ?: $staffName = ”;
instead of
if(isset($_GET[‘ckDone’])){$ckDone = ‘checked’;} else {$ckDone = ”;}
See this article.
Article about formatting a table with multicell when there are variable height cells.
Regarding representing and storing dates after 2037, I need to analyze this discussion further.
This is a nice introduction to object oriented programming in PHP.
And this OOP tutorial for jquery.
A nice tutorial on this confusing subject.