Is there anyway to load this into a canvas page without administrative access?
Jeffrey Kritzer ,
There was/is a way to do with the Files but Canvas is making moves to remove that risk (if they haven't already), so I wouldn't go down that path with anything new. Using an iframe is the recommended / supported approach.
Thanks, James. What website would the iframe be connected to?
You would create your own custom page, hosted somewhere else, with whatever scripting and content you want. The iFrame does not allow any interaction on the Canvas page.
Thanks Brian for responding. I'm still traveling back from InstructureCon and have limited access to the internet.
In addition to what Brian wrote, I'll add that the site you host it on needs to support a secure (https) connection. Your school may already provide a site for faculty to host files.
Depending on what you need to accomplish, the other route you may be able to pursue is an LTI (external tool). This would be the route to take if you need to pass information about the course or user to the script. If you simply iframe an external page, it cannot access information from Canvas (including styling).
Laura Gibbs is awesome at using <iframe> and files in Canvas to do all kinds of things. Her course Twitter4Canvas Home: Twitter4Canvas
Hi everybody! I'm also just back from InstCon so I will make this short:
1) I create randomizing scripts using RotateContent.com and then I host the scripts in my own webspace (my school uses Reclaim Hosting's Domain of One's Own program; I cannot say enough good things about their service and its value for educators). Here's a typical script:
2) I create vanilla HTML file to call the script. Here's a typical file:
3) Then I can iframe that into Canvas. I can also share that HTML file address so that anybody who wants to iframe it can do so. That's the point of my Canvas Widget Warehouse:
Laura's Widget Warehouse: Homepage
The growth mindset cats are there :-)
I'm not sure what kind of script(s) you are working with, Jeffrey Kritzer but for the kinds of randomizing scripts I use, the iframe solution workable although clunky (sizing the height is always a problem, and font styling -- James found a solution for the font styling too, but it was more trouble than it was worth; I am fine with font mixing in a situation like this).
James Jones, did you hear that the option to do script calls in Files is actually going away...? I totally understand not allowing anyone to host a script in Files, but if they take away our ability to host script calls (as we can do now), that would be a serious setback for people who want to do dynamic embedded content (like Twitter widgets). I am so fortunate to have https space I can use; many instructors do not.
Laura, I'm basing my comments off the blog that Chris Hunter wrote on January 31, 2018: Proposal for New Security Policy.
The original post was very confusing and some people took it as a tightening and some took it as a loosening. I mistook what he was saying, one of the (hopefully few) times I've completely botched my replies. Chris came back through and cleaned it up to be more explicit about what they were proposing.
In the revised post, he wrote:
We will implement the following changes:
That first bullet point sounds pretty unambiguous to me, but I might be reading more into it because of my technical knowledge.
I don't see that feature option listed, which means nothing in itself. It could have been delayed, it might be a feature option your CSM has to turn on, they might have decided after the feedback that they need to do something else. But since it's a security issue, I do not expect that they will drop it completely.
Those comments from Chris, plus the fact that it was a major hack in the first place, are what make me say that people shouldn't do this as a long term, sustainable solution. It could break at any point and so it would be easier to do it right in the first place.
In my idealistic way, I wish that instead of Files course by course by course, we had real web hosting provided by Instructure. I know that's not the model and never will be, but I feel guilty that I can do all kinds of fun stuff thanks to the web hosting my school provides through Reclaim Hosting. And the guys at Reclaim provide their services with educators in mind, so I feel confident that we (my school's faculty AND students) are being well taken care of.
Reclaim Hosting | Shared Hosting
Their support is excellent! :-)
Hi, Laura. Thanks for your reply. I love your websites. Please tell me if I can display recent posts in a Canvas site without administrative access. Thanks, Jeff
Thank you Jeffrey Kritzer! Switching to Canvas was such a great thing for me; we had D2L before, and I could not create and share with open classes like with Canvas. To me, the most useful way to learn about a tool is to see how others are using it, and with Canvas we can learn and share like that! (With D2L, there was no way to make fully open courses.)
About posts: do you mean recent posts like from a blog? There are two ways you can do that just as a regular user (I'm not an admin and don't have any kind of admin privileges):
2. You can use a tool like Inoreader to bring RSS feeds into Canvas. This is a little more complex, but it is really powerful. You can use Inoreader to take RSS from any source (blogs, Diigo, anything with RSS), and then use Inoreader's export-HTML-clippings view (magazine view, full view, various options) to display that content in Canvas. Here's an example of my recent blog posts in a storytelling project, displayed inside Canvas:
Story Lab Homepage: StoryLab
I've written a lot about Inoreader here at the Community, and I think I'm the only person who's been writing about it, so if you search the Community for Inoreader, you'll find lots of different uses that I have documented. I love it! RSS is not dead yet, ha ha. #RSSForever! I run all my classes as student blog networks. :-)
Laura--are you saying that I can load some widgets into my canvas site without administrative access? Please share how I do this. Thanks, Jeff
I hope that helps! Both Sean and I are big proponents of bringing dynamic web content into Canvas! :-)
Thanks, Laura. What I want to do is have recent discussion threads (not blogposts) displayed on my front page, just like i can have recent announcements displayed. Jeff
Ahhhh, I am so used to blogging all the time that when I see "posts" I just think blogs!
I don't use Canvas discussion boards so I have no insight about that, but it does sound like it would be useful to be able to display recent content from discussion boards like that. The stream of "latest activity" in my blog networks is something I share with students and it's fun for them to see new stuff popping up all the time.
Laura--you are a terrific resource! One more question. Do you know how to make a border around my page background in canvas. This is my html code:
<div style="background-color: lightblue; color: black; padding: 20px;">
I would love to add a dark blue 5px solid border. Thanks, Jeff
Hi Jeff, I am a CSS beginning myself, so alas I cannot help you there... but Robert Carroll had some good CSS advice for people on this other discussion page about image placement, so he might be able to help you with styling too. :-)
border: 5px solid #00008b
to your style call. So, the whole thing would be:
<div style="background-color: lightblue; color: black; padding: 20px; border: 5px solid #00008b;">
Thanks so much! Works perfectly!
Marked as helpful:
<div style="background-color: lightblue; color: black; padding: 20px; border: 5px solid #00008b;"
Jeffrey B. Kritzer, Ph.D
Certified Advanced Online Instructor, Online Learning Consortium
Department of Teacher Education
University of Nebraska Kearney
Trying my small part every day to "Make the World a Better Place".
Retrieving data ...