Software Archive
Read-only legacy content
17061 Discussions

intel xdk - include snippets

Luca_P_
Beginner
415 Views

Hi,

I'm trying to include html snippets in two pages in a xdk projects, but not work:

<div w3-includee-html="snippet.html"></div>

how can I do to include it?

Luca

0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
415 Views

Hi Luca,

Did you add w3data.js and call the include function? This is the way to do it:

https://www.w3schools.com/w3css/w3data_includes.asp

An alternative way may be to use jquery .load()

http://api.jquery.com/load/

Regards

Diego

0 Kudos
Reply