Visualneo web structure - Forum

Forum Navigation
You need to log in to create posts and topics.

Visualneo web structure

 

Buongiorno
vorrei sapere come è strutturato Visuaneo web
Esempio:
A cosa corrispondono le pagine che aggiungiamo in HTML ?
A cosa corrisponde la home page  in HTML?
Me lo chiedo anche perché ho fatto una prova
inserendo in una pagina 3 ("div") e un pulsante di comando nel quale ho inserito questo codice:

BeginJS
var element = document.getElementsByTagName("div")[0];
element.style. backgroundColor="#CDCDB4";

var elemento1 = document.getElementsByTagName("div")[1];
element1.style. backgroundColor="#CDCDB4";

var elemento2 = document.getElementsByTagName("div")[2];
element2.style. backgroundColor="#CDCDB4";

FineJS

Lo sfondo della pagina e solo uno ("div") hanno cambiato colore

Grazie

@llazzari even translating your question I can not understand it completely.
VisualNEO Web apps are SPAs (Single Page Applications). Pages are created dinamicaly and all of them are stored in a single index.html file.
If you waht to include your own <div> tags please assign them an ID  ( <div id="mydiv1"> )and use this code instead:

BeginJS
var element = document.getElementsById("mydiv1");
element.style. backgroundColor="#CDCDB4";

var element = document.getElementsById("mydiv2");
element.style. backgroundColor="#CDCDB4";

var element = document.getElementsById("mydiv3");
element.style. backgroundColor="#CDCDB4";
EndJS

Regards.

llazzari has reacted to this post.
llazzari