HTML5 3D Flipping Gallery Support Product Page

Flipping Gallery deletes other javascript in head when reopening page in DW

Reported 18 Nov 2013 09:46:22
has this problem
18 Nov 2013 09:46:22 Ian Musk posted:
This is similar to the problem described here, but worse as this solution here does not work with Flipping Gallery: See

The current problem is with Flipping Gallery 1.0.3 and its previous version. What happens is this: We have had a site running for some months with no problems at All the pages have a component that requires jquery.min.js to run. We now want to add a new extra page and to have Flipping Gallery on this page as an additional item. What happens is this: After you insert and set up Fliiping Gallery on the page and save it all is ok and you can test it live so long as you don't close the page first. If you close and reopen the page then Flipping Gallery removes the line calling jquery.min.js if this line is before the head entries for Flipping Gallery. If the line calling jquery.min.js is after the head entries for Flipping Gallery the reopening of the page causes Flipping Gallery to replace the DMX line that calls jquery-latest.pack.js by moving the line with jquery.min.js to where the DMX jquery-latest.pack.js line was. This happens on the simplest of pages without template (DWT) control. You can test it yourself. Set up an empty test page with nothing in it. Add a basic Flipping Gallery so the Flipping Gallery code is added to the head. Test, close and open page. Everything is ok. Then just add the line to the head calling jquery.min.js (in our case <script type="text/javascript" src="../js/jquery.min.js"></script>. Then, in Code mode, close and reopen the page. You will see the head change just after the file opens. You can follow what happens by clicking EDIT > UNDO several times to track what went on if you are in code mode. Same happens in DW CS6 Cloud and DW CC.


Replied 18 Nov 2013 09:58:05
18 Nov 2013 09:58:05 Teodor Kuduschiev replied:
Hello Ian,

Our extensions look for the jquery-latest.pack.js that we provide (which is the latest version) and if it is not present, they place it in the head. This happens, because if you are using old version of the jquery library the extension won't function. This way we keep the jquery on the page always updated.
Replied 18 Nov 2013 10:36:18
18 Nov 2013 10:36:18 Ian Musk replied:
Yes but... Please read in detail what I wrote: If the line for jquery.min.js comes after the Flipping Gallery entries in the head then the result is that you latest-pack is replaced by DMX moving the line with jquery.min to where your latest-pack line should be. In this case, as you say, Flipping Gallery does not work because DMX replaced the line with latest-pack by moving line with jquery.min and is using an older library. - If line with jquery.min comes before Flipping Gallery entries the DMX just deletes line with jquery.min and Flipping Gallery works.

DMX seems to put Flipping Book entries anywhere in head and not at end of after after what was there from before so problems arise and Flipping Gallery won't always run or page locks on loading. This is definately the case where HEAD is controlled by DW template (DWT) as the whole thing gets really messy then. The result in this case is that your latest-version line is removed and Flipping Gallery doesn't work.

Reply to this topic