BleepingComputer.com: iFrame and Content management...

Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, 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.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

iFrame and Content management...

#1 User is offline   Super Panda 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 269
  • Joined: 23-April 08
  • Gender:Male
  • Location:Leicester

Posted 10 June 2009 - 01:54 PM

Hello!

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
...

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,522
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 10 June 2009 - 07:42 PM

Did you set the target for the link? Something like <href="random.html" target="mainframe">
This might be helpful.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   JJ2K 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 162
  • Joined: 23-January 09

Posted 18 June 2009 - 12:42 PM

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.

#4 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,522
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 18 June 2009 - 02:41 PM

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. :thumbsup:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#5 User is offline   JJ2K 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 162
  • Joined: 23-January 09

Posted 18 June 2009 - 03:14 PM

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?

#6 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,522
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 18 June 2009 - 03:41 PM

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. :thumbsup:

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.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users