--typo on last post (removed space)--
-Original Message-
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 4:10 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation And JavaScript Problem
Make sure the form names match in your j
And JavaScript Problem
Hey
I am using struts validations with my application.
The problem I'm having is that when I open a page with client side
JavaScript validation the JavaScript is coming out at the bottom of my
JSP.
Anybody encountered this problem before?
Than
Hey
I am using struts validations with my application.
The problem I'm having is that when I open a page with client side
JavaScript validation the JavaScript is coming out at the bottom of my
JSP.
Anybody encountered this problem before?
Thanks
CH
You could also do a custom tag or move the doSomething() to a server side
action.
Edgar
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 13, 2003 6:15 PM
> To: 'Struts Users Mailing List'
> Subjec
> -Original Message-
> From: LUCERO,DENNIS (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]
>
> Hello
> I am trying to do this:
>
> onClick="doSomething(<%=somedynamicvariable%>)" > Do Something
>
>
> Basically trying to pass a dynamic variable as arg to java script
function
> within the stru
Hello
I am trying to do this:
Do Something
Basically trying to pass a dynamic variable as arg to java script function
within the struts html:button tag.
I know I can build up the string in scriplet code like this
<% String temp = "doSomething(" +dynamicvariable + ")" ;%>
And t
Hi all,
I have 3 forms on my page each having a field that is required. The
validation stores these fields in an that can be obtained by caliing by
required().
Unfortunately, my 3
produces 3 required() methods in 3 different java script blocks.
What this means is that when required() is cal
quot;Struts Users Mailing List"
<[EMAIL PROTECTED]>
To:Struts Users <[EMAIL PROTECTED]>
cc:
Subject: a little javascript problem
Uh oh, it seems I can't use the 'id' attribute in html:* form elements.
I need to do this in a form element :
onClick="d
Hi,
A Divendres 25 Octubre 2002 20:30, Vincent Stoessel va escriure:
> Uh oh, it seems I can't use the 'id' attribute in html:* form elements.
>
> I need to do this in a form element :
> onClick="disableIt(document.getElementById("myID"))
>
> but I cannot do this on the target form element.
>
>
>
try styleId="myID" id is used for other things, as you've discovered ...
Vincent Stoessel wrote:
Uh oh, it seems I can't use the 'id' attribute in html:* form elements.
I need to do this in a form element :
onClick="disableIt(document.getElementById("myID"))
but I cannot do this on the target
PROTECTED]>
cc:
Subject: a little javascript problem
Uh oh, it seems I can't use the 'id' attribute in html:* form elements.
I need to do this in a form element :
onClick="disableIt(document.getElementById("myID"))
but I cannot do this on the target fo
Uh oh, it seems I can't use the 'id' attribute in html:* form elements.
I need to do this in a form element :
onClick="disableIt(document.getElementById("myID"))
but I cannot do this on the target form element.
because that violates the DTD, I guess.
Any workarounds?
--
Vincent Stoessel
Hi,
Yes it is.
Remind that Tiles propose a way to build a page by assembling small
pieces. The build is done on the server side, then the resulting page is
sent to the client who interprets it. A javascript code is usually
interpreted on the client side.
In your case, you should take care
I need to display on each page of my application the current
date-time.
I use the following JavaScript:
var timerID = 0;
function aff_heure() {
var d=new Date()
var weekday=new
Array("Sunday","Monday","T
I spent a good hour hunting down the source of my problem with trying to
programmatically submit a form and thought I'd share the solution for others
who are using struts. I wanted to have a select list automatically cause its
containing form to submit when the value of the select list changed. Th
I had the similar problem fixed by using
document.Form.elements["address.number"].value=0.0;
>From: Arron Bates <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>
This one is scheduled for a tips page someplace. I'm adding it to my
site, but Struts home page should have one... anyways, onto the real
topic
As you already know, the dot notation is getting in the way and messing
up JavaScript document object model.
For the field you want, use...
docu
IL PROTECTED]]
Sent: Tuesday, March 26, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: Javascript problem referencing nested form fields
I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, th
I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, the
generated HTML would be something like this:
The problem is that I can't find a way to reference
those form fields if I want to do some
Thanks Arron ,
It worked.
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 9:24 AM
To: Struts Users Mailing List
Subject:Re: JavaScript
If you give the submit tag a property value it will change the name to
that of the property. It should match a bean property, but it can be a
fake one.
eg:
public void setMyNonSubmitTitledProperty(String temp) {}
...and in the markup
...it should render...
Arron.
Rajesh Gaikw
Hi everyone,
Yesterday I was trying something like
Yes
No
.
But this didn't worked giving JavaScript error submit is not a function
This is because co
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: JavaScript problem. please help me.
>Date: Thu, 14 Mar 2002 00:46:47 +0900
>
>Dear friends,
>I have a strange problem. please help me
>
>I have to execute 2 scripting files in a html
Dear friends,
I have a strange problem. please help me
I have to execute 2 scripting files in a html page (One is compatible for
Internet explorer and anotherone is for netscape)
ie.js
netscape.js
how can i call these 2 scripts in my html file to make compatible for both
IE and Netscape.
I have
Hi,
try this
total += parseFloat(x);
Les
-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2002 15:00
To: [EMAIL PROTECTED]
Subject: Re: Indexed Tag and JavaScript Problem
Now I have another problem.
In JavaScirpt I have;
var total=0.0;
var x;
for
Oops. That should be
total =+ parseFloat( x);
Mark
-Original Message-
From: Galbreath, Mark
Sent: Thursday, February 14, 2002 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Indexed Tag and JavaScript Problem
total =+ total + parseInt( x);
Cheers!
Mark
--
Try befo
and JavaScript Problem
Now I have another problem.
In JavaScirpt I have;
var total=0.0;
var x;
for loop
x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value;
alert(x);
total=total+x;
alert(total);
end loop
x gets the correct values like 1,2,3
but total=0.0 t
Thanks.I used parseFloat() to do that and it works.
>From: [EMAIL PROTECTED] (Duncan Harris)
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Indexed Tag and JavaScript Problem
>Date: Thu, 14 Feb 2002 15:12 + (GMT Standard Time)
>
>[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 14, 2002 4:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Indexed Tag and JavaScript Problem
> >
> >
> > Now I have another problem.
> > In JavaScirpt I have;
> >
> > var total=0.0;
> &g
]
> Subject: Re: Indexed Tag and JavaScript Problem
>
>
> Now I have another problem.
> In JavaScirpt I have;
>
> var total=0.0;
> var x;
>
> for loop
> x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value;
> alert(x);
> tota
[EMAIL PROTECTED] (SUPRIYA MISRA) wrote:
> Now I have another problem.
> In JavaScirpt I have;
>
> var total=0.0;
> var x;
>
> for loop
> x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value;
> alert(x);
> total=total+x;
> alert(total);
> end loop
>
> x gets the correct values
12 and so on.
It is doing string concatenation instead of adding them.
JavaScript Gurus please help.
>From: "Adam Grohs" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTE
Thank you so much Adams. It works.
>From: "Adam Grohs" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Indexed Tag and JavaScript P
rsday, February 14, 2002 9:50 AM
Subject: Indexed Tag and JavaScript Problem
> Since I am using Indexed tag, my form gets the the following structure
>
>
>
> size="6" value="0.0" onchange="update(1,1,3)">
>
>
>
>
> the update functio
Since I am using Indexed tag, my form gets the the following structure
the update function is in JavaScript where I want to do some check.
How to I access the form element?
document.currentForm.actHour[1].faHrsDay1.value=1+1+3 does not work.
error message from JavaScript is as follows.
a
TECTED]]
Sent: Monday, December 03, 2001 5:59 AM
To: [EMAIL PROTECTED]
Subject: html:select and JavaScript problem
Hello struts-user,
I want to write a selected element from a PullDown in a text form. I
use a JavaScript funktion to do this. This funktion is excecuted
when someone click on a elem
Hello struts-user,
I want to write a selected element from a PullDown in a text form. I
use a JavaScript funktion to do this. This funktion is excecuted
when someone click on a element from the PullDown. (or perhaps not
excecuted?)
The problem is now, nothing is written in the text fiel
37 matches
Mail list logo