Writing an entire html document using jquery and not on the body of the page?

I am a user interface user currently working in a web application where most of the people I work with are third-party developers. I currently disagree with them regarding whether to do this above.

This application uses quite a lot of JavaScript and will not even work without it. In this case, one of the developers I work with claims that pages can and MUST be completely built using JavaScript or jquery. That made me completely angry. We are talking about div tags, lists, background images and text here.

I am trying to explain to him that this is not at all what needs to be done, and from the point of view of best practice: content (html) should be separated from presentation (css) and behavior (script, etc.).

I know that you can write html in jquery, although I did not do this, but I am mistaken in believing that this is not the way to do it. Is it even possible to write ALL code using jquery?

I would like to hear any thoughts anyway, as I will discuss this with him tomorrow tomorrow.

+3
source share
10 answers

If you had jQuery content separated from jQuery behavior, this might be more reasonable.

, ? ? " " (DRY), PHP, JSP, - , . HTML .

, , .

, ; Google Docs Google Mail, . , ( !), - , , , . -, , , , , , .

+3

: , ( javascript)

: . javascript, , , javascript, . ( , javascript)

+2
+1

jQuery , . .

(http://en.wikipedia.org/wiki/Progressive_enhancement), . ( Javascript, , ).

SEO ( wikipedia, ;-)). , Javascript , .

+1

, .

, , JSON HTML- JavaScript. < 1 . , .

, HTML.

0

, DOM JS/jQuery, JS DOM, ( IE). DOM JS

0

, , . / , jquery 3-5 . , . .

.

0

2 :

1. , jquery,
2. jquery

javascript - .......

0

content (html) (css) (script ..).

. "", . -, , : (.. ). , JavaScript. , "" , , - -.

( script, DOM. jQuery attr, text jQuery 1.4 $('<div>', {attrname: value}). HTML , HTML .)

, , : . , , , JS.

0

IMHO, html jquery javascript, , .

javascript, 25 ,

Just because you CAN do something doesn’t mean you should!

0
source

Source: https://habr.com/ru/post/1744394/


All Articles