Welcome Guest ( Log In | Click here to Register a free account now! )
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.![]() ![]() |
Jun 10 2009, 01:54 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 139 Joined: 23-April 08 From: Leicester Member No.: 204,918 |
I am again working on a brand new project! On my website, to help save loading time I have inserted a iframe into it, the iFrame has the name of "mainframe" The iFrame is coded into my main content box which is in the middle of my website, I have a expandable box on the right of my website, and sadly when a user clicks a news article it opens in a new window What I want is the news article to open in the iFrame "mainframe" The content management i am using is Cutenews If theres another one you recommend which is easier, more efficient with iFrames please advise me Thanks Jake -------------------- Much Appreciated Jake |
|
|
|
Jun 10 2009, 07:42 PM
Post
#2
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,900 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
Did you set the target for the link? Something like <href="random.html" target="mainframe">
This might be helpful. -------------------- |
|
|
|
Jun 18 2009, 12:42 PM
Post
#3
|
|
|
Member ![]() ![]() Group: Members Posts: 134 Joined: 23-January 09 Member No.: 286,225 |
I wouldn't bother with Iframes personally..
For navigation around pages i'd just have normal links which open in the same window and if I wanted to load some things without page reload say comment pages then i'd use AJAX All your pages would usually have a common header and footer and sidebars anyway so it wouldn't be reloading these. |
|
|
|
Jun 18 2009, 02:41 PM
Post
#4
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,900 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
QUOTE I wouldn't bother with Iframes personally.. Of course, that wasn't the question, was it? I wouldn't bother answering posts in which I had nothing to add....personally. -------------------- |
|
|
|
Jun 18 2009, 03:14 PM
Post
#5
|
|
|
Member ![]() ![]() Group: Members Posts: 134 Joined: 23-January 09 Member No.: 286,225 |
Wouldn't it be better to push someone away from using something which you know is a whole heap of crap (iFrames) rather than give them guidence on how to use them?
|
|
|
|
Jun 18 2009, 03:41 PM
Post
#6
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,900 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
Not unless you are actually taking the time to explain why. Merely stating "I wouldn't bother with IFrames" wouldn't compell me to change my mind at all, especially since there are completely valid uses for IFrames, the first reason being that AJAX is hard for beginners to get their heads around. Second reason being that IFrames can make requests to other domains, whereas AJAX can only call the domain from which the script was loaded.
See? Now at least the user (and anybody else that happens to search out this thread) has information on which they can base a decision. QUOTE using something which you know is a whole heap of crap Just because you have an opinion on something does not make it right Explain your opinion.
-------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 8th November 2009 - 07:18 AM |