RE: (Urgent) Please help - validating checkboxes

2002-04-15 Thread Joe Latty

function CheckAll(form, cBox){
  for (var i=0;iSelect All:  

This will turn checking on and off...

Hope this is what your after.

-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 3:34 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes

Thanks Joe, it works great, but upon unchecking the checkbox, it doesn't
uncheck the rest of the checkboxes. Do you have any solutions(anyone out
there has any solution to offer too)?

regards
--

On Tue, 16 Apr 2002 13:32:16
 Joe Latty wrote:
>This Javascript works in IE and NN 6.02
>
>function CheckAll(form){
>  for (var i=0;i   var e = form.elements[i];
>   if ((e.name == 'announcementID') && (e.type=='checkbox')) {
>e.checked = true;
>   }
>  }
>}//end of function
>
>-Original Message-
>From: days [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, 16 April 2002 12:49 PM
>To: Struts Users Mailing List
>Subject: (Urgent) Please help - validating checkboxes
>
>Hi I've got a "Select All" checkbox in my jsp that dynamically checks all
>the checkboxes upon clicking on it. However I've got major problem trying
to
>retrieve the value for my checkboxes. Not only do I get a "Syntax error"
>alert box, the checkboxes also doesn't get checked when I click on the
>"Select All" checkbox. Obviously, the javascript is not working and I have
>zero idea why.
>
>It appears as follows:
>
>/***MY JAVASCRIPT**/
>
>function CheckAll(){
> var len;
> len=document.announcementForm
> [0].announcementID.length;
>
> if(len==null){
>   document.announcementForm[0].announcementID.checked
>   = document.announcementForm[0].chkall.checked;
> }
> else{
>  for (var i=0;idocument.announcementForm[0].announcementID
>[i].checked = true;
>  }
> }
>}//end of function
>
>/*MY CODES*/
>type="portlio.news.form.deleteNewsForm">
>
>
>Select All
>
>
>value="<%=((portlio.news.entity.News)news).getNewsId()%>"/>
>
>
>/**END/
>
>PS:I've been working on it since yesterday but to no avail. Please
>help...thanks a lot :)
>
>regards
>
>
>See Dave Matthews Band live or win a signed guitar
>http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_02020
1
>/splash.asp
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201
/splash.asp

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: (Urgent) Please help - validating checkboxes

2002-04-15 Thread Brett Porter

e.checked = !e.checked to toggle existing, or
e.checked = selectAllCB.checked

-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 3:34 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes


Thanks Joe, it works great, but upon unchecking the checkbox, it doesn't
uncheck the rest of the checkboxes. Do you have any solutions(anyone out
there has any solution to offer too)?

regards
--

On Tue, 16 Apr 2002 13:32:16  
 Joe Latty wrote:
>This Javascript works in IE and NN 6.02
>
>function CheckAll(form){
>  for (var i=0;i   var e = form.elements[i];
>   if ((e.name == 'announcementID') && (e.type=='checkbox')) {
>e.checked = true;
>   }
>  }
>}//end of function
>
>-Original Message-
>From: days [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, 16 April 2002 12:49 PM
>To: Struts Users Mailing List
>Subject: (Urgent) Please help - validating checkboxes
>
>Hi I've got a "Select All" checkbox in my jsp that dynamically checks all
>the checkboxes upon clicking on it. However I've got major problem trying
to
>retrieve the value for my checkboxes. Not only do I get a "Syntax error"
>alert box, the checkboxes also doesn't get checked when I click on the
>"Select All" checkbox. Obviously, the javascript is not working and I have
>zero idea why.
>
>It appears as follows:
>
>/***MY JAVASCRIPT**/
>
>function CheckAll(){
> var len;
> len=document.announcementForm
> [0].announcementID.length;
>
> if(len==null){
>   document.announcementForm[0].announcementID.checked
>   = document.announcementForm[0].chkall.checked;
> }
> else{
>  for (var i=0;idocument.announcementForm[0].announcementID
>[i].checked = true;
>  }
> }
>}//end of function
>
>/*MY CODES*/
>type="portlio.news.form.deleteNewsForm">
>
>
>Select All
>
>
>value="<%=((portlio.news.entity.News)news).getNewsId()%>"/>
>
>
>/**END/
>
>PS:I've been working on it since yesterday but to no avail. Please
>help...thanks a lot :)
>
>regards
>
>
>See Dave Matthews Band live or win a signed guitar
>http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_02020
1
>/splash.asp
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201
/splash.asp 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: (Urgent) Please help - validating checkboxes

2002-04-15 Thread Joe Latty

This Javascript works in IE and NN 6.02

function CheckAll(form){
  for (var i=0;imailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 12:49 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes

Hi I've got a "Select All" checkbox in my jsp that dynamically checks all
the checkboxes upon clicking on it. However I've got major problem trying to
retrieve the value for my checkboxes. Not only do I get a "Syntax error"
alert box, the checkboxes also doesn't get checked when I click on the
"Select All" checkbox. Obviously, the javascript is not working and I have
zero idea why.

It appears as follows:

/***MY JAVASCRIPT**/

function CheckAll(){
 var len;
 len=document.announcementForm
 [0].announcementID.length;

 if(len==null){
   document.announcementForm[0].announcementID.checked
   = document.announcementForm[0].chkall.checked;
 }
 else{
  for (var i=0;i
For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: URGENT: PLEASE HELP

2001-08-27 Thread Shelly Dhiman

It's working

Shelly

Shelly Dhiman wrote:
> 
> Hi,
> That part is working now. Can i say something like this
> 
> 
>  direct='true'>HELLO
> 
> 
>  I mean insert html tags in it
> 
> Shelly
> 
> Shelly Dhiman wrote:
> >
> > Hi Chris,
> > Sorry to bother you but for me it doesn't work. Below is th e snippet
> > for my code
> >
> > 
> > HELLO
> > 
> >
> > Shelly
> >
> > "Assenza, Chris" wrote:
> > >
> > > Shelly,
> > >
> > > I've cut and paste the template for one of our pages (minus a lot of extra
> > > puts). This does indeed work.
> > >
> > > 
> > >  > > key="acctmaint.window.title" />
> > > HTML Text
> > > 
> > >
> > > Make sure you aren't closing the opening put tag with a slash before the
> > > content
> > > (ie. DO NOT DO:  > > />html)
> > > (note the slash before ">html > >
> > > Chris
> > >
> > > Christopher Assenza
> > > Phone:  412.201.6026
> > > Fax: 412.201.6060
> > > Email:  [EMAIL PROTECTED]
> > > ACCESSDATA
> > > Moving Your Business from Point A to Point e.SM
> > > http://www.accessdc.com/
> > >
> > > -Original Message-
> > > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 24, 2001 2:30 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: URGENT: PLEASE HELP
> > >
> > > Hi,
> > >
> > > It does not work. It complains about ending the template:put tag
> > >
> > > Shelly
> > >
> > > "Assenza, Chris" wrote:
> > > >
> > > > Hello, I'm HTML in a
> > > > template
> > > >
> > > > Chris
> > > >
> > > > Christopher Assenza
> > > > Phone:  412.201.6026
> > > > Fax: 412.201.6060
> > > > Email:  [EMAIL PROTECTED]
> > > > ACCESSDATA
> > > > Moving Your Business from Point A to Point e.SM
> > > > http://www.accessdc.com/
> > > >
> > > > -Original Message-
> > > > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, August 15, 2001 1:51 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: URGENT: PLEASE HELP
> > > >
> > > > In
> > > > template:put name='abc' content='' tag
> > > > can we put direct html code fragment
> > > >
> > > > Shelly



Re: URGENT: PLEASE HELP

2001-08-27 Thread Shelly Dhiman

Hi,
That part is working now. Can i say something like this


HELLO


 I mean insert html tags in it

Shelly

Shelly Dhiman wrote:
> 
> Hi Chris,
> Sorry to bother you but for me it doesn't work. Below is th e snippet
> for my code
> 
> 
> HELLO
> 
> 
> Shelly
> 
> "Assenza, Chris" wrote:
> >
> > Shelly,
> >
> > I've cut and paste the template for one of our pages (minus a lot of extra
> > puts). This does indeed work.
> >
> > 
> >  > key="acctmaint.window.title" />
> > HTML Text
> > 
> >
> > Make sure you aren't closing the opening put tag with a slash before the
> > content
> > (ie. DO NOT DO:  > />html)
> > (note the slash before ">html >
> > Chris
> >
> > Christopher Assenza
> > Phone:  412.201.6026
> > Fax: 412.201.6060
> > Email:  [EMAIL PROTECTED]
> > ACCESSDATA
> > Moving Your Business from Point A to Point e.SM
> > http://www.accessdc.com/
> >
> > -Original Message-
> > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 24, 2001 2:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: URGENT: PLEASE HELP
> >
> > Hi,
> >
> > It does not work. It complains about ending the template:put tag
> >
> > Shelly
> >
> > "Assenza, Chris" wrote:
> > >
> > > Hello, I'm HTML in a
> > > template
> > >
> > > Chris
> > >
> > > Christopher Assenza
> > > Phone:  412.201.6026
> > > Fax: 412.201.6060
> > > Email:  [EMAIL PROTECTED]
> > > ACCESSDATA
> > > Moving Your Business from Point A to Point e.SM
> > > http://www.accessdc.com/
> > >
> > > -Original Message-
> > > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 15, 2001 1:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: URGENT: PLEASE HELP
> > >
> > > In
> > > template:put name='abc' content='' tag
> > > can we put direct html code fragment
> > >
> > > Shelly



Re: URGENT: PLEASE HELP

2001-08-27 Thread Shelly Dhiman

By the way
what version of struts do you have? I have 1.0 version

Shelly

"Assenza, Chris" wrote:
> 
> Shelly,
> 
> I've cut and paste the template for one of our pages (minus a lot of extra
> puts). This does indeed work.
> 
> 
>  key="acctmaint.window.title" />
> HTML Text
> 
> 
> Make sure you aren't closing the opening put tag with a slash before the
> content
> (ie. DO NOT DO:  />html)
> (note the slash before ">html 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: URGENT: PLEASE HELP
> 
> Hi,
> 
> It does not work. It complains about ending the template:put tag
> 
> Shelly
> 
> "Assenza, Chris" wrote:
> >
> > Hello, I'm HTML in a
> > template
> >
> > Chris
> >
> > Christopher Assenza
> > Phone:  412.201.6026
> > Fax: 412.201.6060
> > Email:  [EMAIL PROTECTED]
> > ACCESSDATA
> > Moving Your Business from Point A to Point e.SM
> > http://www.accessdc.com/
> >
> > -Original Message-
> > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 15, 2001 1:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: URGENT: PLEASE HELP
> >
> > In
> > template:put name='abc' content='' tag
> > can we put direct html code fragment
> >
> > Shelly



Re: URGENT: PLEASE HELP

2001-08-27 Thread Shelly Dhiman

Hi Chris, 
Sorry to bother you but for me it doesn't work. Below is th e snippet
for my code


HELLO



Shelly

"Assenza, Chris" wrote:
> 
> Shelly,
> 
> I've cut and paste the template for one of our pages (minus a lot of extra
> puts). This does indeed work.
> 
> 
>  key="acctmaint.window.title" />
> HTML Text
> 
> 
> Make sure you aren't closing the opening put tag with a slash before the
> content
> (ie. DO NOT DO:  />html)
> (note the slash before ">html 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-----
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: URGENT: PLEASE HELP
> 
> Hi,
> 
> It does not work. It complains about ending the template:put tag
> 
> Shelly
> 
> "Assenza, Chris" wrote:
> >
> > Hello, I'm HTML in a
> > template
> >
> > Chris
> >
> > Christopher Assenza
> > Phone:  412.201.6026
> > Fax: 412.201.6060
> > Email:  [EMAIL PROTECTED]
> > ACCESSDATA
> > Moving Your Business from Point A to Point e.SM
> > http://www.accessdc.com/
> >
> > -Original Message-
> > From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 15, 2001 1:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: URGENT: PLEASE HELP
> >
> > In
> > template:put name='abc' content='' tag
> > can we put direct html code fragment
> >
> > Shelly



RE: URGENT: PLEASE HELP

2001-08-24 Thread Toni Charlot

maybe you're having problems with the  tag, try removing it to see if you
get the same complaint.

-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT: PLEASE HELP


Hi,

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
>
> Hello, I'm HTML in a
> template
>
> Chris
>
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
>
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
>
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
>
> Shelly






RE: URGENT: PLEASE HELP

2001-08-24 Thread Assenza, Chris

Ignore the word wrapping, sorry. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: URGENT: PLEASE HELP


Shelly,

I've cut and paste the template for one of our pages (minus a lot of extra
puts). This does indeed work. 



HTML Text


Make sure you aren't closing the opening put tag with a slash before the
content 
(ie. DO NOT DO: html)
(note the slash before ">htmlhttp://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT: PLEASE HELP


Hi, 

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
> 
> Hello, I'm HTML in a
> template
> 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
> 
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
> 
> Shelly



RE: URGENT: PLEASE HELP

2001-08-24 Thread Assenza, Chris

Shelly,

I've cut and paste the template for one of our pages (minus a lot of extra
puts). This does indeed work. 



HTML Text


Make sure you aren't closing the opening put tag with a slash before the
content 
(ie. DO NOT DO: html)
(note the slash before ">htmlhttp://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT: PLEASE HELP


Hi, 

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
> 
> Hello, I'm HTML in a
> template
> 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
> 
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
> 
> Shelly



Re: URGENT: PLEASE HELP

2001-08-24 Thread Shelly Dhiman

Hi, 

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
> 
> Hello, I'm HTML in a
> template
> 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
> 
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
> 
> Shelly



RE: URGENT: PLEASE HELP

2001-08-15 Thread Assenza, Chris

Hello, I'm HTML in a
template

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: URGENT: PLEASE HELP


In 
template:put name='abc' content='' tag 
can we put direct html code fragment 


Shelly



RE: URGENT - PLEASE HELP: DROPDOWN BOX

2001-06-05 Thread Joyce Tang
Title: RE: URGENT - PLEASE HELP: DROPDOWN BOX





 
Try this



     
       
    


-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 6/5/01 1:58 PM
Subject: URGENT - PLEASE HELP: DROPDOWN BOX


Hi,


In my form bean I have the following code:
    private void setHmTitles()
    {
        hmTitles.add( new LabelValueBean ("  ", 0) );
        hmTitles.add( new LabelValueBean ("Mr.", 1) );
        hmTitles.add( new LabelValueBean ("Mrs.", 2) );
    hmTitles.add( new LabelValueBean ("Ms.", 3) );
    hmTitles.add( new LabelValueBean ("Miss", 4) );
    hmTitles.add( new LabelValueBean ("Mr.and Mrs.", 5) );
    hmTitles.add( new LabelValueBean ("Dr.", 6) );
    }
where LabelValueBean is a name value pair class similar to the one
struts
has.


In my jsp I have the following code:
  
    
        
        
name="sp"
property="label" />
    



and the dropdown box displays all the values correctly except for the
first
one. 
Since the first one is " " (which is supposed to show the title as
blank) it
displays 0. 


What do I do to make it display a blank? I have tried   and "''"
which
didn't work either.


Can you please help me as I am approaching deadline soon.


Sharmila Pandith
Software Engineer
iXL Inc.


phone: 212-500-5180
AIM: spandith
Yahoo: spandith
MSN: spandith


This message is intended only for the use of the Addressee and may
contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the
intended
recipient, dissemination of this communication is prohibited. If you
have
received this communication in error, please erase all copies of the
message
and its attachments and notify us immediately.