Welcome Guest, Not a member yet? Register   Sign In
Determine if JS is enabled in the controller
#1

[eluser]Unknown[/eluser]
I am using a template system that autoloads my headers and footer.

Code:
public function index()
{
$this->template->display('about/about_view');
}

This works fine but I am loading my resume view in a fancybox iframe and I need them to not include the headers and footers.

Currrent Resume view
Code:
public function resume()
{
$this->template->display('about/resume_view');
}

Now I know I could just load a different view with no script tags including the headers and footers outside of my template, but is there any way to have the controller be notified if JavaScript is enabled?

Here is an example of what I mean...
Code:
public function resume()
{
        //If JS isn't enabled do this line
$this->template->display('about/resume_view');
        //else if it is enabled do this...
        $this->load->view('about/resume_view_has_js');
}





Theme © iAndrew 2016 - Forum software by © MyBB