Improve load time for a html page with flash - html

I have a basic html page and a big flash file I need to embed. I would like to allow the user to click on the links until the flash files loads.
I was thinking of two ways to do this
1. use an iframe and put the flash file in there
2. use jquery to load and append the flash file to an internal div
Is this the way to go ? Are there better solutions ?

I would suggest that jQuery is the best way to add the element to the page.
There are many plugins for jQuery which make it easy to achieve. One of the better ones I have found can be found at http://jquery.thewikies.com/swfobject/

Related

Can I embed an A-Frame scene into Squarespace?

I want to embed this a-frame project to my portfolio on Squarespace (most basic plan) like what a-frame shows in their embedded page but I'm not even sure if it's possible? I'm also super new to coding so let me know if I should provide more info. If people can also explain things in baby language that would be awesome thanks
embedding remote a-scene?
if you want to link your existing project to a different page then... I don't think it's possible. Look:
the documentation page uses a real a-scene there, with a-boxes and stuff.
It may be possible via iframes but I don't know if it works. There is something like this in the documentation:
For now, if the I-Frame is not on the same origin as the page, the WebVR polyfill for mobile won’t work and there won’t be any tracked rotation of the device. - source
embedded
embedded is used to create a smaller window of a-scene inside a standard HTML page. As far as I know, it just sets or changes some CSS values. Unfortunately, there is nothing like a magical src attribute that would allow you to fetch a different scene from another page
If you can upload a static HTML file onto Squarespace then by all means you can embed it there. But remember that
Only one <a-scene> can exist on a page - same source
You would need to copy your entire project a-scene and paste it into your Squarespace page. Add A-Frame script in header or link a js file and all standard stuff.
link
this may not be what you are looking for but you could potentially create an embeded a-frame scene that would have a link inisde that would "teleport" you (change location) to your project. link - A-Frame

How to embed video on html that will not play on browser?

I know this question is simple and kind of silly but I really need to get an answer. I am doing some kind of family videos put together and I want that to be on one page or like an HTML file. but when I embed/link a directory file of video to the html it will play on the browser. Is there any way that when I embed a link it will just ask what application to open and will open on that video player that I selected? I'm not really that techie but I really need to make an offline HTML to organize my stuff. thank you so much in advance.
is there any way that when i embed a link it will just ask what application to open and will open on that videoplayer that i selected
Not all browsers do this, but many will. One way to look at this is that the browser in this case is the desired application for viewing that video. (Often times, the user didn't make this choice of course, it was made for them.)
There are a couple ways around this. One way is to add the download attribute to your anchor element:
<a href="video.webm" download>Download the video</a
This will suggest to the browser that the video should be saved to local disk, and not just immediately opened.
A second method is to use an M3U file. All you need in your file is something like this:
#EXTM3U
https://example.com/video.webm
These tend to open up in the default player. Just keep in mind that not everyone has such a player installed.
You have to make your video files downloadable by creating a download link to it. This will give the option of either open in browser or save to local disk.

Read HTML files directly from zip

I'm attempting to build a custom help viewer app in WPF. I can ready HTML files directly from a zip archive (no unpacking), does anyone know if it's possible to somehow resolve (redirect) links to the css, images, and other anchor links?
You need to add a base element to your pages to redirect relative links.
Another way would be to control the downloads, but I don't know if that is easy or even possible. You might search the All-In-One Code Framework for a sample of that.
You might need to subscribe the navigation events to change them.

How can I upload / view HTML5 animations in confluence

Currently we are posting .swf animation (interactive) on our confluence. We just upload them as attachement to a pag and use {multimedia:name=animation.swf } to display them. But we want to make it usable for apple owners and are switching to making these interactive animations in HTML5 in stead of .swf.
But generating the same animation in HTML5 in stead of .swf gives use in stead of 1 swf file a couple of directories with css, javascript, images and html files.
How can I upload these to confluence and display the animation on a page in confluence?
It might matter which version of confluence you're working on.
To use the javascript and css you need, you can go to edit -> Administration -> Edit Layout and edit the space-wide css and js in the appropriate tabs.
As for html, you can use the {html} tags to include html code on your confluence pages like this:
{html}<p>Insert your html here</p>{html}
Do you know which version of confluence you have?
You might also want to look into the gliffy add-on for confluence. I believe it has the capability to accomplish what you want.
http://www.gliffy.com/products/confluence-plugin/

stop/cancel file upload in html?

If i have a file upload and i click on something to cancel it, how do i stop the upload? I tried doing $('form').remove() and it appears to continue uploading. Maybe i should put it in an iframe and destroy the iframe? then i need to figure out how to reload it hmm.
Are there any known cross platform ways?
-edit- btw this must be done in pure html and js, no flash or silverlight.
Use Flash to upload the file, then you have a lot more control to include a progress bar and allow the client to cancel.
Here's a commonly used JS wrapper, but I don't know if this specific one has a cancel api:
http://code.google.com/p/swfupload/