Welcome Guest, Not a member yet? Register   Sign In
calling base_url() or site_url() in the external js file
#6

[eluser]boltsabre[/eluser]
Quote:$data['js_vars'] = 'var base_url = "<?php echo base_url(); ?>";';

Shouldn't that be without the "var" to make it global in JS? You won't be able to access it in functions unless you pass it manually otherwise???


Messages In This Thread
calling base_url() or site_url() in the external js file - by El Forum - 07-03-2013, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB