Changeset 548 in tmcsimulator for trunk/webapps/einotebook/script/simscript.js


Ignore:
Timestamp:
12/25/2019 09:44:50 AM (6 years ago)
Author:
jdalbey
Message:

Evaluation.js restore radio buttons and simplify recordRating(). Add submit button to scrollframe and add collectRatings function to retrieve any rating that have been set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/einotebook/script/simscript.js

    r468 r548  
    7070        } 
    7171         
     72    // Add a submit button to the very bottom  
     73    html += "<button style=\"float: right\" onclick=\"collectRatings();\">Submit Ratings</button>" 
    7274        // display events in iframe 
    7375        getDocumentFromFrame('view').body.innerHTML = html;      
     
    7678        resizeIframe(); 
    7779        window.onresize = resizeIframe; 
    78     // This line is causing an error 
    79         //window.frames['view'].setEvents(Script.events); 
    80          
     80    // Pass the events to the scroll frame window 
     81        document.getElementById("view").contentWindow.setEvents(Script.events); 
     82     
    8183        Script.events.win.scrollTo(0, readCookie('scriptScrollY')); 
    8284         
Note: See TracChangeset for help on using the changeset viewer.