Eric,

Hopefully I have this straight -
My first question would be how are you importing the file with the
JavaScript functions?
I didn't see where it was being imported.
sc
                -----Original Message-----
                From:   eric liu [mailto:[EMAIL PROTECTED]]
                Sent:   Thursday, August 26, 1999 11:05 AM
                To:     [EMAIL PROTECTED]
                Subject:        any difference between coding javascript in
servlet and puting it in a file

                Hello there: I am trying to program a servlet which interact
with client
                through a set of navigation buttons (using form). I put the
javascript in
                a separate file, the script like this:
                function showDetails(butt){
                if(butt=="next"){do something}
                if(butt=="previous"){do something}
                etc.
                }
                and in the servlet, I defined a form name "memberlookup"
which includes
                these hidden values:
                <input type="hidden" name="rowid1" value="start">
                <input type="hidden" name="rowid2" value="end">
                <input type="hidden" name="totalrecords" value=totalrecords>
                and button types as:
                <input type=button name="nxet" value=" > "
onClick="showDetail('next')">
                etc.

                When I test the button, the browser give me error:
                        'document.memberlookup.rowid2' is not an object.

                But when I put the javascript in the servlet, it works. I am
wondering
                if there is any difference between coding it in the servlet
and puting
                it in a file.  Any help is appreciated.  Eric Liu


___________________________________________________________________________
                To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body
                of the message "signoff SERVLET-INTEREST".

                Archives:
http://archives.java.sun.com/archives/servlet-interest.html
                Resources:
http://java.sun.com/products/servlet/external-resources.html
                LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to