javascript - Firebase set does not work -


<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script> <script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-auth.js"></script> <script src="https://www.gstatic.com/firebasejs/3.2.0/firebase-database.js"></script> <script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> <script>     var config = {         apikey : "aizasycnmzwnwp3cfjxdcdl5madiej6gwvxwetq",         authdomain : "dsmweb-ba185.firebaseapp.com",         databaseurl : "https://dsmweb-ba185.firebaseio.com",         storagebucket : "dsmweb-ba185.appspot.com",     };     firebase.initializeapp(config);     var usersref = ref.child("assignment");     userref.set(<%=submit%>); </script> 

this code .. , not work. submit variable mean

{testuser={date=8/8, teachername=testuser, title=let's homework}} 


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -