Welcome Guest, Not a member yet? Register   Sign In
Adding JavaScript to head in view
#2

[eluser]jedd[/eluser]
Hi Bazze and welcome to the CI forums.

What does scriptStart() actually do? Could you show the rendered view of the partial you've shown here?

It looks like it just echos the string '< script type="text/javascript">' - which doesn't seem to be much of a saving.

You could rattle up a helper function called script_start() that did the same, if you prefer to have that kind of code in your view.


Messages In This Thread
Adding JavaScript to head in view - by El Forum - 11-24-2009, 08:38 AM
Adding JavaScript to head in view - by El Forum - 11-24-2009, 10:16 AM
Adding JavaScript to head in view - by El Forum - 11-24-2009, 11:25 AM
Adding JavaScript to head in view - by El Forum - 11-24-2009, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB