could you help in creating checkboxes with condition.

R

rajbala.3399

Hi,
I created two forms. In the first frame i had Items with checkbox like
names of students etc. When ever i checked on any name It's display on
the other frame. Up to know it's fine. But when i deselcted any check
box it again display same name.
My requirement is when i deselected the checkbox that particular
student name is deleted from the list .
Any one please give suggestion for above problem.
your help will be appricited.
TankQ.

-Raju
 
R

Randy Webb

Jim Land said the following on 11/7/2006 1:26 AM:
Hi Raju,

Please tell us why you are using frames.

Ummm, because he wants to use frames?
And please show us the
Javascript you are using to display names.

Probably an onclick of the checkbox that adds the name to the other frame.

To add names is easy, removing them is simply a matter of splitting the
other frame's innerHTML on the name that is being unchecked and then
putting the resulting string back together.
 
R

Randy Webb

Randy Webb said the following on 11/7/2006 1:45 AM:
Jim Land said the following on 11/7/2006 1:26 AM:

Ummm, because he wants to use frames?


Probably an onclick of the checkbox that adds the name to the other frame.

To add names is easy, removing them is simply a matter of splitting the
other frame's innerHTML on the name that is being unchecked and then
putting the resulting string back together.

An even simpler way is to simply .replace the name with a "" blank space.
 
R

rajbala.3399

Jim said:
Hi Raju,

Please tell us why you are using frames. And please show us the
Javascript you are using to display names.

TankQ for reply,

Iam using frames bcoz i want to dislay my result
in another frame.; Iam retriving a variable from database and
displaying that variable in another frame.
Therfore It's compulsary to display the name in
the another frame.
-raju
 
R

rajbala.3399

Randy said:
Randy Webb said the following on 11/7/2006 1:45 AM:

An even simpler way is to simply .replace the name with a "" blank space.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

you suggest me replace the name as blank ! How it possible. When i
clicked on ckeckbox i am getting the name . If i put it as blank i
din't get the name.

My problem is while i deselected the box i am again the same copy of
name. I want when deselect that part it will be deleted from the table.
 
R

rajbala.3399

Jim said:
Hi Raju,

Please tell us why you are using frames. And please show us the
Javascript you are using to display names.

Hi,
I am still facing the same problem. Could you help me please. I
want to tell up what i had done ...
I created two forms. In the first frame i had Items with checkbox
like names of students etc. When ever i checked on any name It's
display on the other frame. Up to know it's fine. But when i deselcted
any check box it again display same name. My requirement is when i
deselected the checkbox that particular student name is deleted from
the list . Any one please give suggestion for above problem.
Iam using frames bcoz i want to dislay my result in another
frame.; Iam retriving a variable from database and displaying that
variable in another frame. Therfore It's compulsary to display the name
in the another frame.
I need help..
Any help from you will be appricited.

-Raju
TankQ.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top