CodeIgniter + ExtJS 2.2 ? Tutorial?

#11
[eluser]Mirage[/eluser]
I assert that you are using firebug to debug the request <-> response cycle. I'd make sure your column model and data store a properly configured.

Cheers,
Juergen

#12
[eluser]Relexx[/eluser]
Code:
$this->load->view('main-grid');

I don't think this is required in the js_listboards in the Extjs controller. This will confuse the data that the reader is expecting.

#13
[eluser]a&w[/eluser]
I would try adding load and loadexception listeners to your store to see if the data loaded or not.

#14
[eluser]Fielder[/eluser]
Mirage, do you know how to pass a parameter into the extjs js script from the CI controller?

For instance, I'm loading a grid using
Code:
var dataProxy = new Ext.data.HttpProxy({
        url: '../../index.php/reports/listMultistores/' + conid + '/',
        method: 'POST'
    });

but I need to be able to specify the 3rd segment of the URI to run a specific database query.

Any ideas?

I was putting
Code:
Ext.onReady(function() {

    var conid = "&lt;?= $ext_id; ?&gt;;"
    .
    .
    .
    var dataProxy = new Ext.data.HttpProxy({
        url: '../../index.php/reports/listMultistores/' + conid + '/',
        method: 'POST'
    .
    .
    .
    });
in my js file but it's not interpreting the $ext_id param.

#15
[eluser]oldroy[/eluser]
Hello,
Watch your post in firebug to see why your ext_id var isn't working. It's not clear what you are trying to do. If you are trying to get your data proxy to refresh a grid or other view, it will only use what php has given you on your original page load because you aren't passing a new value in until whole page refresh.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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