Expert Opinion Required with Strong Logic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Expert Opinion Required with Strong Logic

Instead I rewrite code for each webpage, I want to stay on the same page which has my site info, nav, footer and header etc. What are the potentials, drawbacks or advantages if I load other pages (having no header, footer or nav) into an iframe element. ??

21st Jun 2017, 12:21 PM
ISHTIAQUE BIN IDREES
ISHTIAQUE BIN IDREES - avatar
5 Answers
+ 1
The advantage as you mentioned is it works smoother and neater, the user will feel comfortable. The drawbacks are so little you don't really have to worry about it. But you do need to be sure that the HTML documents are ready to be used. Otherwise it will just say "Page not found" in your iFrame
21st Jun 2017, 1:08 PM
Limitless
Limitless - avatar
+ 3
Many thanks, I thought if it does have an impact on SEO and page load using iframe.
21st Jun 2017, 1:20 PM
ISHTIAQUE BIN IDREES
ISHTIAQUE BIN IDREES - avatar
+ 3
https://youtu.be/zIzmDoF9_Oo I have made a desktop app using same method, loading forms into a main form. Have an eye to this demo video.
21st Jun 2017, 1:22 PM
ISHTIAQUE BIN IDREES
ISHTIAQUE BIN IDREES - avatar
+ 3
I suppose it just comes down to preference. Personally, I'm not much of an iFrame fan, but I do use it when I need to pull in info from our other office's intranet since I don't have direct access to their server. In your situation, I usually just use jQuery/PHP to swap out my pages while maintaining my head/footer without having to refresh them between pages. It's quick, pretty, and less annoying than iFrames.
21st Jun 2017, 1:31 PM
AgentSmith
+ 2
can you please share real example, coz I'm not getting enough.
21st Jun 2017, 1:34 PM
ISHTIAQUE BIN IDREES
ISHTIAQUE BIN IDREES - avatar