Changing base uri for relative paths
Posted: Tue Feb 17, 2009 8:35 am
Hello,
Sorry for my newbie question, but I don't know how to do this.
I need the relative paths of certain content to point to http://server2/
For example, if I have this should be relative on http://server2 instead of http://server1 (my actual url is http://server1)
I want to do this because before changing the source of an iframe I am processing the file and then printing the content inside...but fails when it tries to include other scripts because of the relative paths trying to load from server1..
Is this possible? Thanks!
Sorry for my newbie question, but I don't know how to do this.
I need the relative paths of certain content to point to http://server2/
For example, if I have
Code: Select all
<script type="text/javascript" src="../test.js"></script>I want to do this because before changing the source of an iframe I am processing the file and then printing the content inside...but fails when it tries to include other scripts because of the relative paths trying to load from server1..
Is this possible? Thanks!