473,792 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8001
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**********@m ilzis.latnet.lv >,
kaaposc <NO************ *@gmail.comwrot e:
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.comwrot e 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.comw rote:
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.co mwrote:
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.c omwrote:
On Jun 18, 10:58 pm, Good Man <h...@letsgo.co mwrote:
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
7115
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 container page has finished loading completely with all its component frames or iframes (onload event is not useful because we have more than one onload, and container page onload is not
1
1605
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 my experience I find them clunky and messy to implement using javascript and prefer to keep the whole web page as a single page.
3
2423
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
2219
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 HTML file. It never needs to be reloaded and JS variables can be updated there as the visible screens progress. But...if I want to be a good internet samaritan and not use frames, what's the best way to replace that function?
9
1660
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
3624
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 I simulate IFRAME? Possibly without using Ajax. I passed all the day looking for scripts that can help me, but unsuccessfully. Thanks in advance for any suggestion,
4
1285
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 user can navigate around other frames without disrupting what is playing in the frame that contains the player. What am I supposed to use to get this functionality these days if frames are taboo/the old way of doing things?
14
7064
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. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
1
8721
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. How can I identify this particular frame/iframe in the frame collection??? I can only select frame in the framecollection by using
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10430
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.