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

[eluser]GrahamDj28[/eluser]
Why don't you use navite JS to get the base url of your site?

window_DOT_location_DOT_host will give you the base url of your site

Code:
var base_url = 'http://'+window_DOT_location_DOT_host

replace _DOT_ with a .


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



Theme © iAndrew 2016 - Forum software by © MyBB