Solved

how to avoid ticking the hidden checkboxes

Posted on 2008-06-17
4
236 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help editing script 3 80
Weighted Randomizing 6 30
Load data upon clicking a button 8 35
Reg Exp to extract Url from string asp 12 16
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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