Welcome Guest, Not a member yet? Register   Sign In
Jquery Dropdown
#3

[eluser]pickupman[/eluser]
You can render the view, and save the output from the view using TRUE as the third parameter. What I have is a folder structure like /views/search/(regular views) and /views/search/jquery/(jquery views). I recently started using a template library that I can reuse blocks of views, and no longer need these extra ajax views. You could use this as well.
Code:
function subCats()
    {                        
        $cat = $this->input->post('Categories');
        
        $data['subcats'] = $this->search->getSubCats($cat);
            
        $output = '';        
        foreach($data['subcats'] as $subcat){
           $output .= '<option value="'.$options[$subcat-id].'">'.$subcat->category.'</option>';
        }
        echo $output;        

    }


Messages In This Thread
Jquery Dropdown - by El Forum - 04-28-2010, 11:52 AM
Jquery Dropdown - by El Forum - 04-29-2010, 11:03 AM
Jquery Dropdown - by El Forum - 04-29-2010, 12:03 PM
Jquery Dropdown - by El Forum - 04-30-2010, 09:07 AM
Jquery Dropdown - by El Forum - 04-30-2010, 11:03 AM
Jquery Dropdown - by El Forum - 04-30-2010, 12:32 PM
Jquery Dropdown - by El Forum - 04-30-2010, 01:35 PM
Jquery Dropdown - by El Forum - 04-30-2010, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB