Mozilla: not enough arguments

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

    Mozilla: not enough arguments

    Hi folks,

    I embedded a javascript in HTML and tried to open the file using
    mozilla 1.4 it gave me the following exception in the script on
    clicking the Submit/Next button. IE was able to execute the script

    Function defination
    function evaluate(form)

    Line making the call :
    <INPUT onclick="if (validate(this. form)) evaluate(this.f orm);"
    type=button value=Submit/Next name=B1>&nbsp;& nbsp;&nbsp;

    Mozilla Javascript console window.

    Error: uncaught exception: [Exception... "Not enough arguments
    [nsIDOMXPathEval uator.evaluate]" nsresult: "0x80570001
    (NS_ERROR_XPC_N OT_ENOUGH_ARGS) " location: "JS frame :: <unknown
    filename> :: onclick :: line 0" data: no]

    A similar webpage is at


    cheers,
    S.
  • HikksNotAtHome

    #2
    Re: Mozilla: not enough arguments

    In article <3c2f7bf2.03083 00946.7438e0bc@ posting.google. com>,
    ushereicome@yah oo.com (Spark) writes:
    [color=blue]
    >I embedded a javascript in HTML and tried to open the file using
    >mozilla 1.4 it gave me the following exception in the script on
    >clicking the Submit/Next button. IE was able to execute the script[/color]

    IE lets you get away with bad code. Mozilla doesn't.
    [color=blue]
    >Function defination
    > function evaluate(form)
    >
    >Line making the call :
    > <INPUT onclick="if (validate(this. form)) evaluate(this.f orm);"
    >type=button value=Submit/Next name=B1>
    >
    >Mozilla Javascript console window.
    >
    >Error: uncaught exception: [Exception... "Not enough arguments
    >[nsIDOMXPathEval uator.evaluate]" nsresult: "0x80570001
    >(NS_ERROR_XPC_ NOT_ENOUGH_ARGS )" location: "JS frame :: <unknown
    >filename> :: onclick :: line 0" data: no]
    >
    >A similar webpage is at
    >http://www.ecs.umass.edu/ece/koren/a...re/scoreboard/
    >[/color]

    Evidently, since that one works and what you are doing doesn't work in Mozilla,
    something is not "similar" about them. Post a URL to the actual page you are
    working on, or the bare minimum code needed to duplicate your problem.
    --
    Randy

    Comment

    Working...