cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
matt5834
Community Participant

Targeting the iFrame using Javascript in the new UI

Jump to solution

Hi-

I've been using this very important piece of javascript in my custom javascript file:

var iFrame = window.top.document.getElementById('window_content');

iFrame.setAttribute("scrolling","no");

It is not working when the new UI is enacted. I'm guessing it might have something to do with the ID of the iFrame in the new UI but I cannot figure it out.

I have uploaded the Javascript file via the Theme Editor

Please help!

Best ,

Matt

Tags (2)
39 Replies
matt5834
Community Participant

Thank you Kenneth!!  Where would I find the new code exactly?

(Is it in the reply from yesterday?)

Thank you!

Matt

matt5834
Community Participant

I see the link now!!

Thank you!!

matt5834
Community Participant

Hi Kenneth-

I used the updated code you provided. Unfortunately it did not do the trick.

Again, if I change the submission type to something other than External Tool it works. With the External tool submission it does not work

Anything else we can try?

And thank you!!!
Matt

Hmmm... I tested it on one with an external tool submission. Is there any way that you could create the assignment in a public course that I could look at to figure out what is different about the page structure?

matt5834
Community Participant

Yes, I will figure out how to do that and let you know ASAP.

Thank you!

Matt

matt5834
Community Participant

Hi Kenneth-

I've invited you to one of our demo courses. Feel free to poke around as you'd like.

Will that work for you?

Thanks
Matt

That is very helpful. I found a .tool_content_wrapper class that should be pretty unique to this application and added it to the file. Give it a try, if it still doesn't work, I will try again.

View solution in original post

matt5834
Community Participant

Success!!

Thank you Kenneth so much!!

All the best,
Matt

jordan
Community Champion

 @kenneth_larsen ​ thanks for your dedicated effort here to help out Matt!

Kenneth, you are a godsend! I've been working on a project where the window load has been firing intermittently for weeks and you afterContetLoad just fixed it. Thanks so much!!!