I've got a .pptx file in my project bar and a button in the activity itself I want the user to be able to click and have the .pptx open. I've got the AJAX function to request the .pptx, but I can't figure out how to get it to open in a different window. Is there a specific line(s) of code I need to use?
You can go with the NW.js object, and add the "Run file" action.
Though that would mean that you would have to:
1) export the project as an NW.js application
2) store the .pptx file on a temporary local location to be able to run it via the NW.js action
Export the ppt file as images and display them as a c2 sprite.
Develop games in your browser. Powerful, performant & highly capable.
I was hoping it the powerpoint (or I could convert it to a PDF it'd be easier) would open in a new window/tab. Is this possible with an AJAX or local storage object? Or something they can open on their desktop. If it isn't doable I'm sure I could have the files for them to download on my webpage and it wouldn't be the end of the world. Just for flow and appearance's sake I want them to open directly from the activity so they're not clicking back and forth.
Browser : Open URL in new window
EDIT> for PPTX file
Displaying files on your site
you can also check
[PLUGIN] iFrame & InsertHTML
[Plugins] Pode HTML Pack