herghost Posted March 7, 2010 Share Posted March 7, 2010 Hi all, I am having some problems with a tiny piece of code in .js // Images Directory imagesDir = "/wysiwyg/icons/"; On my wamp server, this link points to localhost/wysiwyg/icons/ - however it should appear like this localhost/mydirectory/subdirectory/wysiwyg/icons/ I know I could just type this in, however this script is going to be made available to different people on different domains. For the php in my scripts I have set a variable called $baseurl, which will be set on install. Is there anyway of parsing this value into the .js script? Or creating something similar? Thanks Link to comment https://forums.phpfreaks.com/topic/194385-directory-location-help/ Share on other sites More sharing options...
Psycho Posted March 7, 2010 Share Posted March 7, 2010 // Images Directory imagesDir = "<?php echo $baseurl; ?>/wysiwyg/icons/"; Link to comment https://forums.phpfreaks.com/topic/194385-directory-location-help/#findComment-1022621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.