Welcome Guest, Not a member yet? Register   Sign In
Javascript !!
#2

[eluser]ciGR[/eluser]
You can implement the js code in your view into

Code:
<scipt type='text/javascript'></scipt>
tags
Or you can write your code into a seperate js file, like mycode.js and create for example the below file stracture:

Code:
|-- assets
    |-- js
        |--mycode.js
|-- system
|-- index.php

and call it in your view with
Code:
<scipt type = 'text/javascript' src = '&lt;?php echo base_url(); ?&gt;/assets/js/mycode.js'></scipt>


P.S. I write above scipt instead script because for security reasons, forum remove the script tags.


Messages In This Thread
Javascript !! - by El Forum - 03-08-2010, 12:27 PM
Javascript !! - by El Forum - 03-08-2010, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB