iframe vs Ajax LOAD

So what is better for performance of loading table data AJAX load or using a iframe and load the data in a iframe
stargateatlantisAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Chris StanyonConnect With a Mentor Commented:
Haven't run tests but I would guess AJAX. With ajax, you send a bit of data and only pull back the html or data that you want. The content of an iFrame has to be a fully valid HTML document.

I'd go with AJAX - it's the modern way to do things!
0
 
leakim971Connect With a Mentor PluritechnicianCommented:
+1 for Ajax
I don' see any reason to do that with an iFrame
With the iFrame you're going to have DOM manipulation where you just need to receive data with Ajax.
0
 
Sar1973Connect With a Mentor Commented:
The iFrame requires often to use an event handler and listener, but works good when is well configured.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.