[JavaScript] lint warning: missing semicolon
for the window.onunload = function() line inside the CDATA script.
Now if I add a semicolon before that line the warning goes away. ??? any help?
My real problem is that I am trying to add Facebook "Like" buttons to a phpBB forum I an developing.
[DELETE = this is not related I fine]
These functions, from phpBB 3.0.8, cause the Facebook functions to run in an infinite loop Only in Firefox. When you click the Facebook "like" button Facebook pops up a window so you can signin to facebook. That window pops up & closes infinitely. This does not happen in other browsers - current IE, Safari, Chrome or Opera.
[/DELETE]
Knowing how the pointing finger thing can go I am trying to localize problems before I get to they "don't play well together."
Code: Select all
<!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" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
// <![CDATA[
var jump_page = 'Enter the page number you wish to go to:';
var on_page = '1';
var per_page = '';
var base_url = '';
var style_cookie = 'phpBBstyle';
var style_cookie_settings = '; path=/; domain=www2.knob.com';
var onload_functions = new Array();
var onunload_functions = new Array();
/**
* New function for handling multiple calls to window.onload and window.unload by pentapenguin
*/
window.onload = function()
{
for (var i = 0; i < onload_functions.length; i++)
{
eval(onload_functions[i]);
}
}
window.onunload = function()
{
for (var i = 0; i < onunload_functions.length; i++)
{
eval(onunload_functions[i]);
}
}
// ]]>
</script>
</head>
<body>
</body>
</html>