While checking the database i noticed that the database now works through the home page, but if you were to scan a QR code you wouldn’t go to the home page. So i had to change that.
Boris said that i could put a simple line of code in the documentReady to fix this, but unfortunately that didn’t work.
Rene and Douwe helpt me with this problem. Now i have 2 javascript files. One file is the setup for the whole code and the other one is the id of the specific item in the database. now if i load both scripts in the html file i only have to change the dataNr and the dataId in the one file to make it work.
