Welcome Guest, Not a member yet? Register   Sign In
Template and dynamic classes
#2

[eluser]TheFuzzy0ne[/eluser]
By changing the class dynamically, do you mean on a new page request, or using Javascript?

Are you using jQuery or another Javascript library?

You can check to see if the request is an AJAX call, and send only your main template as required (without header, footer and side bar). CodeIgniter provides you with $this->input->is_ajax_request(), to check whether or not the incoming request is an AJAX request. Using that, you should be able to respond accordingly.

It's difficult to advise you with the small amount of code you posted. You've explained what you want to do, but it's difficult to understand the context in which you want to do it. It would help a lot more if we could see what the actual menu entries were, and as well as your view, and controller code.


Messages In This Thread
Template and dynamic classes - by El Forum - 03-26-2013, 04:30 PM
Template and dynamic classes - by El Forum - 03-27-2013, 04:41 AM
Template and dynamic classes - by El Forum - 03-27-2013, 05:23 AM
Template and dynamic classes - by El Forum - 03-27-2013, 05:27 AM
Template and dynamic classes - by El Forum - 03-28-2013, 09:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB