Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
base ref page loads twice or functions from index and not current page
Old 02-08-2010, 08:21 AM base ref page loads twice or functions from index and not current page
hiptobesquare's Avatar
Extreme Talker

Posts: 186
Location: London UK
Trades: 0
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
hiptobesquare is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to base ref page loads twice or functions from index and not current page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26372 seconds with 12 queries