Solved

how to avoid ticking the hidden checkboxes

Posted on 2008-06-17
4
232 Views
Last Modified: 2012-05-05
Hello Experts,
I am having 2 Flexigrid plugins on the page, when I show the second I am hiding the first.
The problem is when I click on checkAll function, every record available in both these grids are been getting posted.
Please can I not check in the attached function if they are hidden?  If so how? please help
Regards
S
function checkAll(chkd)

{

$(".chkRefNos").each(function(){

                this.checked = chkd;

            });

}

Open in new window

0
Comment
Question by:newbie27
  • 2
4 Comments
 
LVL 15

Assisted Solution

by:dosth
dosth earned 100 total points
ID: 21804236
can you check for visbility

var divs = document.getElementsByTagName('div');//get
all //divs in page
for(i=0;i<divs.length;i++){//loop through them
if(divs[i].id.match(/see\d/)){//if they are 'see' divs
divs[i].style.visibility=visi;// show/hide
}
0
 
LVL 82

Accepted Solution

by:
hielo earned 400 total points
ID: 21807752
You need change your current implementation so that you have only ONE flexigrid table. You do not need to have two. Once you start using just one table, checkAll will apply to the ONLY existing table. No need to worry about determining if you are referencing the visible or the hidden table.
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 31467980
thanks hielo
0
 
LVL 15

Expert Comment

by:dosth
ID: 21810379
thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now