Im having an unfathomable problem with the html base href attribute and im completely stumped, please help!
My site has an included<?PHP included top section on every page, within it is an onload function called loadFunctions() which is held in an external functions.js file. loadFunctions() looks a bit like this
Code:
function loadFunctions(){
if(typeof(loadResults)=='function'){loadResults();}
if(typeof(loadMap)=='function'){ loadMap();}
}
The problem im having is that now ive set my base href attribute to <base href="www.example.com/" /> my loadFunctions function looks to index.php and not the current page for the functions it triggers.
I found a way around this by changing my base href to <a href="www.example.com/page.php" / > but that created another problem. Now, any pages which contain iframes load twice and any $_GET vars in my url string are wiped after the first load and before the iframe is loaded.
does anybody know of the correct way to use base href, or can somebody point me in the direction of a good tutorial explaining it as ive looked for a couple of days now and can only find limited and repeated info on the tag.
thanks for reading
|