[eluser]diego.greyrobot[/eluser]
I love the way codeigniter handles URLs so that they are portable when deploying an app to a production server, however, that functionality does not translate easily to javascript unless the js code is on a php page.
How can a base_url variable (or any other for that matter) be passed into an external javascript file? That way i can take all of my javascript out of the head tags of my views (which are there purposefully in order to echo base_url where needed in the js).
Any ideas?