Уважаемый Систадмин, хочу обратить ваше внимание на то что форум сайта плохо доступен для людей не пользующихся MS IE. Mozilla, Firefox, и последняя версия Opera не реагируют на щелчок по [Ответит].
Под Линуксом нет MS IE и большое число пользователей ОС Линукс лишены радости общения с участниками нашего форума.
Я сделал запрос на форум по Java Script и на форум по Опере. Вот результат.
Leon wrote:
Why javascript:reply('37004') does not work nor in Mozilla 1.7.5, nor in Firefox 1.0.1?
I have MS Windows XP Pro SP2 on my PC. Internet Explorer works just fine when I click javascript:reply('37004'), Opera 8.00 build 7401 too. But Mozilla and Firefox does not respond
So that script block tries to define a function named 'goto' which is a reserved word in ECMAScript and that causes an error so that the function definition for 'reply' that follows is
not processed.
You need to to change the code in that page so that the word 'goto' is not used.
which contains a function named goto. goto is a reserved identifier and can not be used as a function name. This error causes the rest of the script to fail to compile. Change the
function name from goto to something else and it will work.
*********************************************
Why javascript:reply('37004') does not work in Opera 8.0 Beta 2 for
Windows nor in Opera 8.0 Preview 5 for Windows?
I have MS Windows XP Pro SP2 on my PC. Opera 8.00 build 7401 (Beta 1)
works just fine when I click javascript:reply('37004'), MS Internet
Explorer 6.0 too. But Opera 8.0 Beta 2 and Opera 8.0 Preview 5 does not
Not only that, but they completely missed the point of using Javascript:
the links are formed like Îòâåòèòü rather than Îòâåòèòü so it completely fails if Javascript is turned off.
PAS.
--
Jor
Reply
leoni...@msn.com Mar 5, 8:38 am show options
Why this script works fine in MS Internet Explorer 6.0 and Opera 8.00
build 7401 (and all early versions of Opera), but not in Opera 8.0 Beta
2 and Opera 8.0 Preview 5?
Reply
Jordi Kroon Mar 5, 8:56 am show options
On Sat, 05 Mar 2005 17:38:58 +0100, wrote:
> Why this script works fine in MS Internet Explorer 6.0 and Opera 8.00
> build 7401 (and all early versions of Opera), but not in Opera 8.0 Beta
> 2 and Opera 8.0 Preview 5?
No idea. If you use nonstandard script, based on badly documented or
undocumented "extensions" Microsoft invented, you can expect it to fail.
Opera tries its best to copy the insane garble Microsoft has made of
Javascript, but this doesn't always work. If the page author would have
used normal scripting methods, it would work in all browsers.
The odd script doesn't work in my copy of Opera 7.54u2, by the way, so I
wonder what 'early version' it did work in?
If it worked in 7401, file a bugreport, as it would be a regression.
--
Jor
Reply
Richard Grevers Mar 5, 11:10 am show options
On Sat, 05 Mar 2005 17:56:14 +0100, Jordi Kroon
- Show quoted text -
According to the JS console, there is a ReferenceError: Opera is ismply
not finding the function "reply()" - this is probably related to a syntax
error in the preceding function (line 181 of the page source - its buried
in the body rather than the head of the page - as is the stylesheet!).
Found it! Opera 8 has obviously tightened up on legitimate javascript
syntax, and is erroring on the use of a reserved word as a function name
and a variable. So if I replace
function goto(where) (both reserved words!)
with
function gothere(dest)
everything works fine.
function goto(where) should never have worked in any browser!
Вплоть до версии 8.0 бета 1, щелчок по [Ответить] работал, а начиная с бета 2 перестал. И в дальнейшем не будет работать, так как изготовители сайта http://www.skisport.ru/ не придерживаются стандартов, а идут на поводу у сепаратистов из MS.
ИМХО, слова типа goto, reply являются ключевыми заразервированными словами, а в форумном скрипте они используются как имена функций определеных пользователем. Firefox, которым я пользуюсь имеет окно с сообщениями от интерпретатора JavaScript, в котором вывоядтся сообщения об ошибках в скрипте.
Под Линуксом нет MS IE и большое число пользователей ОС Линукс лишены радости общения с участниками нашего форума.
Я сделал запрос на форум по Java Script и на форум по Опере. Вот результат.
Leon wrote:
Why javascript:reply('37004') does not work nor in Mozilla 1.7.5, nor in Firefox 1.0.1?
I have MS Windows XP Pro SP2 on my PC. Internet Explorer works just fine when I click javascript:reply('37004'), Opera 8.00 build 7401 too. But Mozilla and Firefox does not respond
to this click at all.
URL is
Look at the JavaScript console, it gives an error while trying to load the page already
Error: missing ( before formal parameters
Source File:
Line: 204, Column: 9
Source Code:
function goto(where) {
So that script block tries to define a function named 'goto' which is a reserved word in ECMAScript and that causes an error so that the function definition for 'reply' that follows is
not processed.
You need to to change the code in that page so that the word 'goto' is not used.
**************************************
Notice in the javascript console
Error: missing ( before formal parameters
Source File:
Line: 204, Column: 9
Source Code:
function goto(where) {
Error: reply is not defined
Source File: javascript:reply('36814')
Line: 1
they have a script block
which contains a function named goto. goto is a reserved identifier and can not be used as a function name. This error causes the rest of the script to fail to compile. Change the
function name from goto to something else and it will work.
*********************************************
Why javascript:reply('37004') does not work in Opera 8.0 Beta 2 for
Windows nor in Opera 8.0 Preview 5 for Windows?
I have MS Windows XP Pro SP2 on my PC. Opera 8.00 build 7401 (Beta 1)
works just fine when I click javascript:reply('37004'), MS Internet
Explorer 6.0 too. But Opera 8.0 Beta 2 and Opera 8.0 Preview 5 does not
respond to this click at all.
URL is
Reply
Jordi Kroon Mar 5, 8:33 am show options
On Sat, 05 Mar 2005 17:27:16 +0100, wrote:
> Why javascript:reply('37004') does not work in Opera 8.0 Beta 2 for
> Windows nor in Opera 8.0 Preview 5 for Windows?
> I have MS Windows XP Pro SP2 on my PC. Opera 8.00 build 7401 (Beta 1)
> works just fine when I click javascript:reply('37004'), MS Internet
> Explorer 6.0 too. But Opera 8.0 Beta 2 and Opera 8.0 Preview 5 does not
> respond to this click at all.
> URL is
It doesn't work because their JScript is crap.
What the f- is vm doing here?
function reply(href)
{ vm=window.open("add.php?simple=1&reply_to="+href,"vm","copyhistory=0,directories=0,height=400,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=500");
vm.focus();
}
Not only that, but they completely missed the point of using Javascript:
the links are formed like Îòâåòèòü rather than Îòâåòèòü so it completely fails if Javascript is turned off.
PAS.
--
Jor
Reply
leoni...@msn.com Mar 5, 8:38 am show options
Why this script works fine in MS Internet Explorer 6.0 and Opera 8.00
build 7401 (and all early versions of Opera), but not in Opera 8.0 Beta
2 and Opera 8.0 Preview 5?
Reply
Jordi Kroon Mar 5, 8:56 am show options
On Sat, 05 Mar 2005 17:38:58 +0100, wrote:
> Why this script works fine in MS Internet Explorer 6.0 and Opera 8.00
> build 7401 (and all early versions of Opera), but not in Opera 8.0 Beta
> 2 and Opera 8.0 Preview 5?
No idea. If you use nonstandard script, based on badly documented or
undocumented "extensions" Microsoft invented, you can expect it to fail.
Opera tries its best to copy the insane garble Microsoft has made of
Javascript, but this doesn't always work. If the page author would have
used normal scripting methods, it would work in all browsers.
The odd script doesn't work in my copy of Opera 7.54u2, by the way, so I
wonder what 'early version' it did work in?
If it worked in 7401, file a bugreport, as it would be a regression.
--
Jor
Reply
Richard Grevers Mar 5, 11:10 am show options
On Sat, 05 Mar 2005 17:56:14 +0100, Jordi Kroon
- Show quoted text -
According to the JS console, there is a ReferenceError: Opera is ismply
not finding the function "reply()" - this is probably related to a syntax
error in the preceding function (line 181 of the page source - its buried
in the body rather than the head of the page - as is the stylesheet!).
Found it! Opera 8 has obviously tightened up on legitimate javascript
syntax, and is erroring on the use of a reserved word as a function name
and a variable. So if I replace
function goto(where) (both reserved words!)
with
function gothere(dest)
everything works fine.
function goto(where) should never have worked in any browser!
**************************************************
Конец сообщения