Javascript error on Mac with Safari browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcel

    #1

    Javascript error on Mac with Safari browser

    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="JavaS cript" type="text/javascript"
    src="/dir/general.js"></script>
    </head>
    <body>
    <script language="JavaS cript">
    <!--
    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
  • Thomas 'PointedEars' Lahn

    #2
    Re: Javascript error on Mac with Safari browser

    Marcel wrote:
    [color=blue]
    > 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!!! [...][/color]

    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

    Comment

    Working...