• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
prototype, Ajax.Updater

#1
[eluser]me_not_you[/eluser]
Hi,

I've juste started using CI, and for the moment i've realy liked it.

But today i run into some trouble with IE.

I would like to have a liste of objects you can click on and the page is updated.

So iv'e got my view

Code:
[removed][removed]
[removed][removed]
[removed]
    function startLoading() {
          Element.show('mainAreaLoading');
          Element.hide('mainAreaInternal');
    }
    
    function finishLoading() {
          Element.show('mainAreaInternal');
         setTimeout("Effect.toggle('mainAreaLoading');", 1000);
    }

    function loadContent(id) {
          startLoading();
          
          new Ajax.Updater('mainAreaInternal', '<?php echo(base_url()."index.php/manifestation/getone/"); ?>'+ id, {method: 'post', postBody:'content='+ id +''});
        

        finishLoading();
    }
[removed]

<!-- And the list-->
<div class="ldroite">&lt;?php
  foreach ($allmanifs as $allmanif):?&gt;
   <span style="cursor: pointer">
   &lt;?php
   echo($allmanif['nom_manif'].'<br />du '.$allmanif['dated_manif'].' au '.$allmanif['datef_manif'].'<br / >');?&gt;
</span>&lt;?php
endforeach;?&gt;
                    
</div>
<div>

The probleme seems to be with
Code:
new Ajax.Updater('mainAreaInternal', '&lt;?php echo(base_url()."index.php/manifestation/getone/"); ?&gt;'+ id, {method: 'post', postBody:'content='+ id +''});

the manifestation / getone containes

Code:
function getone($id){
        $this->load->model('manifMod');
        $data['manif'] = $this->manifMod->getone($id);
        foreach ($data as $manifs):
            foreach ($manifs as $manif):
                $idorganisateur=$manif['idorganisateur_manif'];
            endforeach;
        endforeach;
        $data['oraganisateur']=$this->getorganisateur($idorganisateur);

        $this->load->view('manif',$data);
    }

All this works with FireFox...but not with IE...


Hope someone can help me out...i've been tring all afternoon...

#2
[eluser]me_not_you[/eluser]
ok so it works when i dont call a controller...

if anyone could help me on this one...i would be realy grateful...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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