A
andrewljohnson
Hi everyone,
If you visit this page in Safari, you will just see a paragraph of
text: http://cabin.trailbehind.com/
In Firefox, the search box and the side menu get rendered properly
(via javascript).
Here is a test I did. The first Alert fires, but not the second Alert.
Anyone have any thoughts on this mystery?
window.onDomReady(onReady);
function onReady() {
var menuWidget = renderHomeMenu();
...
}
//include via javascript include media/javascript/Widgets/
MenuWidget.js
function renderHomeMenu() {
alert(1) //NEVER FIRES
menuWidget = new MenuWidget('col2', false);
}
I also put an alert in the main body of MenuWidget.js, which should
fire when the include happens, but it doesn't. Also, when I check the
Safari console, it can't find function renderHomeMenu().
What am I doing wrong?
Thanks,
Andrew
If you visit this page in Safari, you will just see a paragraph of
text: http://cabin.trailbehind.com/
In Firefox, the search box and the side menu get rendered properly
(via javascript).
Here is a test I did. The first Alert fires, but not the second Alert.
Anyone have any thoughts on this mystery?
window.onDomReady(onReady);
function onReady() {
var menuWidget = renderHomeMenu();
...
}
//include via javascript include media/javascript/Widgets/
MenuWidget.js
function renderHomeMenu() {
alert(1) //NEVER FIRES
menuWidget = new MenuWidget('col2', false);
}
I also put an alert in the main body of MenuWidget.js, which should
fire when the include happens, but it doesn't. Also, when I check the
Safari console, it can't find function renderHomeMenu().
What am I doing wrong?
Thanks,
Andrew