Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with target frame issues, loading whole page....

    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.

  • #2
    Regular Coder
    Join Date
    May 2009
    Posts
    143
    Thanks
    14
    Thanked 1 Time in 1 Post
    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.

  • #3
    New Coder
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....

    EDIT:

    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.
    Last edited by talimore1; 10-21-2009 at 02:44 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •