Struts and Javascript

2004-03-01 Thread as as
HI, I am working on an app that has a jsp with a drop down.This drop down must automatically be populated(on first page load) with the defualt value showing up as "Selected". i got the drop down working with tag but it shows the drp down and not the defualta s teh selected .how to accomplish

Re: struts and javascript document.write(...)

2002-07-11 Thread Virga
hi babs, you could also use 'innerHTML', but it will not work in 'not-so-dhtml' browser like netscape 4.7.x :-( e.g.: create a function to display the error message and call the function on your validation script. function displayError(theMessage) { document.getElementById('error').innerH

Re: struts and javascript document.write(...)

2002-07-11 Thread Barbara Post
thanks Adarsh, so what's the workaround to add some content with a javascript on a jsp ? Babs - Original Message - From: Adarsh <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 10:26 AM Subject: RE: struts and javascri

RE: struts and javascript document.write(...)

2002-07-11 Thread Adarsh
hi documnt.write always erase the contents and starts as new -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:05 PM To: [EMAIL PROTECTED] Subject: struts and javascript document.write(...) Hello, I am playing with this : http://www.mail

struts and javascript document.write(...)

2002-07-11 Thread Barbara Post
Hello, I am playing with this : http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16093.html but have troubles with document.write(...) in a .js file that does not write on my jsp but on a new page. guess I have all the javascript functions to be in .jsp files ? (see the link above).

Re: Pb with struts and javascript

2002-05-30 Thread ajTreece
Cyrill... I do this in my app... Change your link to: Later, ajTreece cyril guszkiewicz wrote: > I every body, > I' ve got some problem with Javascript in Struts. > In fact, the command onclick in Could somebody help me ? > Thanks you > > > --

Pb with struts and javascript

2002-05-30 Thread cyril guszkiewicz
I every body, I' ve got some problem with Javascript in Struts. In fact, the command onclick in

RE: Struts and Javascript question

2001-11-13 Thread Nocera, Robert
Thanks all, that did it. I wasn't familiar with the document.formname.elements['fieldname'] notation. -Rob -Original Message- From: Jon Wall [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 4:56 PM To: Struts Users Mailing List Subject: Re: Struts and Java

RE: Struts and Javascript question

2001-11-13 Thread Nekkalapudi, Viplava
lto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 3:47 PM To: Struts Users Mailing List (E-mail) Subject: Struts and Javascript question Hello all, I was wondering if anyone knows how to access a form element in javascript that has a "." in the name of it. For example, if I have

Re: Struts and Javascript question

2001-11-13 Thread Jon Wall
Hi Rob - Haven't tried tried this with dots, but I had this problem a long time ago with spaces. Here's the three ways (that I know of) to access a form element in JavaScript: document.formname.fieldname document.formname.elements[fieldnum] document.formname.elements['fieldname'] Using the fi

RE: Struts and Javascript question

2001-11-13 Thread Anil Kumar Kona
Mailing List (E-mail) Subject: Struts and Javascript question Hello all, I was wondering if anyone knows how to access a form element in javascript that has a "." in the name of it. For example, if I have a data bean included in a form beanm, I can access fields in the data bean through

Struts and Javascript question

2001-11-13 Thread Nocera, Robert
Hello all, I was wondering if anyone knows how to access a form element in javascript that has a "." in the name of it. For example, if I have a data bean included in a form beanm, I can access fields in the data bean through tags using the "." notation as: This create an input text box with th

RE: Struts and Javascript

2001-07-06 Thread DHarty
D -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: RE: Struts and Javascript You could still do something I did below with JavaScript, but have the toggle set the value somewhere on the page for

RE: Struts and Javascript

2001-07-06 Thread David Winterfeldt
the text > description, but my data > is coming from a struts bean, and I am unsure of how > to get the data from > one to the other. > > Thanks. > > -Original Message- > From: David Winterfeldt > [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 06, 2001 2:04 P

RE: Struts and Javascript

2001-07-06 Thread DHarty
2:04 PM To: [EMAIL PROTECTED] Subject: Re: Struts and Javascript I'm not sure what you are trying to do exactly. Do you want to show a message box with a value based on the choice from the select? You would need to create a JavaScript array of the values you are looking for in order to display

RE: Struts and Javascript

2001-07-06 Thread DHarty
Thanks guys, I'll work on these and let you know what happens. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 2:03 PM To: [EMAIL PROTECTED] Subject: Re: Struts and Javascript Only other thought is could you include the descri

Re: Struts and Javascript

2001-07-06 Thread David Winterfeldt
I'm not sure what you are trying to do exactly. Do you want to show a message box with a value based on the choice from the select? You would need to create a JavaScript array of the values you are looking for in order to display them. // Auto-generate the description that goes with the key fun

Re: Struts and Javascript

2001-07-06 Thread dhay
may be best bet. Dave Peter Alfors <[EMAIL PROTECTED]> on 07/06/2001 01:51:11 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: Struts and Javascript I don't believe that this will work. To my understanding, JavaS

Re: Struts and Javascript

2001-07-06 Thread Peter Alfors
I don't believe that this will work. To my understanding, JavaScript does not have access to objects within a request or session. By the time the javascript is run, the request is dead. There may be a better solution than this... One solution would be to have your JSP page generate a javascript a

Struts and Javascript

2001-07-06 Thread DHarty
I know this is getting out of context for for this list, but I've got a selection box populated with the name property of a bean. I'd like to display the "description" property of that bean when the selection changes. I know you can use javascript commands in the select option, but I am unsure ho