How to throw a JavaScript alert when connection to LMS is lost?

I've been through all the JS, and I still cannot find a place where I can detect whether or not the connection to the LMS is lost (API).
I can throw an error when it initializes - that's no problem. But I want to be able to throw an alert when the connection is lost while the SWF is playing.
Has anyone done this?
Thanks!

I don't think that there is any "stock" function that does that so you would need to write it yourself.
You could probably achieve it by writing a function that will check for a value in the LMS and if that fails then display your alert. Pick a SCORM field that you are sure contains data and the fetch the data through JavaScript. If it returns a value then do nothing but if it doesn't return a value then display the alert.
Trouble is that you would either need to make the funtion run a timed loop or call it manually from each of your slides (perhaps on slide enter or slide exit).
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets.

Similar Messages

  • How do i recieve email alerts when using find my iphone

    how can i recieve email alerts when find my iphone is used

    You don't, this is a new security measure.
    you can send apple a feed back here http://www.apple.com/feedback/

  • How do you detect url redirects when connecting to a URL

    how do you detect url redirects when connecting to a URL?
    Thanks in advance
    stev

    Hai
    (i) If it a jsp we can get the URL by request object.
    Like
    String url = request.getHeader("Referer");
    u can do it in Servlet aslo by request object variable.
    If this explanation is not ok, Explain ur doubt in more briefed Manner

  • Javascript alert when showing all rows of a huge table ( 2000 rows)

    i've got this problem. I need to show all the rows of a table, i'm using ADF 10.1.3.4.
    What have i done so far?first of all i created a command link
    <af:commandLink shortDesc="Mostra Tutto" id="showAll"
    disabled="#{bindings.findAllVwEntePrmzRefrIter.estimatedRowCount == 0}"
    action="#{backing_editReferenza.onShowAll}"
    />
    In the backing bean i set the rangeSize of the table to -1
    public String onShowAll() {
    Object objShowAll = getSession().getAttribute("showAll");
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb = fc.getApplication().createValueBinding("#{bindings.findAllVwEntePrmzRefrIter}");
    DCIteratorBinding dc = (DCIteratorBinding)vb.getValue(fc);
    int oldRangeSize = dc.getRangeSize();
    dc.setRangeSize(-1);
    int rangeSize = dc.getAllRowsInRange().length;
    dc.setRangeSize(oldRangeSize);
    if ("Y".equals(objShowAll)) {
    getSession().removeAttribute("showAll");
    Integer oldRange =
    (Integer)getSession().getAttribute("oldRangeSize");
    getSession().removeAttribute("oldRangeSize");
    getTable1().setRows(oldRange);
    } else {
    getSession().setAttribute("showAll", "Y");
    getSession().setAttribute("oldRangeSize", oldRangeSize);
    getTable1().setRows(rangeSize);
    return "";
    // AdfFacesContext.getCurrentInstance().addPartialTarget(getTable1());
    Everything runs smoothly, but i have a problem if the table has lots of rows: i get a javascript warning that a script has been running for too long. (The alert goes: "Stop the execution of the script?" the usual javascript alert you get when a script runs for too long)
    What i want to achievt is that, if the table contains a lot of rows, the page takes a lot of time to load, but with no javascript involved (it's just a normal slow page).
    It seems that in some way the rows of the table are fetched by javascript and since the call is synchronous, it trigger the alert.
    This is how i declared the method iterator
    <methodIterator id="findAllVwEntePrmzRefrIter"
    Binds="findAllVwEntePrmzRefr.result"
    DataControl="FePrmzSLESSEJBLocal" RangeSize="10"
    BeanClass="it.ws.sma.prmz.ejb.model.VwEntePrmzRefr"
    Refresh="deferred"
    />
    and this is how i declared the table
    <af:table value="#{bindings.findAllVwEntePrmzRefr1.collectionModel}"
    var="row" styleClass="tableRefr #{backing_editReferenza.tableReferenzeStyleClass}"
    rows="#{bindings.findAllVwEntePrmzRefr1.rangeSize}"
    first="#{bindings.findAllVwEntePrmzRefr1.rangeStart}"
    emptyText="#{bindings.findAllVwEntePrmzRefr1.viewable ? 'Nessuna referenza trovata' : 'Accesso negato'}"
    binding="#{backing_editReferenza.table1}" id="table1"
    banding="row" bandingInterval="1"
    partialTriggers="btnEliminaRefr btnSvuotaPromo btnRemove btnAdd insVeloce">
    has anyone an idea onwhat could i do to have the table load all the rows from the server but withouth the alert?

    Sorry i haven't explain it well...
    the app is used to replicate entire databases, or agrupations of tables, from one database to another and it will have to be vendor independent... I'm trying with DB2, Oracle and MySQL. Later i will test it with more.
    Then I couldn't use vendor dependent SQL neither configuration parameters. Also I prefer to make the import logging the actions: for restoring purposes; maybe the user will have the option but defaults to the ohter.
    I'm thinking about some "strange" query SQL Stardard, like delete from table where (select .... using some kind of counter....

  • Outlook 2010 Certificate Alert when connecting to Exchange 2010 Server

    Hi,
    I am receiving the below security alert when launching a domain joined Outlook 2010 client; 
    The security certificate was issued by a company you have not chosen to trust
    This is a self-signed certificate on the CAS server role which is separate to the Hub and Mailbox.  Unless something is completely screwed, Outlook 2007 against Exchange 2007 had no issues with domain joined machines and self-signed certificates. 
    The following KB article explains the same issue http://support.microsoft.com/default.aspx/kb/2006728 but this is a native Exchange 2010 environment with no previous versions of CAS roles.
    Any help appreciated.
    Cheers

    Hi,
    Yes, when internal user try to use outlook to connect exchange Server, outlook will try to find the e-mail address and exchange server name from AD. After that it will look for SCP and then find the correct the autodiscover server to connect, retrieve settings.
    So during the process of connecting to exchange server, it will have to use autodiscover to connect and retrieve user settings. So certificate regard to autodiscover will cause the issue.
    I’d like to share the process of how internal outlook user connect to exchange server.
    1.    Automatically retrieve e-mail address from Active Directory if domain joined machine.
    2.    Retrieve Exchange Server name if found and store for later.
    3.    Look for SCP objects or SCP pointer objects that correspond to user’s e-mail address, and find the correct Autodiscover server to connect to; then connect and retrieve settings.
    4.    If previous step fails, attempt DNS discovery of Autodiscover XML (allowing for 10 redirects).
    a.    HTTPS POST: https://DOMAIN/autodiscover/autodiscover.xml
    b.    HTTPS POST: https://autodiscover.DOMAIN/autodiscover/autodiscover.xml
    c.    HTTP GET: http://autodiscover.DOMAIN/autodiscover/autodiscover.xml (only to follow redirects, not to get settings)
    d.    DNS SRV lookup: _autodiscover._tcp.DOMAIN (only to follow the redirect the SRV record points to)
    5.    If previous step fails, attempt local XML discovery and use XML found on the local machine if applicable.
    6.    If previous step fails but an Exchange Server name is found in step 2, configure Exchange account based on Exchange Server name.
    7.    If previous step is not applicable, attempt Common Settings Discover, as described in the next section.
    More related information to share with you:
    Security warning when you start Outlook 2007 and then connect to a mailbox that is hosted on a server that is running Exchange Server 2007 or Exchange Server 2010: "The name of the security certificate is invalid or does not match the name of the site"
    http://support.microsoft.com/kb/940726
    Regards,
    Xiu

  • IPhone 4 ios5 I can't hear email or text alerts when connected to a bluetooth headset

    Has there been any solution to this issue yet? It seems to be an iPhone problem as it happens with many headsets. When connected, using A2DP tecnology, it seems that I do not hear any alerts through the headset or the phone- lots of people out there complaining of the same problem. I tried a Jawbone Icon without A2DP and that worked but the incoming sound was terrible. I switched to the Voyager Pro+ and am having these issues now. I will return the Voyager and try what??? What actually works with the iPhone 4 on ios5???

    That is the way it works and has worked since the introduction of the iPhone. Personally I do not know of any device that will send notification tones to the device when any headset is connected, wired or bluetooth.

  • How to give a javascript alert befor doing any insert or update

    Hi,
    Is there any way to give a javascript alert befor doing any insert or update? I want to use default insert/update button.
    Thank you
    Sumita

    just add:
    alert('Updating Record...');
    in the onClick event field for the UPDATE_TOP/UPDATE_BOTTOM button.
    You can do the same for the INSERT_TOP/INSERT_BOTTOM button. Adding javascript code in the event fields will not supersede the default PL/SQL events assigned to those buttons, unless you specifically remove the PL/SQL code (e.g. doUpdate;)..

  • How to solve the noise issue when connecting an electric guitar?

    Hello,
    I own a 15'' MacBook Pro of early 2011, with Lion Mac OS X 10.7.2
    I have an issue when connecting my electric guitar (Guitar Rig 4 LE) via USB & starting the Garageband '11 (ver. 6.0.4). I tried playing with the settings to get around the fuzziness/noise that's produced when the guitar is connected.
    The original software I got with Guitar Rig 4 ALSO had a similar issue, but I solved it by turning down the ''Gate'' volume to get a clear guitar sound. I tried looking for a similar thing on Garageband but no luck. I'm taking the online lessons via Garageband, with all that noise it makes it even harder to learn.
    Hope I made my case clear, and I'm looking forward for any suggestions in this technical problem I'm facing.
    Cheers

    Hey Keith, thanks for your response.
    Well, to be honest I had no idea what that was, so I opened Garageband and looked for that option, and it seems I can't access it during the guitar lessons. I tried exiting the lessons to the main window but the option you talked about under the ''Track'' tab was still faded (i.e. inaccessible).
    Did I misunderstand you or done it wrong?
    The noise even gets WORSE when trying out the Rock Guitar lessons, not so bad on the Basic Guitar & Blues Guitar...
    By the way, I did try the ''Aggregate'' Audio MIDI setup thingy from the utilities to enable both ''Built-in Output'' & ''USB PnP Sound Device (which is the guitar)" and didn't solve the problem.
    Running out of options. Opt for surgery? haha jk

  • How to remove movies from itunes when connected to my ipad 2,

    I ve a question regarding my ipad 2, I ve syncd some movies from my laptop to ipad 2 but nw i have deleted dem frm ipad but wenevr I connect ipad wid itunes it shows me dose movies again and bcz of tht i cant add odr movies. how 2 remove dese movies from itunes to add more movies.

    when the name of the ipad appears in ur itunes click on it. then click on the movies tab that appears next to summary. this is where u need to go to select what movies u want to actually sync to the ipad. if u keep movies selected then they will keep syncing over. if u unselect a movie from this list then it will unsync from the device. click apply at the bottom to save changes and sync.

  • No alerts when connected with bluetooth

    Hello I have a 2013 Hyundai Elantra and a iPhone 5 running iOS 7.  When my phone is connected via Bluetooth and I'm listening to fm or xm radio my phone automatically places my text and email notifications to vibrate

    Hi WetFishStick,
    If you are having an issue with getting no sound through your iPhone's speaker, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to troubleshoot sharepoint with Issues when connecting to SSIS

    I am trying to insert into a sharepoint list with SSIS and am getting an error which is to vague. I am trying to troubleshoot but just don't know enough about sharepoint. I have looked at the log files but there isn't anything there.
    There are also a tonne of options under logging configuration....how would I trouble shoot permission errors, updating/inserting errors through logs or see what messages the connections are generating?
    From SSIS side all I see is:
    [SharePoint List Destination] Error: Error on row ID="1": 0x80070005 - Unspecified Error - Check SharePoint Server Logs if possible.
    [SharePoint List Destination [131]] Error: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors
       at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "SharePoint List Destination" (131) failed with error code 0x80131500 while processing input "Component Input" (141). The identified
    component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the
    failure.
    Any direction would be very very appreciated.

    Hi Caseypruden,
    I think you are using the SharePoint List Destination adapter downloaded from CodePlex, right? From the following links, you should be able to see permissions related error in the SharePoint Log file:
    http://sqlsrvintegrationsrv.codeplex.com/workitem/16301
    https://sqlsrvintegrationsrv.codeplex.com/discussions/279849
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f38d1d14-bf33-4d6d-83c4-2daf0da14697/sharepoint-list-destination-fails-on-a-job-but-manually-and-in-power-shell-runs-fine?forum=sqlintegrationservices
    If you are running the package in BIDS/SSDT, make sure the current Windows user has sufficient permission the SharePoint site to edit the SharePoint list. If you are running the package as a SQL Server Agent Job, make sure the SQL Server Agent Service Account
    or the proxy account has the corresponding permission on the SharePoint site.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How do i stop the alerts when I enter new calendar events

    When I enter a new event in Calendar, it automaticly adds two alerts to it.  One by email and one by text message.  With every event, I have to go back to the event and change both of the alerts to "none".  Going to Preferences - Alerts and "Turn off shared messages in Notification Center", it does not change a thing.  This didn't happen until I started Snow Leopard.
    Any help would be greatly appreciated.

    The Desktop and Screen Saver preference panel has two parts and the Screen Saver section has a slider bar near the bottom: set that to Never (far right).
    You might also want to use the sliders in the Energy Saver preferences, particularly putting the screen to sleep. Set that to the same as the Screen Saver otherwise a yellow warning triangle may appear. These settings are not the best, of course, so you might want to change back when your viewing is finished.

  • How do I stop email alerts when I make an iCal entry?

    Every time I enter anything or change anything on my calendar, an email is sent to my wife with whom I share my calendar. She doesn't like the stream of emails, and I can't figure out how to make them go away. iCal is linked between my iMac, my iPhone and my iPad. And as I say, my wife shares her calendar, and I share mine. Does anyone know the secret formula for making these emails go away?

    You don't, this is a new security measure.
    you can send apple a feed back here http://www.apple.com/feedback/

  • HT4097 how to charge ipad 3 ! when connect usb charge hanged on apple logo !

    and when i want restore to 6.0.1 ===> error 1602 . i have edited host file but The problem remains ! help me

    Are you doing this?
    If you can't update or restore your iPhone, iPad, or iPod touch

  • How to send alert when receiver JMS adapter fails? Please help!

    Hi experts,
       I have the following Asynchronous scenario:
       SAP R/3 -
    >IDOC----->XI>JMS--->BizTalk.
       I am sending IDOC from a given SAP R/3 system to XI. XI then sends the same to BizTalk via JMS adapter. In SXMB_MONI the message is successfully processed as it shows checked flag. But if I see the JMS communication channel status in runtime workbench then there it shows error saying JMS queue user id or password not found.
    How to send this JMS adapter error as alert?
    I also tried configuring alert rule in runtime workbench but still it does not trigger any error.
    I have also verified the alert category and everything is fine with that.
    What could be the problem? How can I send an alert when an Async adapter fails?
    Thanks & Regards,
    Gopal

    Hi! GOPAL,
    Once make sure whther all the below mentioned steps are configured correctly or not ok
    1: First make sure whether you are working on SAP XI or PI 7.1
               a) If XI you need to create Alerts (ALert Category) in CCMS ABAP stack in the
                        Tcode. ALRTCATDEF
               b) Open the alert category/classification definition environment (transaction ALRTCATDEF).
         ensure you are in change mode.
               c) In the group box with the alert classifications, right-click All classifications to open the   
                    context menu, and choose Create.
               d) Under Classification, enter a name for the classification.
               e) Under Description, enter a description of the classification.
               f)  Save your entries.
               g) Then go to RWB-->Go to ALERT Configuation and ADD the RULES to your alert category gor 
         which created there in the abap stack.
    Note Suppose if you want those ALERTS to come to your MAIL then again go to ABAP STACK and go to Tcode.  ALRTCATDEF and select your alert category press FIxed Recepients and there give your SAP XI ID's then  u can see those alerts in RWB-->ALERT INBOX
    Suppoe if you want those to mail then ask the basis team to link your company mail or personal mail ID to your SAP ID.
    2. Supppose if you are working on PI 7.1 Server.
         Only difference is creating Alert Category...Here you can create your ALERT Classification I mean   
         alert caltegory in the ESR (Enterprise Service Repository )
         Software Component >S CVersion>NameSpace-->Alert Category.
         You can configure how u configure there in abap stack such as long and short text every thing 
          except Fixed Receipients you need to give that recepients there only in ABAP STACK.
          what ever ALERT CATEGORY you are creating will reflect there in the ABAP STACK
         even you can Use these alerts Category in BPM --> CONTROL STEP -->Configure here in this step
    You can also reach alerts like this.
    NOTE  Most Important point is You can also view your mails or Alerts in the T Code:: SOST.
    Regards:
    Amar Srinivas ELi

