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
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
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
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
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).
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
>
>
> --
I every body,
I' ve got some problem with Javascript in Struts.
In fact, the command onclick in
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
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
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
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
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo