In a website for a client I created this function:
function reload(a) {
location.href="index.php?pag=" + a; }
Of course I shouldn't have as there is already a function:
location.reload([bReloadSource] )
But I didn't realise that at the time.
I tested the script and it worked as I expected in Iexplorer 6.028 and also in Ieplorer 5.5
So I guess my function replaced the predefined function.
Then, at my clients computer all pages worked fine, except page 1. It took me days before I realised that I had used a reserved name for my function and then another night before I saw what had happened: In the client's pc the function I wrote was seen as an overload function that was only called for arguments other than 'true' or 'false', 1 or 0.
I find this behaviour very bizar. How can the same function, on one version of IEx be seen as a replacement and on another as an overload???
Any explanations or similar experiences?
function reload(a) {
location.href="index.php?pag=" + a; }
Of course I shouldn't have as there is already a function:
location.reload([bReloadSource] )
But I didn't realise that at the time.
I tested the script and it worked as I expected in Iexplorer 6.028 and also in Ieplorer 5.5
So I guess my function replaced the predefined function.
Then, at my clients computer all pages worked fine, except page 1. It took me days before I realised that I had used a reserved name for my function and then another night before I saw what had happened: In the client's pc the function I wrote was seen as an overload function that was only called for arguments other than 'true' or 'false', 1 or 0.
I find this behaviour very bizar. How can the same function, on one version of IEx be seen as a replacement and on another as an overload???
Any explanations or similar experiences?