Javascript error on Mac with Safari browser

M

Marcel

Hi,

I have some very strange problem on the Mac (OS-X) with the Safari
browser 1.0 (v85). Some information in my form was not filled in...
after I turned on debugging and checked the console it displayed some
error messages.

The messages displayed were like:

(event handler): value undefined (result of expression trim) is not
object. Cannot be called.

I have no idea what this means!!! Does anyone know where to find the
solution for this problem? The page works fine on Windows with IE (and
probably some more browsers).

The trim function is located in an exteral javascript file which is
referenced in the head of the html.

<html>
<head>
<script language="JavaScript" type="text/javascript"
src="/dir/general.js"></script>
</head>
<body>
<script language="JavaScript">
<!--
if (trim("just a text") == "")
alert("It is emtpy!");
//-->
</script>
</body>
</html>

The trim method does nothing special and returns given string without
leading or trailing whitespaces.

I really don't know where to look for an answer to the problem.....

Any help would really be appreciated!

-- Marcel
 
T

Thomas 'PointedEars' Lahn

Marcel said:
The messages displayed were like:

(event handler): value undefined (result of expression trim) is not
object. Cannot be called.

I have no idea what this means!!! [...]

I have neither, since you did not post enough of your code, specifically
not the content of the /dir/general.js file you are using, from where the
trim(...) method seems to originate. Please post a URL where one can look
at the whole code.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top