Welcome Guest, Not a member yet? Register   Sign In
Javascript integration in views
#1

[eluser]Raf31[/eluser]
I'm developping my first application with Code Igniter. Everything is straightforwawrd and intuitive for me except one thing: the integration of Javascript in the views. I explain a bit: most of the times, the javascript I use is related to the design of the site so my feeling is that it should be included in the views and more particularly between the <head> tags of the HTML header. However, my view files look like this:

<? $this->load->view('front/header); ?>

The HTML code which is specific to this page.

<? $this->load->view('front/footer); ?>

So if I add Javascript somewhere before or after the first line, it will not be in the HTML header. Do you have some "tricks" to do this properly? Thanks.


Messages In This Thread
Javascript integration in views - by El Forum - 05-23-2008, 01:54 AM
Javascript integration in views - by El Forum - 05-23-2008, 03:06 AM
Javascript integration in views - by El Forum - 05-23-2008, 03:10 AM
Javascript integration in views - by El Forum - 05-23-2008, 03:18 AM
Javascript integration in views - by El Forum - 05-23-2008, 03:42 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:04 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:11 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:17 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:24 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:25 AM
Javascript integration in views - by El Forum - 05-23-2008, 04:33 AM
Javascript integration in views - by El Forum - 05-23-2008, 11:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB