Welcome Guest, Not a member yet? Register   Sign In
Need help passing a variable to an external javascript file embedded in a view
#3

[eluser]byde[/eluser]
Actually i think you will have cache problems with JS files.
If the JS file is static and the only dinamic part are variable you can start them at the view

Code:
[removed]
var foo = <?php echo $foo; ?>;
[removed]
[removed][removed]

the order can be different depending on what you need to do


Messages In This Thread
Need help passing a variable to an external javascript file embedded in a view - by El Forum - 07-29-2011, 09:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB