How to Unload and Reload a Composition into the same HTML page?

TLDR:
When loading multiple Compositions into a html page via AdobeEdge JavaScript, how do I remove/delete/unload a loaded composition so that it can be added/loaded to the same page again later? I am open to options not mentioned here, but this is done externally, not within Edge's limited code abilities (working with multiple comps on one page).
*Note: I am making comps in Edge then loading multiple within my own JavaScript/HTML external pages. This programming is NOT done within Edge's code.
Overview:
I could have more than 50 compositions to load into my page, but only one is displayed at a time. In order to make this easier on the user, I load 5 into the page in divs with display: none. I set the id of the first one to an id that has my css to show the content properly. When clicking next, that div is set back to an ID that has hidden css values. Going forward and back works the same. This functions properly. This puts all the obvious preloading in the beginning so the user doesn't have to wait again, as comps are preloaded in the background while they are viewing other comps.
As the user moves farther, I drop the first div and add one on the end with the next comp. This works fine. I can go forward all day, no problem by removing the first div element and adding one to the end. This should make memory not horrible, since theoretically, the comps would be removed as needed...
Problem:
The problem is if the user wants to go back. If I drop the last div and add one to the front, the comp (which was loaded and dismissed earlier) cannot be re-loaded. It also cannot be re-added, even if the div is cloned and re-added later.
This is the code I am using to load the comps:
$.getScript('comp_' + i + '_edgePreload.js', function() {});
Options:
The options I have thought of (and not found a way to make them work) in order of preference:
Fully unload the comp from memory, that way when I make the call to load the comp, it will act as if it has never been loaded before. (Is there a way to unload a comp completely? I haven't found one, but the API is sorely incomplete) **I want this one to work very much.
Ok, maybe you can't actually unload a loaded comp. Can you re-add it to a new div? I have printed out every option I could thru AdobeEdge's interface, and cannot find a way to re-make a div the way it was. Heck, I'd be happy to load the content into a non-child element in JS, then append to html when I actually want to display it. I can't find how to re-setup the div, which has the correct Class and is set up the way it was when the comp was loaded the first time. (this option is bad because it seems all of the comps are still in memory, but at least it would work)
Worst case, I have tried this and ALMOST got it to work. When I removed the old divs from the page, I cloned them and added them to an array of objects in JS. Then, when going back, I pushed them back out, so it was an EXACT copy of the original div, all content was the same, all id, class, style, etc was the same. Unfortunately, AdobeEdge seemed to lose the ability to talk to it. (AdobeEdge.getComposition('EDGE-MyUniqueIdentifier').getStage(); // returns undefined). How do I tell it to re-associate the div with the object that still exists here? And obviously, this is an awful solution, since it appears that all of the comps stay in memory, but I was desperate to simply make it work somehow.
If you need code examples of any of my attempts at the previous options (I have tried them all extensively, and unsuccessfully), I can provide it. I hope someone has found a way to deal with this or has links to actually useful information. Most posts I have found simply tell you to load all your comps and hide/unhide them as needed. This works for small-scale, but when you have a lot of comps to move between, it becomes less of a viable solution.

Exactly the same problem here. Could anyone from EDGE TEAM answer to this question?
How we can UNLOAD and LOAD same or another animation using SAME or DIFFERENT dinamically created DIVS?
Affter loading the second animation AdobeEdge.getComposition('EDGE-MyUniqueIdentifier').getStage() returns undefined.
Thanks for ther support.

Similar Messages

  • How to mute and lock screen rotation at the same time? Loved this feature in iOS 5.

    How to mute and lock screen rotation at the same time? Loved this feature in iOS 5.

    You cannot do two different simultaneous VISA writes over a serial bus. There is a single rx line on the pc's com port and a single rx line on the instrument. You only hope is if the instrument allows you to chain commands and the reception of the carriage return triggers the instrument to implement both at the same time. Maybe you can send CTS01 and CTS02 separated by a space or comma. The manual should tell you if that's possible or maybe you need to ask the manufacturer.

  • I would like to combine both my macbok calendar and my iphone calendar into the same calendar. How do i do this?

    how would i automatically combine my calendars on both my macbook and my iphone?

    Yes, it's possible.  That's exactly how iCloud works.
    First check your settings.  Make sure your phone and Mac are both signed into the same iCloud account in Settings (System Preferences)>iCloud and that contact syncing is enabled on both.  Then on your phone, go to Settings>Mail,Contacts,Calendars>Default Calendar (in the Calendars section) and select your iCloud calendar as your default.  On you Mac, open the Calendar application and go to Calendar>Preferences>General and make sure your iCloud calendar is selected in the drop-down list next to Default Calendar.
    Then add a test calendar event on both your Mac and your phone, go to icloud.com from your computer and check to see if they both appear there, as well as on the other device.  If so, they are properly syncing now.  If not, let me know which one does not appear on icloud.com.

  • How to apply different styles to Portlets on the same Portal page?

    How do you apply different styles to Portlets on the same Portal page?
    I'm new to this kind of thing, but understand that something called "cascading style sheets" can help here?
    What are these, how do you use them, and can you make different Portlets (all types - PL/SQL, Java, Applications, etc) on the same Portal page have different styles assigned?
    Thanks!

    Jeff,
    Apply Oracle Portal styles at the region level. Your portlets within each region will inherit the style defined for the region.
    You may want to check out Report #40050 at portalcenter.oracle.com, "Design an Attractive and Compelling Portal Interface" for a good overview of the various design features of Oracle Portal.
    Here is the link:
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/OWSF_2003_PAPERS/40050_STOVER.PDF
    Regards,
    Jay

  • I have downloaded Word in icloud have opened a project named Recipes and added a recipe now I don't know how to write and save another recipe to the same place.  I don't see anyway to save?

    After using the Word in ICloud and creating a new project named recipes then putting a recipe in now I don't know how to add a new page with another recipe and save it to the same  project the first one is in.  I don't see any icon that will save?

    Arlene83 wrote:
    After using the Word in ICloud
    There is no version of the Microsoft Word app available for iPad.  What exactly do you mean here?  What app are you talking about?  And what is the tie-in to iCloud?

  • How to rotate and translate an object at the same time??

    Hi, I have a problem with rotation and translation of an object at the same time. I wrote a behovior class for my object (a cylinder). When some conditions are true the cylinder is added to a robot arm. Then it is translated so that the cylinder would be very close to the arm (looks like the robot is holding it). And now the behavior should also rotate the cylinder because the angle is 0 and it should be 90. I can translate the object or I can rotate the object but when I'm trying to do it at the same time (I want to combine rotation and translation) it doesn't work.
    Could anyone help me, please :)

    You can used to Matrix3f
    This object is a rotation and translate matrix
    for example:
    private void componerTransformada(){
    Quat4f rot = new Quat4f((float) this.getRotacionSobreX(),(float) this.getRotacionSobreY(),
    (float) this.getRotacionSobreZ(),1.0f);
    Vector3f tras = new Vector3f(-4.0f,-4.0f,(-1)*this.getDistanciaDeLaCamara());
    this.setTransformacion(new Transform3D(new Matrix4f(rot, tras, 1.0f)));
    Quat4f is a matrix of ratation
    vector3f is a direction vector
    Transform3d is building with Quat4f and Vector3f.
    That is work i use this to situe the view of point.
    good locky

  • HT5621 How can AppleID and e mail address be the same? Contradiction on ID page?

    I am trying to get my apple ID and main email address to be the same as recommended in Manage Apple ID. Isn't there a contradiction in instructions?

    thanks.  your answer was correct, clearer.  I have another question, maybe you can answer.  I just purchase my ipad2 2 days ago.  yesterday, there was a sound.  today there is no sound.  there is a sound only in movies and you tube and music.  but no sound on all apps and keyboards.  I look it up and seems like ther are few that have this problem.  I called walmart coz I bought it there and they told me that they have not heard that before but if I can't fix it, just return it and exchange it with anew one since I have 14 days to do that.  I tried rebooting it and still won't work.  Should I just restore it?

  • If I import a CD onto iTunes with tracks that have more than one person on (eg Rihanna ft Drake), it puts these tracks in a separate album. How do I get them all back into the same album?

    It's done it with a load of cds, so then I can't even get the album artwork to work. Please help! It's starting to bug me haha

    In iTunes select all songs you want in the same album, right click the selection, choose "get info", type the album name in the album field, click OK.

  • How do I keep my Cox mail and MSN mail from all going into the same in box on Apple mail

    I have a Imac and Mac Book.  The Imac apple mail works great.  I also have a Mac Book.  The Apple  Mail is set up the same as the Imac.  The problem I have is that both Cox mail and MSN mail go into the same inbox on Apple Mail on the MacBook even though the accounts are separte.  From what I see, the settings are the same as the Imac. I tried to reinstall the apple mail.  No luck!  Should I try again.  Any ideas?

    Go to settings>iclod>then mark "no" in  "contacts" .

  • Every time I try and use iTunes or the App Store on my iPad Mini, I keep getting the message "Cannot connect to iTunes Store". However, on my iPod Touch 4th Generation - signed into the same account - it works with no problems. Can anyone help? Thanks!

    As I've already mentioned, I can't connect to iTunes or the App Store, the same message appears every time: "Cannot connect to the iTunes Store". I downloaded a few apps before I connected my iPad Mini to my Computer. I started doing an update that was about 9 or 10 hours long, somewhere around that time, and I unplugged it about halfway through the update and since then I've not been able to get onto iTunes or the App Store. I checked to see if I could continue the update but when I looked on iTunes again, no updates appeared. On my iPod Touch 4th Generation, everything works absolutely fine and it is logged into the same Apple ID. I've tried resetting my Network Settings, logging into someone else's Apple ID, connecting to a different Wifi, changing the DNS settings to 8.8.8.8, rebooting my Computer and iPad and changing the HTTP Proxy to Auto. Is there anything else I could try or am I just overlooking something? I would really appreciate it if someone could help me out here, thanks!

    Can you connect to a wifi source on the device? Enable wifi in settings on the device itself. If you don't have wifi at home, there may be a local hotspot you can use for this.
    The reason this happens is carriers don't want people downloading huge files that would slow their network as well as eat up your data plan.

  • How can I find the name and path of the host html page

    Hi all,
    I want to make a banner using flash. This banner will be
    included in several pages in several domains.
    So, I want to count the clicks and store statistical data,
    calling an asp, and I want to get the host HTML page name which
    includes my banner.
    How can I do this?
    Thanks in advance

    or you can use the localConnection class inside of flash....
    it will return the domain name for you.
    var lc:LocalConnection = new LocalConnection();
    trace(lc.domain());

  • TS1717 I can't open my purchased films or view films in store and a note comes up that iTunes has stopped working. It checks for solutions, is unsuccessful and closes iTunes. I have reloaded iTunes but get the same. Any ideas?

    I can't open my purchased films or view trailers in store. A note comes up to say iTunes has stopped working. It searches for a solution, is unsuccessful and closes the programme. I have uninstalled all programmes and reloaded but I get the same result. Any ideas?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • I would like to know how to insure that all track from a CD I rip into i-tunes all go into the same file regardless of the artist on the CD. I was recdently importing an All Time Low CD into i-Tunes for my daughter and because one track featured a guest a

    i would like to be able to insure that when i import a CD into i-Tunes that all tracks from that CD go into a single file for that album in their proper order regardless of whether or not there is a featured artist on one or two tracks or whatever. i recentl;y imported an All Time Low CD into i-Tunes for my daughter and because one song featured a guest artist i-Tunes placed that song in a seperate folder and so when i synced my daughters i-Pod Touch that one track is not with the rest of the tracks form the album and has to be listened to seperately. The song is from the same album and should be where it belongs with the rest of that album so she can listen to the entire album with the tracks in the proper order. I am sure that this can be done i just don't know how.

    Edit the Name of the problem song to Name [Feat. Guest]
    Change the Artist of that song to All Time Low
    marley2012 wrote:
    ... and i want to make sure that from now on all songs from any CD I import into i-tunes all go into the same album file if they are on that album originally. i do not want i-tunes seperating songs from my CD's for any reason. hopefully this is more clear.
    What you want cannot be done. iTunes has its quirks, and the above is the kind of workaround needed to make the media display sensibly on any device. The article I pointed you to has others that you may find useful in future.
    tt2

  • I have a iPad and a iPhone. I am logged into the same Apple ID on both devices. Every time I download something on my phone it automatically downloads on the iPad how do I turn this off?

    I have a iPad and a iPhone. I am logged into the same Apple ID on both devices. Every time I download something on my phone it automatically downloads on the iPad how do I turn this off?

    you need to turn automatic downloads off - its under settings>itunes & app store

  • How can I move all my bookmarks from different Firefox profiles into one area to organize them and then place them into the different Firefox profiles?

    How can I move all my bookmarks from different Firefox profiles (would like to move whole bookmark folders at once if possible) into one area to organize them and then place them into the different Firefox profiles? This is all under one window user account, I am using windows 8.1. Even if you have information on how to do it on a different windows, it may still be helpful. Thanks for any input you have.

    Just a note about the difference between these two things:
    * "export" and "import" use an ancient HTML document format that all browsers can understand. When you import bookmarks, Firefox may place them into an Imported Bookmarks folder, or into Unsorted Bookmarks. This does not displace existing bookmarks, and Firefox does not automatically remove duplicates.
    * "backup" and "restore" use a more comprehensive JSON data file, which contains extra information about your bookmarks (such as tags) not contained in the traditional export file. HOWEVER, a restore completely replaces all existing bookmarks, so the restore feature cannot be used to merge in a set of additional bookmarks.
    Related support articles:
    * [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    * [[Import Bookmarks from a HTML file]]
    * [[Restore bookmarks from backup or move them to another computer]]
    Some users find the disk-based Windows Favorites folder a convenient way to organize bookmarks. If you do, too, and you do not need to preserve tags on your bookmarks, you could export each profile's bookmarks to HTML and import them all into IE11. Organize them in the Windows Favorites folder, then export from IE11 to HTML and import that file into each Firefox profile. See: [http://windows.microsoft.com/en-us/internet-explorer/add-view-organize-favorites].

Maybe you are looking for

  • 11.1.2 bug with iteratorBinding?

    This worked in 11.1.1.5 but in 11.1.2 I get the following error: javax.el.PropertyNotFoundException: The class 'oracle.jbo.server.ViewRowImpl' does not have the property 'shortName'. <af:forEach items="#{bindings.DictionaryVO1.iteratorBinding.allRows

  • Is it possible to use multiple log on IDs with OID?

    First a little background on our environment. Our users currently have two seperate identities on our network. The ID used on our SUN JES (Mail and calendar) is made up of a combination of lastname and initials whereas our Oracle portal users are rec

  • I am no longer able to download pics from an email attachment

    I used to right click the pic and save to on my other program but it is not saving anywhere but under Firefox download and then I am unable to transfer it anywhere

  • Is Java Server Page slower than ASP?

    I wonder If I use web page with database then JSP, ASP - which one is slower than?

  • Let me select which file to use

    Hi, I'm making a video converting automator script. I have everything figured out except for telling automator to let me choose which file I want to convert. How do I do this? Thanks!