Welcome Guest, Not a member yet? Register   Sign In
Menu loading function into div
#1

[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?
#2

[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.
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB