[eluser]treadsoftley[/eluser]
Has anyone else come across this?
I have found that when I am loading views
as a string for IE 6 to see it I also have to load the identified element as a string then it all works.
Safari, firefox seem OK with it just being static but not ie6.
For example:
Code:
//HEAD javascript
$(document).ready(function(){
loadProjects(1);
$("#pj2").click(function(){
loadProjects(2);
});
//JS function below loads a view as a string e.g.
//function loadProjects($id){ print $this->load->view('projects',$data,TRUE); }
function loadProjects(id)
{
$("#projects").load("loadProjects/"+id);
}
});
Somewhere on the page I'd normally just have this:
Code:
<div id="projects></div>
But for ie6 I have to fly in the div as a string too:
Code:
//in controller
$data['div'] = $this->load->view('div','',TRUE);
//and then in the view 'div.php'
<div id="projects></div>
//in the 'master' view
<?=$div?>
Weird???!! Have you noticed this .... or what am I doing wrong to have to employ this workaround?
Anyway, just thought I'd mention it just in case anybody else is stuck in a similar universe!