CodeIgniter Forums
Menu loading function into div - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Menu loading function into div (/showthread.php?tid=29266)



Menu loading function into div - El Forum - 04-04-2010

[eluser]chik3n[/eluser]
Hi again,

I'm trying to do something like this:

I got 3 div's in view, menu, content and footer. In controller I got index() which is loading all 3 div in view but I want, after clicking in link from menu, to load some content from function in the same controller to content div, but I dont want to have all the code about footer and the menu in that specific funtion, any ideas how can i achieve that?


Menu loading function into div - El Forum - 04-05-2010

[eluser]physicsdave[/eluser]
I'd like to help but I'm not sure that I understand your question. Are you trying to load new information into only part of the page without the browser redirecting to the other controller function (and thus reloading the menu and footer)? If so - that's more of an Ajax question than a CodeIgniter question.


Menu loading function into div - El Forum - 04-05-2010

[eluser]Mischievous[/eluser]
Sounds like your wanting a AJAX call... and if not I would suggest using a template library