Welcome Guest, Not a member yet? Register   Sign In
CI & jQuery Linked dropdowns
#1

[eluser]edwin87[/eluser]
Hello CI,

I was trying to add a jQuery linked dropdown script.

See here

In the example i was able to do some changes.

But now add it to CI.

I think it's wrong with the function that call's a url. This URL has without CI the script name. Like this:
Quote:select.php

So i think in CI it would be something like this :
Quote:base_ur()/system/application/classname/function/value

But there is no action at all.


Code:
$('#building').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/building','#levels',{firstOption: 'Select a level'});
$('#levels').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/levels','#rooms',{firstOption: 'Select a room'});
$('#rooms').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/rooms','#segmenten',{firstOption: 'Select a rack segment', loadingText: 'Loading...'});

Can anyone help me with this?

Thnx


Messages In This Thread
CI & jQuery Linked dropdowns - by El Forum - 11-04-2008, 02:17 AM
CI & jQuery Linked dropdowns - by El Forum - 11-04-2008, 04:48 AM
CI & jQuery Linked dropdowns - by El Forum - 11-04-2008, 05:03 AM
CI & jQuery Linked dropdowns - by El Forum - 11-05-2008, 09:59 AM
CI & jQuery Linked dropdowns - by El Forum - 01-06-2009, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB