Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter + ExtJS 2.2 ? Tutorial?
#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 = "<?= $ext_id; ?>;"
    .
    .
    .
    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.


Messages In This Thread
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-12-2009, 07:18 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-12-2009, 01:26 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-12-2009, 01:39 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-12-2009, 03:01 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-12-2009, 04:47 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 03:50 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 07:33 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 09:22 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 09:24 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 09:37 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 09:41 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 02-18-2009, 05:48 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 04-23-2009, 03:37 PM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 07-28-2009, 12:30 AM
CodeIgniter + ExtJS 2.2 ? Tutorial? - by El Forum - 09-05-2009, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB