Skip to content

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

Closed
v0rl0x opened this issue Aug 20, 2024 · 5 comments
Closed

Correct syntax issue (READ THIS TO FIX) #92

v0rl0x opened this issue Aug 20, 2024 · 5 comments

Comments

@v0rl0x
Copy link

v0rl0x commented Aug 20, 2024

\ 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;
}\

@Fireguy8
Copy link

This is the correct code?

@Fireguy8
Copy link

Or could you post the entire correct code?

@Fireguy8
Copy link

I got it to work but now it’s giving me another code and still not executing

@uhrdead02
Copy link

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()};

@iEatNoodlez
Copy link
Collaborator

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants