Hi, Andrew,
I have just run across your "dshistory" project (beta5 Version) and I
have to tell you, it works like a charm!
Lovely!
I was using rsh in another project, but dshistory is more concise.
As you mentioned, it does not work in Opera.
I am quite happy, though, without Opera....
But as the problems Opera encounters seem to me to be rather formal
and not too complicated, maybe you might want to revisit that, just
for the case of completeness...
I am getting these errors in the error console.
Maybe they can be of some help to you
JavaScript -
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1
Event thread: load
Error:
name: TypeError
message: Statement on line 96: Cannot convert undefined or null to
Object
Backtrace:
Line 96 of inline#2 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1
frameWindow.document.body.innerText = String(iteration);
Line 100 of inline#2 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1:
In function writeIteration
writeIteration(iteration);
Opera does not seem to like this construct here:
// internal function to save the iteration we are on
function writeIteration(iteration) {
// lazy function definition pattern used for performance
if (supportsDataProtocol) {
writeIteration = function(iteration) {
frameWindow.document.body.textContent = String(iteration);
};
} else {
writeIteration = function(iteration) {
frameWindow.document.body.innerText = String(iteration);
};
}
writeIteration(iteration);
};
Line 215 of inline#2 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1:
In function updateFrameIteration
writeIteration(1);
Might be caused by the previous error.....
Line 340 of inline#2 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1
updateFrameIteration();
????????
Line 9 of inline#3 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1:
In function set_ds_history_start
dsHistory.addFunction(function()
Does not like this construct in my dsHistory init-function....
Line 40 of inline#3 script in
http://localhost/seifenparadies/xtCommerce_beckpc/pc_advisor.php?page=1
oldonload();
This one is part of the famous "addLoadEvent" routine.....
function addLoadEvent(func)
{
var oldonload = window.onload;
if (typeof window.onload != "function")
{
window.onload = func;
}
else
{
window.onload = function()
{
if (oldonload)
{
oldonload();
}
func();
}
}
}
Again: great work!