473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

frames, iframes VS. divs + AJAX

Hello!

This is not question, I was just wondering, why people continue using
frames and iframes when we have handy AJAX approach to fill needed divs
with content. Is it because of some user's paranoia about javascript?
But if they make pages without javascript, they would not need to
bother, how to access other frame's content, would they? :)

kaaposc
Jun 18 '07 #1
8 7957
kaaposc wrote:
Hello!

This is not question, I was just wondering, why people continue using
frames and iframes when we have handy AJAX approach to fill needed divs
with content. Is it because of some user's paranoia about javascript?
But if they make pages without javascript, they would not need to
bother, how to access other frame's content, would they? :)
I imagine because there are still browsers that exist that don't
properly support XMLHttpRequests. Bear in mind IFRAMEs were being used
long before XHRs.

Not to mention, new information never propagates as fast as we would like.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 18 '07 #2
In article <f5**********@milzis.latnet.lv>,
kaaposc <NO*************@gmail.comwrote:
Hello!

This is not question, I was just wondering, why people continue using
frames and iframes when we have handy AJAX approach to fill needed divs
with content. Is it because of some user's paranoia about javascript?
But if they make pages without javascript, they would not need to
bother, how to access other frame's content, would they? :)
Having loaded the page, I then reload contents of iframes based on some
user selections. Can I do this with AJAX any easier than I do it now?
Jun 18 '07 #3
We have the web searches indexing problem too. If the page open in a
iframe or frame, the search bots open it and index it. On XHR nothing
happens. The bot pass throw the page and don't fire the javascript
functions, so the content will never indexed. I had to rewrite an
entire website because of this. So XHR its good for web applications,
that don't need indexing.

Jun 18 '07 #4
kaaposc <NO*************@gmail.comwrote in news:f560m6$8b7$4
@milzis.latnet.lv:
Hello!

This is not question, I was just wondering, why people continue using
frames and iframes when we have handy AJAX approach to fill needed divs
with content.
Not sure, but FRAME, FRAMESET and NOFRAMES are dropped from the HTML 5
spec:

http://dev.w3.org/cvsweb/~checkout~/.../Overview.html

Jun 18 '07 #5
Good Man wrote:
http://dev.w3.org/cvsweb/~checkout~/.../Overview.html
hmm.. interesting facts. and - woo! - they dropped "target" attribute
from anchor tag :)

--
-- kaaposc
"The Knowledge is Power"
Jun 19 '07 #6
dd
On Jun 19, 9:02 am, kaaposc <NO-kaaposc-S...@gmail.comwrote:
hmm.. interesting facts. and - woo! - they dropped "target" attribute
from anchor tag :)
Actually it's the other way round. They didn't drop
it, they UNdeprecated it.

Jun 19 '07 #7
dd
On Jun 18, 10:58 pm, Good Man <h...@letsgo.comwrote:
Not sure, but FRAME, FRAMESET and NOFRAMES are dropped from the HTML 5
spec:

http://dev.w3.org/cvsweb/~checkout~/...ences/Overview....
They maybe dropped from the currently proposed but
not yet final spec, but it's not going to affect
browsers significantly. It'll be a good while
before we get browsers that are HTML5 compliant
and just because they support the new tags that
HTML5 brings, it doesn't mean they won't still
support the old ones. Remember, browsers want to
show you as much of the web as they can (except
for Safari of course, that goes without saying),
so they'll continue to support old HTML.

Jun 19 '07 #8
On Jun 19, 3:51 am, dd <dd4...@gmail.comwrote:
On Jun 18, 10:58 pm, Good Man <h...@letsgo.comwrote:
Not sure, but FRAME, FRAMESET and NOFRAMES are dropped from the HTML 5
spec:
http://dev.w3.org/cvsweb/~checkout~/...ences/Overview....

They maybe dropped from the currently proposed but
not yet final spec, but it's not going to affect
browsers significantly. It'll be a good while
before we get browsers that are HTML5 compliant
and just because they support the new tags that
HTML5 brings, it doesn't mean they won't still
support the old ones. Remember, browsers want to
show you as much of the web as they can (except
for Safari of course, that goes without saying),
so they'll continue to support old HTML.
Yes, IFrames are deprecated and the target attribute has never been
part of the standard HTML DTD (only the frameset version.) For this
and other reasons, frames of any sort are a bad idea at this point.
There was a time when the only good IFrame was a hidden one, but AJAX
has rendered those needless as well.

As for indexing AJAX sites, that isn't a problem unless the site is
poorly designed. A site should be designed from the start without
scripting of any kind. That is the version that the search engines
(and users without JS) will see. AJAX and other JS tricks can then be
layered on to enhance the user experience, but should never replace or
break the static content.

Jun 20 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: adnanx82 | last post by:
Hi, I was wondering if anyone knew how to perform the following 2 tasks in Javascript: 1) distinguish between frames and iframes (during an onload event for example) 2) figure out whether a...
1
by: Owen | last post by:
I believe that different browsers treat frames/iframes differently, and this is one of the reasons to avoid using them in websites/applications. Are there any other reasons to avoid them? In...
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
11
by: Kent Feiler | last post by:
One thing I like about frames is that they're a good place to stow Javascript. Javascript that I'd like to be around while the visible content of the screen changes goes in the frame declaration...
9
by: balakrishnan.dinesh | last post by:
hi frnds, Is Ajax can only used as xmlhttp or else it can use for anyother purpose, If any sample example code for that, plz reply to me soon. Thanks Dinesh B...
14
by: eddy.pagotto | last post by:
Hi, I'm trying to display external link into a DIV (http:// www.google.com/, for example). I don't want to use IFRAME, because I already tried it and I'm not satisfied about the results. How can...
4
by: Ronald S. Cook | last post by:
I have an old ASP.NET app that I need to rewrite. It uses frames to have an embedded Windows Media Player playing content that is controlled from other frames on the page. And, of course, the...
14
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
1
by: michelqa | last post by:
Hi, I'm doing a kind of control picker like the one in spy++ but for html document. When the control picker is over an IFRAME, the mshtml function ElementFromPoint return an IFrame element....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.