LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Konqueror 3.3.2 isn't able to execute JavaScript (https://www.linuxquestions.org/questions/linux-general-1/konqueror-3-3-2-isnt-able-to-execute-javascript-370859/)

lord_didger 10-08-2005 03:17 AM

Konqueror 3.3.2 isn't able to execute JavaScript
 
Hi,
I have written a website which contains in source some JavaScript. I opened this site in konqueror 3.3.2 with JavaScript enabled and then appeared an erron. I checked the site in another web browser (Mozilla) and there code worked as I expect.

The error is:

Quote:

(unknow) line 1:
TypeError: Object [object INPUT] (result of expression podtrona) does noe allow calls.
"podstrona" is a function located between script tag in <head></head>; it looks like this:

Code:

function podstrona(strona)
{
        window.alert("fajds");
        document.forms["dane"].podstrona.value =  strona;
        return true;
}

once I have changed this to:

Code:

function podstrona(strona)
{
        window.alert("fajds");
        document.forms["dane"].elements["podstrona"].setAttribute(value, strona);
        return true;
}

but It didn't make error go away. The expression indicated by debuger to contains the error is
Code:

onmouseover = "podstrona('zost-wiad');"
or other onmouseover elements.

What is wrong? I think it is impossible that konqueror is not able to execute such easy and obvious code.


All times are GMT -5. The time now is 10:59 AM.