Changeset 117 for Dev/trunk


Ignore:
Timestamp:
09/28/11 15:31:13 (14 years ago)
Author:
fpvanagthoven
Message:

Start on php to js loading questions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/QuestionCreationTool.php

    r116 r117  
    2323     * into javascript. This is done so that the page does not need
    2424     * to refresh in order to load an entire question in to the form.
     25     *
     26     * The javascript array will have question codes as keys.
     27     * The value is a javascript Question object that gets created from
     28     * the PHP object.
    2529     */
    2630    private function loadQuestionsToJavascript()
    2731    {
     32//        ?><script type="text/javascript">
     33        document.questions = array();
    2834       
     35        //<?php
     36//        foreach ($this->questions as $question) {
     37//            ?>
     38           
     39           
     40           
     41            //<?php
     42//        }
     43//        ?></script><?php
    2944    }
    3045
Note: See TracChangeset for help on using the changeset viewer.