Hi all,
I transfered a .swf to Html5 (with google swiffy) and added it to a node . It shows just fine in my browser, so it is working.
But when I add it to popup with colorbox-node, nothing appears. I see the trobber just before the body gets blank.
The version is 7.x-2.6
Any suggestions ? Thanks .
| Comment | File | Size | Author |
|---|---|---|---|
| ScreenShot007.gif | 29.03 KB | morybel | |
| ScreenShot008.gif | 46.87 KB | morybel |
Comments
Comment #1
iLLin commentedI would imagine that there is some javascript that needs to be called once the node loads. You need to make sure that JS is being called.
Comment #2
morybel commentedThanks iLLin,
Would you be willing to explain me how I do that? I'm not a coder (but a quick learner) and really don't know where to go from here.
Thank you very much for any help.
Comment #3
iLLin commentedHow did you add the swiffy thing to the node? Whats the code look like? Maybe search swiffy in a lightbox/modalbox/colorbox and see if others have a similar problem with a solution.
Comment #4
morybel commentedThis is the actual link behind the popup
<p><a class="colorbox-node" href="/oph/en/node/2492?width=700&height=700"><img src="/oph/sites/default/files/les_modules/en/module01/images/pic013.gif" style="width: 205px; height: 215px;" /></a></p>If I right-click on that link and choose "open in a new tab", I can actually see the swiffy html 5 anination just fine. But when I click on my popup to open with colorbox-node, it is blank
The code behind the node start with:
<script src="https://www.gstatic.com/swiffy/v5.1/runtime.js"></script>and ends with:
The swiffy conversion itself is way to long to copy here.
There is however an error in my firebug
Comment #5
morybel commentedThis is the actual link behind the popup
<p><a class="colorbox-node" href="/oph/en/node/2492?width=700&height=700"><img src="/oph/sites/default/files/les_modules/en/module01/images/pic013.gif" style="width: 205px; height: 215px;" /></a></p>If I right-click on that link and choose "open in a new tab", I can actually see the swiffy html 5 anination just fine. But when I click on my popup to open with colorbox-node, it is blank
The code behind the node start with:
<script src="https://www.gstatic.com/swiffy/v5.1/runtime.js"></script>and ends with:
The swiffy conversion itself is way to long to copy here.
There is however an error in my firebug
Comment #6
morybel commentedoups, sorry about the double reply.
Comment #7
iLLin commentedI would try two things.
Wrap your var stage JS in a DOC Ready block.
Or add the runtime.js file to the head for all pages and see if that works since its already loaded.
Comment #8
morybel commentedwrapping in DOC ready did not solve the problem, nor adding the js in the head. It broke my site instead. :-s
I found a "partial" solution to the problem however here: http://drupal.org/node/1207420, but not the best practice I would say.
My entire site is linked with colorbox-node so choosing another popup engine (lightbox or else) is out of questions. I have 1000 pages in 2 languages and 500 popups at least.
If you do have other suggestions I'm a taker. :-)
Thank you very much for your help, It's greatly appreciated.
Comment #9
iLLin commentedI used the resources in that thread for a test. Now, it still shows up blank (dunno if they did theirs right or not) but it did write all the containers to the container. You can use it to test some more.
Comment #10
iLLin commentedThis Worked:
I copied the swiffyobject into my own test.swiffy from this page.
https://swiffypreviews.googleusercontent.com/view/gallery/example1_swiff...
I think the key is the setTimeout function. It needs to fire AFTER you download the runtime.js file. Maybe you should host that file locally.
Comment #11
morybel commentedOK, I will try that. Not very fond of iframe. This sounds better.
Thank you. I'll be back with the results.
Comment #12
iLLin commented