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

You can implement the js code in your view into

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

|-- assets
    |-- js
|-- system
|-- index.php

and call it in your view with
<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