Maybe you are looking for

  • HT4060 My iPad 3 is taking over 12 hours to charge.  Any suggestions?

    It now takes almost 12 hours to charge my iPad 3 using a wall socket as a power souce.  Do I need a new battery?

  • PSE 7 Open Raw Image from Nikon 5100

    I have tried to install a bunch of different plug in's however I was only sucessful with http://www.adobe.com/support/downloads/detail.jsp?ftpID=4582 ... Unfortunately, it is not compatible with Nikon 5100.  Is there another plug in update that I nee

  • Need new power cable for Tecra M10

    Good morning. My Tecra M10 power cable has split (after 4 years use). Can somebody point me to the correct product to order? I have more information if required. Kind regards Thomas

  • Storing the data in the session

    Hi all, I want to know how to store some values (which i get from back end - R/3) in session, so that those are available through out the user's session. If any one has done this earlier, please help me. Regards, Narahari

  • Procedure Problem ORA-20000 / ORA-20001

    Hello, I have problems with the following procedure - in both cases the problem seems to be in line 115 (RAISE;): CREATE OR REPLACE PROCEDURE EFWP."P_BUILD_VOP_ENVELOPE"( paramPlanungId LONG, paramEnvelopeWKTPolygon VARCHAR) AS PRAGMA AUTONOMOUS_TRAN