Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the new frames?

Tags:

html

It seems like I'm a bit outdated on website creation.

Some years ago I learned to create simple websites with frames.

Yet this solution is discouraged by w3school.com and frames are no longer supported in future HTML versions.

So what are the simple replacements?

  • iFrames also seem to be discouraged by most developers
  • PHP seems to provide a solution? what is a simple way in php to replace frames?
  • if I'm not using php (actually I need to use JavaEE in one project), how can I create frame-like websites?

Short: How to create a good-looking (frame-like) website nowadays?

like image 286
arket Avatar asked Feb 27 '12 14:02

arket


People also ask

What are the new glasses for 2022?

The 2022 shape of the year is anything geometric. From clear-cut hexagons to rigid squares, hard lines and exciting shapes are all the rage. Thick-rimmed geometric glasses frames are among the key eyeglasses trends because they fit practically any facial shape, making it a highly inclusive fashion trend.

What is the latest technology in eyeglasses?

The Technology: Electronic Focusing Lenses The switch triggers an electrical current that can transform a distance lens into a near, reading prescription.


1 Answers

Generally speaking:

Visually

CSS. There are numerous techniques for laying content out (depending on the precise effect you want, Holy Grail is a common desire).

The overflow properties handle scrolling sub-sections of pages, although designers who think that having a menu using up screen space all the time is a good idea are usually wrong.

Avoiding duplication of metacontent

(i.e. putting things like basic structure, navigation menus, etc on every page without copy/pasting them)

A template system (or an include system) that either runs server side (most common) or at build time (which can support HTTP servers which only allow static files).

The language this is implemented in is irrelevant, PHP is as common as muck, Java is an option, I tend towards Perl (and more specifically: Template Toolkit), there are many others. JavaScript is becoming increasingly popular for this type of job, with tools such as assemble becoming available. You can go all the way with a static site generator.

Use a search engine to find popular template languages or include systems for your programming language of choice.

Loading new content without leaving the page

JavaScript, usually with the XMLHttpRequest object (the technique being known as Ajax), and (if you are doing serious content changes) used in combination with the History API (so bookmarking and linking still works). Github are a good example of this. There are various frameworks such as React and Angular which try to make things easier. Note limited browser support and all the other things that can cause JS to file makes using good design principles essential. One approach to making these things robust is to write Isomorphic JS.

like image 128
Quentin Avatar answered Sep 27 '22 22:09

Quentin