View Full Version : Need help with target frame issues, loading whole page....
10-20-2009, 02:57 PM
Hello everyone, I was finally done coding my site and then I changed one thing to get it to work better but it just messed everything up. The site is www.whatwereplaying.com and the problem is that I have a Latest News section in the upper left showing the latest 7 news articles. When I click one of them it would load them into my iFrame but it would loose the CSS sheet when it loaded. So I fixed this by taking out the target link code and switching it to a base target in the header of my index. The style sheet now loads when you click on one of the news articles but it reloads the entire page instead of loading just the news.... Please help, if you need me to post any kind of code I would be more than happy to. Thanks in advance and feel free to ask me any questions or if you need anything from me I will be more then happy to get it for you. My head hurts trying to fix this.... Thanks again.
10-20-2009, 04:18 PM
what is that one thing you changed?
Couldn't you just ctrl-z (undo) it?
since you use php, you should consider using ajax or xajax instead of Iframes. I feel it is much lighter for browsers.
10-21-2009, 01:41 AM
I cant Cntrl Z it because I can either have it load in the bar without the CSS sheet or load like it is with the CSS sheet but loading the whole page which is my problem....
Let me try to be more specific in my response. I had the code working so that it only loads the news into the iFrame but when I do that it doesnt carry the CSS with it and it formats horrible. I finally fixed it by setting the main link location on the index.php to the iFrame and it does carry the CSS with it when it loads. The only problem is that it reloads the entire website in the iFrame instead of just the news.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.