Welcome Guest, Not a member yet? Register   Sign In
Ajax - relative URLs and links?
#3

[eluser]Berserk[/eluser]
or you can add an js variable in view :

<code>
[removed]
var BASE_URL = '&lt;?=$base_url?&gt;';
[removed]
</code>

then use it in your js function:
<code>
BASE_URL+'ajax_controller'
</code>


Messages In This Thread
Ajax - relative URLs and links? - by El Forum - 07-29-2009, 07:19 AM
Ajax - relative URLs and links? - by El Forum - 07-29-2009, 08:03 AM
Ajax - relative URLs and links? - by El Forum - 08-29-2009, 03:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB