Ignore:
Timestamp:
01/17/12 18:17:51 (13 years ago)
Author:
fpvanagthoven
Message:
  • Faal met perongeluk de database committen-_- Maar is weer deleted, zou nu weer moeten werken.
  • QuestionEditor? werkt nu grotendeels, paar kleine afwerkingsfoutjes (en data die nog niet in de DB passen)
  • selectQuestion scherm gemaakt, is nog niet zo multifunctioneel als je zou hopen. Ideaal gezien zou dit ipv een statische PHP pagina, een JS driven widget worden die je bijvoorbeeld kan gebruiken voor "Add existing question" in de surveyEditor.
  • Zelfde voor selectApplication.php en selectSurvey.php.
  • objectSelectionWidget class maken voor dit doeleind? (Na demo!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/getObject.php

    r235 r237  
    44
    55//Get post variables
    6 if (!isset($_POST['args']) || empty($_POST['args'])) {
    7     $requestArray = JSON_deode($_POST['args']);
     6if (isset($_POST['args']) || !empty($_POST['args'])) {
     7    $requestArray = JSON_decode($_POST['args']);
    88} else {
    99    die("No input passed!");
     
    1818    if (isset($results) && !empty($results) && count($results) > 0) {
    1919        // Add type property for easier identification in JS.
    20         $results[0]->objectType = type;
     20        $results[0]->objectType = $type;
    2121        $resultArray[] = $results[0];
    2222    }
     
    2626}
    2727
    28 $output = JSON.encode($resultArray);
     28$output = JSON_encode($resultArray);
    2929echo $output;
    3030?>
Note: See TracChangeset for help on using the changeset viewer.