-
Notifications
You must be signed in to change notification settings - Fork 85
Correct syntax issue (READ THIS TO FIX) #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is the correct code? |
Or could you post the entire correct code? |
I got it to work but now it’s giving me another code and still not executing |
the old code still works API_1484_11.SetValue('cmi.completion_status','completed');if (document.getElementsByName("courseheader").item(0).contentDocument.getElementById("c")){document.getElementsByName("courseheader").item(0).contentDocument.getElementById("c").submit()}; |
Fixed |
\ remove the slash on the first function
function findAPI(win) {
var attempts = 0;
var maxAttempts = 500;
while ((typeof(win.API_1484_11) == 'undefined') && win.parent && win != win.parent && attempts < maxAttempts) {
win = win.parent;
attempts++;
}
return win.API_1484_11;
}\
The text was updated successfully, but these errors were encountered: