RE: Validation And JavaScript Problem

2004-02-04 Thread Barnett, Brian W.
--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

RE: Validation And JavaScript Problem

2004-02-04 Thread Barnett, Brian W.
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

Validation And JavaScript Problem

2004-02-04 Thread Ciaran Hanley
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

RE: javascript problem

2003-03-14 Thread Edgar Dollin
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

RE: javascript problem

2003-03-13 Thread Karr, David
> -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

javascript problem

2003-03-13 Thread LUCERO,DENNIS (HP-Boise,ex1)
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

DynaFormValidator Javascript Problem with multiple forms

2003-01-05 Thread Mark Chaimungkalanont
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

Re: a little javascript problem

2002-10-25 Thread Vincent Stoessel
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

Re: a little javascript problem

2002-10-25 Thread Antoni Reus
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. > > >

Re: a little javascript problem

2002-10-25 Thread Eddie Bush
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

Re: a little javascript problem

2002-10-25 Thread Jeff_Mychasiw
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

a little javascript problem

2002-10-25 Thread Vincent Stoessel
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

Re: Tiles - Date JavaScript problem

2002-10-18 Thread Cedric Dumoulin
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

Tiles - Date JavaScript problem

2002-10-17 Thread Heligon Sandra
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

Tricky javascript problem performing programmatic form submit with struts

2002-04-06 Thread Wellie W. Chao
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

Re: Javascript problem referencing nested form fields

2002-03-26 Thread SUPRIYA MISRA
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]> >

Re: Javascript problem referencing nested form fields

2002-03-26 Thread Arron Bates
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

RE: Javascript problem referencing nested form fields

2002-03-26 Thread Robert Nocera
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

Javascript problem referencing nested form fields

2002-03-26 Thread Frederico Schuh
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

RE: JavaScript problem

2002-03-19 Thread Rajesh Gaikwad (EHS)
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

Re: JavaScript problem

2002-03-19 Thread Arron Bates
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

JavaScript problem

2002-03-19 Thread Rajesh Gaikwad (EHS)
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

Re: JavaScript problem. please help me.

2002-03-13 Thread SUPRIYA MISRA
>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

JavaScript problem. please help me.

2002-03-13 Thread Cyber Sagar
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

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Wilson, Les J SI-FSIA
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

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
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

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
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

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
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]

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
[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

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
] > 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

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Duncan Harris
[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

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
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

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
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

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Adam Grohs
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

Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
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

RE: html:select and JavaScript problem

2001-12-03 Thread ltorrence
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

html:select and JavaScript problem

2001-12-03 Thread rgi
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