Ommitting jquery.form.js and attempting to get a custom ajax call to work. Unsuccessful, but uploading an image item now automattically gives them the questions based on the questions table.
WE BLOODY DID IT. THE UPLOAD WORKS WITHOUT THE JQUERY.FORM.JS. HORRAY.
Updated createDatabase.sql
Changing to older array supported by 5.3 php
Updated createDatabase.sql
Answers pass to addAnswer.php successfully
Adding return data type
JSON post fix
renaming index.html to admin.html
In the process of updating and inserting questions into the database depending on their question type. addQuestions.php seems to not insert questions of type Rating despite reflecting the code used for inserting questions of type survey.
Resolving merge conflict
Finished question.html and will work on finetuning rate.js to pull from the database.
Survey.html now pulls drom database
A basic insertion into the db with a json like string for rating answers
Merge branch 'development' of https://github.com/jgunaratne/poly-studies into development
Added ratings to rate.js
Merge branch 'development' of https://github.com/jgunaratne/poly-studies into development
Updated createDatabase.sql
Merge branch 'development' of https://github.com/jgunaratne/poly-studies into development
Updated the createDatabase.sql file with an insertion of a dummy user with user_id = -1. This will be used to test the insertion of answers to the answer table. As of right now, rate.js sends the answers to addAnswers.php, which will format the information into a json like string with keys that look like: imageName_questionType. An entry will look like {imageName_questionType: questionValue}. This format will most likely be changed in the future, but for now, will be used simply as a starting point to build off of.