Welcome Guest, Not a member yet? Register   Sign In
Help: Calling a Javascript function from within a view
#1

[eluser]Unknown[/eluser]
I'm very new to CI and JS. I'm trying to call a Javascript function from within a view but I can't get this to work.

Code:
<?php foreach ($address as $address_item): ?>

    <scrpt>codeAddress("&lt;?php echo $address_item['Address2'] ?&gt;");</scrpt>
    
&lt;?php endforeach ?&gt;

The JS function is defined inthe header template. Any help would be much appreciated.


Messages In This Thread
Help: Calling a Javascript function from within a view - by El Forum - 05-29-2012, 06:19 AM
Help: Calling a Javascript function from within a view - by El Forum - 05-29-2012, 12:14 PM
Help: Calling a Javascript function from within a view - by El Forum - 05-30-2012, 01:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB