• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flexReload Not reloading

This is for the Flexigrid system

Hi there first must say very nice indeed. My Question or should say problem is that I created a button to hide any line item that has been disable basic 0 disable 1 enabe this value is in Database is_active I use firebug to view the errors.

So everything seems to work, given the problem which is that the data stay the same all disabled users are still there after clicking the disable button.

if (com=='Hide Disabled') {
        var items = $('.trSelected',grid);
        var itemlist = '';
            itemlist+= items[i].id.substr(3)+",";
           type: "POST",
           url: "&lt;?=site_url("/ajax/index/hide");?&gt;",
           data: "items=" + itemlist,
           success: function(data){

This code send the value hide to trigger the model to hide the uses

$hide = $this->uri->segment(3);
// Build contents query
if($hide=='hide') {
} else {

The Problem seems to be that it's reloading with hide value, then reloading again back to the original value I can see two post in firebug the hide post then a regular post
url: "&lt;?=site_url("/ajax/index/hide");?&gt;", // first post which it should be
url: "&lt;?=site_url("/ajax/index/");?&gt;", // then back to this one which should not happen
any ideas would help greatly thanks


Ok I got the answer the FlexReload Just reloads teh grid from the original Load The way to do it is to use the following

success: function(data){

Instead of the reload solo
Hopes this helps anyone else Thanks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.