Solved

jQuery, flexigrid

Posted on 2008-06-17
4
374 Views
Last Modified: 2012-06-22
Hello Expert,

Just a quick question on the way I am handing the Flexigrid data, I just have a thought to make the default flexigrid as a dynamic one, then we don't need two different IDs.

whether its a cookie list or list name from the <SELECT> we show in the same flexigrid, is this not possible?

as we are doing now for all the <SELECT> listnames...

<div id="defaultResults"><table id="listDisplay" style="display:none"></table></div>                        
<span id="dynamicResults"><table id="listDisplay1" style="display:none"></table></span>      

Please advice
Thanks
Sam
0
Comment
Question by:newbie27
  • 3
4 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21805834
>> same flexigrid, is this not possible?
Of course. I don't know why you chose two different <table>. I thought you had some "plan" for it. To be able to "repopulate" the same <table> you would need to wrap it in some container element like a div:
<div id="flexicontainer"><table id="listDisplay></table></div>

 and whenever you want to populate it, before you attempt to make the flexigrid ajax call you would need to obliterate the contents of flexigridcontainer as follows:
$("#flexicontainer").html('<table id="listDisplay" style='display:none;'></table>');
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 31468080
thanks
0
 
LVL 8

Author Comment

by:newbie27
ID: 21805979
Then I wont need

function checkAll(id )
{
      $( id +" > tbody > tr > td > div > input.chkRefNos").each(function(){
                this.checked = id;
            });
}

and

   ( listID=="#listDisplay") ? {display: '<input type="checkbox" name="chkAll" onclick="checkAll(&#39;#listDisplay&#39;)"/> All', width : 30} : {display: '<input type="checkbox" name="chkAll" onclick="checkAll(&#39;#listDisplay1&#39;)"/> All', width : 30},
                        

??

please advice
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23492649.html

i have moved all the function to the list.js file Hielo
0
 
LVL 8

Author Comment

by:newbie27
ID: 21807877
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 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

20 Experts available now in Live!

Get 1:1 Help Now