Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 95725 invoked by uid 500); 25 Jul 2001 15:07:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 95705 invoked from network); 25 Jul 2001 15:07:03 -0000 Received: from p-mail2.rd.francetelecom.fr (HELO p-mail2.cnet.fr) (193.49.124.32) by h31.sny.collab.net with SMTP; 25 Jul 2001 15:07:03 -0000 Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Wed, 25 Jul 2001 17:06:22 +0200 Message-ID: From: zze-messager FTM balr002 To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Java script problem using servlets Date: Wed, 25 Jul 2001 17:05:41 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N In order to activate the debugger : (IE) outils/options internet/avancees -----Message d'origine----- De : William Kaufman [mailto:WKaufman@viquity.com] Envoye : mercredi 25 juillet 2001 16:55 A : 'tomcat-user@jakarta.apache.org' Objet : RE: Java script problem using servlets First question: Did you try running this in a browser debugger? MS has one for IE (search for "JScript debugger"), and Netscape 4 has one. > parent.document.critere document.critere isn't defined, unless you're defining it somewhere else. And, is this actually, really the HTML you're using? You've got this option in there: > You need to quote the value. You should also realize that the text outside the tags is never going to line up the way you want. You might want to replace the blanks with " ", and set the style to "font-family: monospace;". Or, replace the whole thing with a table and add some radio buttons to do selection. -- Bill K. > -----Original Message----- > From: Michel COTE [mailto:michel.cote@coop.fr] > Sent: Wednesday, July 25, 2001 7:26 AM > To: 'tomcat-user@jakarta.apache.org' > Subject: Java script problem using servlets > > > Hello, > > I'm using Jakarta since a few days and i encounter the > following strange > problem : > > I have build a sample servlet based page that contains two > frames, one > (issued from a servlet) with a sample form composed of a dynamic list > (created with a JDBC SQL query) and a push button, and > another one composed > of a static html file (not coming from a servlet) including > only a text > field. > > I just want to copy the value content of the selected list > item, in the > text field by clicking the button. > So i use a sample " onClick " java script function on the > button that reads > the value in the list and write into the text field. Then i > allways get a > java script error message " Permission denied ". > > When i replace the servlet HTML part in the first frame by > exactly the SAME > HTML STATIC code (not issued from a servlet but directly > from an html > file), everything works fine ! ! ? ? > > Have you ever eard about such a matter ? ? ? > > Thanks for any help. > > Michel COTE. > > Here is a copy of the HTML code in the first frame : > > > Liste des articles > > >
>
> > >

value='Sélectionner' > onClick="majCode()"> >
>
> > > > > Michel COTE > Cooperateurs de Normandie Picardie > Tel : 232111086 > email : michel.cote@coop.fr >