HTML5 Widgets - does the onUnload function ever fire?

The documentation for HTML5 widgets (Captivate 6 help) says that we can unload the widget via this function that is called by Captivate:
//To unload your widget onUnload:
onUnload: function()
     /*Unload your widget here*/
I was having problems with the widget and some of these led me to wonder if this function was being called. I have tried on both Ipad and browser setting a breakpoint here and the code I have written never seems to be called.
I have also put in code to write to the console and it isn't happening.
Does anyone know if I'm doing something wrong - do I need to attach an event handler to the captivate object - I had assumed it would just be called in the same way as onLoad.  If not, does anyone know how else I might intercept the unloading of the widget (give the documentation warns against trying to do it by attaching to native onunload events)?  This is becoming an urgent problem for me so I would be hugely grateful for any advice.

I tried attaching to native onunload events and had some problems making it work.  It may have been my implementation, but I couldn't attach to onunload and have my widget still in existence to handle it.  In case it is useful for others what I ended up using, and it seems to do the trick, is attach to Captivate's Slide Exit Event - which worked for my case but maybe not for all: 
this .eventDisp = this.movieProps.eventDispatcher;
this .eventDisp.addEventListener(this.eventDisp.SLIDE_EXIT_EVENT, this.onExitSlide, this); 

Similar Messages

  • In Mac's PAINTR application, what exactly does the "Splash" function do?

    n Mac's PAINTR application, what exactly does the "Splash" function do?

    You might also post your question over in the Mac App Store section of the Community, where you might have a better chance of running into someone else using the Paintr App.
    Mac App Store: Apple Support Communities
    Dennis

  • Does the bluetooth function work with the scanner function on my Photosmart C5550?

    I have a new Dell computer and an HP Photosmart C5550.  I use bluetooth to connect to the print. The printer function works correctly but the computer does not recognize the scanner function. Does the scanner function work with bluetooth?
    This question was solved.
    View Solution.

    Sorry. I hit post before I could elaborate. Not sure what I was thinking. The Bluetooth connection will only support printing. To use the scan feature you will need to connect the printer using a USB or network connection. Hope that explains it a bit better.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Re: In Mac's PAINTR application, what exactly does the "Splash" function do?

    In Mac's PAINTR application, what exactly does the "Splash" function do?  It isn't mentioned in the Toolbox Documentation, but the "Splash" option is given right next to the "Draw" option at the top of the screen in the application itself.

    You might also post your question over in the Mac App Store section of the Community, where you might have a better chance of running into someone else using the Paintr App.
    Mac App Store: Apple Support Communities
    Dennis

  • Does the GPS function work if you are out of cellular & wifi range?

    How does the aGPS function of the iPhone 3G work? Do you have to have a cellular or wifi connection to be able to get a location fix, or will GPS satellite signals-only be sufficient?

    Question?
    Answer.
    If you don't have EDGE, or 3G, how is the iPhone MAP app going to download the map?
    It won't, as it can't.
    I don't believe they are built in.
    You believe right.
    This is why Apple needs to let someone build a true GPS app for the iPhone, which you can download the maps to the phone.
    Maybe. But this was not the question. The question was, if the iPhone 3G would be able to find it's location even without WiFi and cellular network. And yes, it would find the location. The question was not if it would be able to display that location in the Maps app.

  • How does the Delta functionality works while updating Infocube from PA

    Hi Gurus
    How does the Delta functionality works when you send forecast to the Info cube from the Planning Area.
    As I have weekly based planning, every week we have to update the forecast into the Cube. If I update  every week into the Cube , then the values are going to append  in the Info cube.
    Shall I create ODS in between the Planning area  and the Info cube .
    (or)
    Any other method ?
    Please Suggest.

    Hi Preetham,
    Data Extraction from planning area to infocube usually its supports for full update only, when u r going to load the data from planning area to cube ,it deletes the previous data and u vil get the fresh data, this is the best method performance wise,
    if u want to use the delta functionality u can go for planning area to Dso, Dso to cube, it vil supports the delta functionality, but it vil degrades the system performance,
    regards
    ravi

  • How does the sync functionality work with large libraries on small devices?

    How does the sync functionality work with large libraries?
    Say I sync 100gb of photos with the new Photos app and turn on sync on a 16gb iphone. Will it fill the device up to 16gb? Can I tell it to limit to xgb so I leave room for music and apps? How does this work? Will it slow down my phone if its trying to sync 100gb across smaller devices?

    "Will the Apple TV now read directly from the Time Capsule?" ATV does not 'read' from the TC. It connects to the Mac and itunes library associated with the Mac. Of course the itunes program can 'point' to a library on the TC. You'll still need to have itunes open and the Mac powered on and not sleeping with the TC mounted to the Desktop to use ATV properly. So bottom line the use of TC just adds one more step to view files on the ATV.

  • Why does the InitVXIlibrary function return -32768 ?

    Why does the InitVXIlibrary function return -32768 ?

    Hello,
    It would be extremely helpful to see a log of what is happening "behind the scenes" with the driver. To do this, you can use a utility called NI-Spy which can be launched from Start >> Programs >> National Instruments >> NI Spy or from the Measurement & Automation Explorer (MAX) utility.
    NI Spy is a Win32 application that monitors, records, and displays National Instruments API calls made by applications. Use NI Spy to quickly locate and analyze any erroneous National Instruments API calls that your application makes, and to verify that the communication with your instrument is correct.
    You can turn the log to file feature on via the Spy >> Options menu in the program. Please attach this log file to this Developer Zone post
    so that we may further help you.
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • I'm using numbers for my students grades. the passing grade is 30 points. what i want to happen is that very students with a grade of less than 30 will have their points it red color. does the IF function can do this? how?

    i'm using numbers for my students grades. the passing grade is 30 points. what i want to happen is that very students with a grade of less than 30 will have their points it red color. does the IF function can do this? how?

    Hi efren
    Conditional format will do this.
    Select the Cells, then Menu > Format > Show Conditional Format Rules
    Regards,
    Ian.

  • Does the makeRequest() function support oauth?

    Hey there,
    I want to use the makeRequest() function with oauth as authorization type. But unfortunately there are no information about the supported authorization types.
    I found a documentation of an open source projekt, which implements a makeRequest() function too. It has the same signature and they use the same structure of parameters including oauth support. So I tried to use this with Streamwork, but it didn't work (at least there is no constant "com.streamwork.io.AuthorizationType.OAUTH").
    Therefore my question ist does Streamwork support oauth for the makeRequest()-function?
    Thanks
    Hendrik

    Its correct to say that we don't have native OAuth support currently. Its on our roadmap.
    I have successfully connected to a 3Legged OAuth type service once when I was doing some POC to connect to Box.net's web service.
    I think what you are looking for is the equivelant of the OpenSocial makeRequest which we don't currently have.
    Can you share your usecase so I can properly prioritize your request?

  • What does the setup() function work?

    i am writing a basic program to make a shape and would like to use the setup function. Can anyone point me in the right direction.

    Can anyone point me in the right direction.No, because I have no idea what class this method is in.
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    There are hundreds of classes. Find the one you're looking for and click on the setup() method. It will tell you what it does.

  • How does the TS_SeqFileSequenceNameExists() function work?

    I am creating a TestStand Sequence file using CVI and would like to know the correct syntax for using the TS_SeqFileSequenceNameExists() function.
    Basically what I'm trying to do is add a sub sequence to my file and if the sequence name already exists, change the name. So the code looks something like this:
    if(!(TS_SeqFileSequenceNameExists(seqFile,NULL,subSequenceName,&myTempVBool)))
    //sub sequence doesn't exist... add it
    else
    //subsequence name already taken, change the name
    Thanks,
    Marek D.

    Hi Marek,
    you're logic is a little out - in your example code you are testing the error, not the bool "myTempVBool"
    so something more like
    (TS_SeqFileSequenceNameExists(seqFile,NULL,sub SequenceName,&myTempVBool));
    if(myTempVBool == VFALSE)
    //sub sequence doesn't exist... add it
    else
    //subsequence name already taken, change the name
    NOTE :
    You need to rename the object BEFORE you try to insert it. Have a look at the help file on
    SequenceFile.InsertSequence where it says about the sequence must not already exist in the file. (Also don't forget to release the clone object when you've finished)
    Have a look at your other question on "How do I change the name of a sub sequence using CVI" , I've included an example there which shoul
    d help you out.
    S.
    // it takes almost no time to rate an answer

  • Does the Timer() function support multithread?

    Hello,
    In my application, there would be more than 1000 conversations to be monitored. I am going to design a woker thread for each conversation to determine the timeout of the communication, so I must using the timer mechanism. Due to just can create (max )16 async timers, so I want to use Timer() in the worker thread. I'd like to know if the function support multithread and if it will not be disturbed in a thread?
    David

    Hi David,
    The 'timer' used by the Timer() function is global and not thread specific. Note that Timer() returns the number of seconds elapsed since the FIRST call to the Timer() function. This is independent of the thread where the FIRST and current calls take place. So, the values returned are kind of a global 'time' since the first Timer() call in your program. I would recommend that you FIRST call Timer() in your main thread before running your other threads and then the other values returned in any thread are the 'seconds' since this call.

  • How does the query function on a Infoset?

    Hi Gurus,
    I have 3 ODS(GL ODS,Purchasing item,Purchasing Schedule Line).I have built an infoset on these ods.
    Now my question is :
    1)When i run a query on the infoset,what does the OLAP processor do?
    The GL ODS is on the left hand side in Infoset and other 2 ODS are being joined with a left outer join.Does this mean that the OLAP processor goes into GL ODs first and then looks for corresponding records (in the Pur ODS) based on the Join conditions.
    Please Advice
    thanks in advance

    Hi Adam/Ashwin,
    sorry for the late reply.I have another question.
    In the same scenario,i have my infoset below a multiprovider and the selection parameters i have chosen are only available in FI-GL ODS.
    Like i have chosen Ccompany Code and Fiscper as the selection parameters on the query,which are available only on FI-GL ods.
    How would the OLAp processor behave in this scenario,please explain?
    Ashwin,when i am using the Infoset the keyfigures are match.its that iw ould like to know how the OLAP processor fnctions?
    thanks in advance

  • Does the Resume Function work in an Aggregator Project?

    I hope this is a simple yes or no question.  If I use the aggregator to publish several SWF's, will i be able to use the resume function that is built into Captivate's TOC settings?

    In my experience no it doesn't.  The Self-paced Learning bookmarking is more designed for single projects, not aggregated projects.

Maybe you are looking for

  • How do i install acrobat xi standard on my mac?

    how do i install acrobat xi standard on my mac?

  • How can I import SMS or MMS messages from android

    Switching my wife from Android to iPhone but want to import here SMS/MMS activity.  I found apps on Android that can export or import text files but I'm not sure how to import those to iPhone.  Is there an App that exists on both platforms that can s

  • Photo Booth - Custom Sound Effect?

    Is there any way I can set Photo Booth to play a custom sound effect each time a photo is taken rather than the default shutter sound? Thanks!

  • Empty folders (from previews) after removing files

    I see that LR still creates a separate folder for every preview, and that all the folders remain on disk even after you've removed images from the library, leaving hundreds or thousands of empty folders behind. On the PC, there is a freeware app call

  • Digital Signature GZIP and base64

    Hello experts, have the following scenario: IDoc -> PI <-> SOAP. However, when the message arrives at the PI, I need to apply a digital signature on it, compact with GZIP format and encoding base64. My PI is version 7.1. Some of you can help me? Than