Send cpQuizInfoTotalCorrectAnswers to javascript

Hello Captivate users
I haven't found anything useful about this:
I got a problem with a javascript function within captivate.
My aim is the following: If the user enters the last slide of
a quiz, a javascript function (On enter Slide: Execute Javascript)
sends his points/sum of correct answers directly to a database.
I have built a javascript function that stores the results of
a captivate quiz into our database:
storeresults(correctanswers,totalanswers )
"correctanswers" and "totalanswers" are the two variables i
need for this function
Now all i have to know, how to get the Captivate Variables
into this function
I know that Captivate has these Variables:
cpQuizInfoTotalCorrectAnswers
and cpQuizInfoTotalQuestionsPerProject (Which is not that
important, because i can type in a fixed value there)
How do i get these variables into the javascript?
As I mentioned: I would really prefer to only put one
javascript into the On Enter Slide Execute Javascript window and
not into the html.
Can you help me
Thanks
captiware

Update:
I got the value of the QuizInfoPointsScored system variable to pass out to an alert box in JavaScript .. and to a query string in an ASP page, but no luck getting it into the form so far.  But THIS close to having this solved.
If this helps anyone else .. here is the JavaScript that I used:
In Captivate - button value is OnSuccess - send to JavaScript and in the box:
updateScore("score");
and on the html page that houses the movie - goes below the focus portion of the function that Captivate writes:
<script type="text/javascript">
        document.getElementById('Captivate').focus();
        document.Captivate.focus();
        var score = "";
        function updateScore(score) {
            score = getCaptivateVariable(score);
            alert(score);
            window.location = "sendscore.asp?score=" + score;
        function getCaptivateVariable(score) {
            return document.getElementById('Captivate').GetVariable('cpQuizInfoPointsscored');
    </script>
Now to get it into a form to insert it into the database.  I have done this before with the email function .. but that doesn't work with my wonky navigation but since I have a value coming out of the movie (finally!) the rest should be doable.
Nancy

Similar Messages

  • Sending and parse javascript object variable to java variable

    can anyone help me how to send and parse javascript object variable from client to java variable on servlet. Here is what i mention about:
    suppose i have object variable var_js with it's properties:
    <script>
    var var_js = {
    id: 'var_js1',
    name: 'this is var javascript',
    allow_value_type: ['int', 'string', 'object']
    </script>
    /* after processing javascript object to java var, that i hope you guys may help me, it's java var (var_java) become something like*/
    var_java.id = "var_js1";
    var_java.name = "this is var javascript";
    var_java.allow_value_type = {"int", "string", "object"}

    You could have this html page:
    <html>
    <script>
    var var_js = {
    id: 'var_js1',
    name: 'this is var javascript',
    allow_value_type: ['int', 'string', 'object']
    function send()
    document.getElementById("id").value = var_js.id;
    document.getElementById("name").value =var_js.name;
    document.getElementById("allow_value_type").value =var_js.allow_value_type;
    document.form.submit();
    </script>
    <form name="myForm" action="http://localhost:8080/servlet/myServlet" method="post" >
    <input id="id" type="hidden" value="">
    <input id="name" type="hidden" value="">
    <input id="allow_value_type" type="hidden" value="">
    <input id="cmdGo" type="button" value="Button" onClick="send()">
    </form>
    </html>
    Then have a servlet like this:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class myServlet extends HttpServlet {
    public void doPost( HttpServletRequest request,
    HttpServletResponse response )
    throws ServletException, IOException
    String id = request.getParameter("id");
    String name = request.getParameter("name");
    String allowed_value_type = request.getParameter("allowed_value_type");
    Var_java var_java = new Var_java(id,name,allowed_value_type);
    //and have you java object
    class Var_java
    String id;
    String name;
    String allowed_value_type;
    public var_java(String id,String name,String allowed_value_type)
    this.id=id;
    this.name=name;
    this.allowed_value_type=allowed_value_type;
    well...something like that i think.
    Hope it helps.

  • Problems sending text from JavaScript to dynamic text box

    For reasons which I won't bore you with, I'm trying to send
    text from a JavaScript to a dynamic text box in Flash. I've just
    spent all day wondering why I can't get it to work, despite
    following web guides to the letter. Finally I discovered that I'm
    not actually doing anything wrong and everything works perfectly -
    as long as it's online. It won't work at all locally or from the
    network.
    The problem is that this is for learning material which will
    be deployed both online and on CD, so it won't always be running
    from a webserver. Has anybody got any ideas a) why this is
    happening, and b) what I can do about it?
    Cheers
    Marc

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    This is a good tutorial on using JSP pages with JavaBeans.
    Your JSP page can have all the standard HTML tags and a bean can be set to retrieve any values from form fields upon a submit.
    At that point your bean properties are set and your Java application can use that data for whatever processes you wish.
    It's really quite simple once you get the hang of it! ^_^
    Message was edited by:
    maple_shaft

  • Tree Sending Data to JavaScript - Help!

    I am trying to call a function in JavaScript and apss a parameter to it. The code I have below is not working. The label I have in HTML always says undefined after I call the ExternalInterface function in my mxml function. Can someone please take a look and tell me what I am doing wrong?
    mxml code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
       width="404" height="356" preinitialize="init()">
      <mx:Script>
        <![CDATA[
          [Bindable]
          public var treeData:Array = new Array();
          public function init():void{
            var tmpObjectGrains:Object = new Object();
        var tmpObjectDairy:Object = new Object();
        var tmpObjectFruits:Object = new Object();
        var tmpObjectMeats:Object = new Object();
        var tmpObjectNuts:Object = new Object();
        tmpObjectGrains['label']="BOC";
        tmpObjectGrains['children']=[{label:'Line 1'},
                                         {label:'Line 2'},
                                         {label:'Line 3'},
                                         {label:'Line 4'}];
        treeData.push(tmpObjectGrains);
        tmpObjectDairy['label']="TOC";
            tmpObjectDairy['children']=[{label:'Line 10'},
                                        {label:'Line 20'},
                                        {label:'Line 30'}];
        treeData.push(tmpObjectDairy);
        tmpObjectFruits['label']="SLOC";
    tmpObjectFruits['children']=[{label:'Line X'},
                                         {label:'Line Y'},
                                         {label:'Line Z'}];
            treeData.push(tmpObjectFruits);   
         public function jsPassData(event:Event):void
         if (ExternalInterface.available)
             ExternalInterface.call("PassData", treeView1.selectedItem);
             lblMessage.text = "Data sent!";
           else
             lblMessage.text = "Error sending data!"
       ]]>
    </mx:Script>
      <mx:Panel id="pnlMain" x="0" y="0" width="404" height="356"
         layout="absolute" title="JavaScript Test">
         <mx:Tree id="treeView1" x="0" y="0" dataProvider="{treeData}" labelField="label" change="jsPassData(event);" width="268" height="219"></mx:Tree>
        <mx:Label x="276" y="22" id="lblMessage"/>
      </mx:Panel>
    </mx:Application>
    JavaScript function:
    <script language="JavaScript" type="text/javascript">
    function PassData(data)
      if(person == null)
        alert("Select a line");
      else
        document.getElementById('TreeView').innerHTML = data.label;
    </script>

    I have tried sending an object or just simple text and still cannot get the data through....
    It seems as though I need to know how to call which item is selected in the tree and how to receive it in JavaScript.

  • Sending mail via Javascript.

    It is possible to send mail via a Javascript. If so can anyone support me with the code to do so.

    you use the Windro$$ scripting host, and use an ActiveXObject to access the Outlook (not express) poroperties.
    I used to do them a lot because they save me time... all automated is always better.
    For example, here is a script that changes the read-only, etyc file properties on a windro$$ box. (I used it when copying CDs)
    /* Changes the file attributes in a batch of files starting in
    * the current directory and progressing according to parameters
    /*  LOGIK:
        -get the path to a file in folder
            change attribute of file/dir.
            repeat until there are no more files
                go to next folder
                start again
    *                     VARIABLE PARAMETERS                      *
    * includeSubDirectories {true | false}                         *
    *     Should the subdirectories' files be changed too?         *
    * numberOfLevelsDeep {0 | 1..99999999999}                      *
    *    The number of levels of subdirectories that should be     *
    *    affected (0 = all)                                        *
    * onlyFilesWithExtension {"" | "extension" | ["extension",     *
    * "list"]}                                                     *
    *    Only the fies with this extension are to be changed       *
    *    ("" = all, no regexp) (arrays can be used ["htm", "html", *
    *    "gif", "jpg", "jpeg"])                                    *
    * NewAttributes:                                               *
    *   readOnly {true | false}                                    *
    *      Set files to read only?                                 *
    *   hidden {true | false}                                      *
    *      Set files to hidden?                                    *
    *   archive {true | false}                                     *
    *      Set files to archive?                                   *
    *   system {true | false}                                      *
    *      Set files to system files?                              *
    var includeSubDirectories  = true;
    var numberOfLevelsDeep     = 0;
    var onlyFilesWithExtension = "";
    var NewAttributes = {
        readOnly : false,
        hidden   : false,
        archive  : false,
        system   : false
    //MAIN FUNCTION
    function main(){
        chmod(path, 0, numberOfLevelsDeep, includeSubDirectories);
    //OBJECTS
    //FUNCTIONS
    // This arguments are here just to pass information around during
    // runtime
    function chmod(dir, browseNumber, levels, subdirs){
        //If the number of levels deep has been reached and
        //the number of levels is not 0 then end
        if(browseNumber > levels && levels != 0){
            return;
        }else{
            browseNumber++;
        //get directory as a folder object
        dir = FSO.GetFolder(dir);
        var FILES = new Enumerator(dir.files);
        var DIRECTORIES = new Enumerator(dir.subFolders);
        for(; !FILES.atEnd(); FILES.moveNext()){
            try{
                //Change file settings
                var currentFile = FSO.getFile(FILES.item());
                //if we have an extension array...
                if(extensionIsArray){
                    for(var i in onlyFilesWithExtension){
                        if(onlyFilesWithExtension[i] == ""
                        || FSO.getExtensionName(currentFile).toLowerCase(
                        ) == onlyFilesWithExtension.toLowerCase()){
    changeAttributes(currentFile);
    break;
    }else{
    if(onlyFilesWithExtension == ""
    || FSO.getExtensionName(currentFile).toLowerCase(
    ) == onlyFilesWithExtension.toLowerCase()){
    changeAttributes(currentFile);
    }catch(error){
    WSH.popup("Unable to change file '" + currentFile + "'\n" + error.description, 0);
    for(; !DIRECTORIES.atEnd(); DIRECTORIES.moveNext()){
    if(subdirs){
    chmod(DIRECTORIES.item(), browseNumber, levels, subdirs);
    changeAttributes(DIRECTORIES.item());
    }else{
    return;
    function changeAttributes(filename){
    var err = "pagefile.sys";
    if(("" + filename).substring(("" + filename).length - err.length, ("" + filename).length).toLowerCase() == err){
    return; // The file is the virtual memory buffer... ignore!
    //Try to use the filename as if it was a file.
    //If operation fails, then we have a folder.
    //In either case the change of properties should work.
    try{
    filename = FSO.getFile(filename);
    }catch(error){
    filename = FSO.getFolder(filename);
    //Change the file/folder attributes if necessary
    for(var i = 0; i < 4; i++){
    if(filename.attributes & modes[i]){
    if(!newca[i]){
    filename.attributes = filename.attributes - modes[i];
    }else{
    if(newca[i]){
    filename.attributes = filename.attributes + modes[i];
    //CONSTANTS
    var FSO = new ActiveXObject("Scripting.FileSystemObject");
    var WSH = new ActiveXObject("WScript.Shell");
    //VARIABLE DECLARATIONS
    //geth the location of the script
    var path = FSO.getParentFolderName(WScript.scriptFullName);
    //If this is an array, element 0 will not be undefined
    var extensionIsArray = onlyFilesWithExtension[0] + "" != "undefined";
    //Convert object to usable array
    var newca = [NewAttributes.readOnly, NewAttributes.hidden, NewAttributes.archive, NewAttributes.system,];
    //[readOnly, hidden, archive, system]
    var modes = [1, 2, 32, 4];
    //changeAttributes("c:\\autoexec.bat");
    //Go!!!
    main();
    dave.

  • Firefox 18 Beta. Javascript is activated. Flash Player, sends error that javascript in NOT activated and won't play, or install uptdate.

    I'm running Windows 8 Pro. Flash Player worked in the past, with Windows 7, intermittently, mostly working.
    Now, javascript is checked, as has been, only in the last couple months, even before Windows 8, Flash Player sends the error message that javascript is NOT enabled. All my windows settings the same as before when it worked.
    I'm running the latest release of Norton 360, for a firewall, virus protection etc. Which I was running before this error began. Please help

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • How to send xml to javascript from flex?

    Hello,
    I am using Flex Builder......I read blogs and wonderful tutorials on adobe website. But I found that I can only have data from Flex to script placed within main.template.html file.....when i tried to get same data by in my other .html or .aspx page, it did not work. Another thing I noticed in following tutorial
    http://blog.flexexamples.com/2008/03/09/calling-javascript-functions-from-your-flex-applic ations-using-the-externalinterface-api/
    is that we placed <iframe> in our html page to host flex object instead of using <object> tag etc.
    Please just let me know how to do very same thing as defined in tutorial but by hosting out flex object using <object><embed> tags etc and how to get data into our .html or .aspx page rather putting javascript (to receive data) in main.template.html file generated by Flex Builder...???

    Thanks for replying,
    Now I am facing another problem....I have added a script tag in index.template.html file that also contains other useful code used in my aspx page. I wanted to have that reply on my aspx page. So I placed all the script in a Core.js file and also the recieving method from flex in same Core.js file. I thought this way i will be able to access data coming from flex project to my aspx page. But something strange is happening, when i run .html file in bin-debug folder it fires receiving method placed in Core.js........but when I host that flex project .html file in my aspx page, it is not firing method. And also not firing when I run .html in bin-release folder....what am I doing wrong?

  • How to send bulk email to contacts stored in SharePoint 2010 lists

    How do I send a group email to contacts stored in SP2010 List? I have a very large Customer List with various categories(supervisors, employees..etc). I would like to filter the list(say all supervisors) and send them an email directly from sharepoint?
    Thanks
    Cec
    nothing for members to see

    You can send email from javascript in an content editor web part or HTML Form webpart  (if someone is doing this interactively in the browser AND they have an email client installed) by changing the current page ref to a mailto: reference.
    location.href="mailto:"+emailTo+emailSub+emailBody;
    var emailSub = "?subject=xxxxx";
    var emailBody = "&body=xxxxx";
    That will pop up an email window. Build up the emailTo by using Javascript/JQuery to pick up selected people on the page, or all rows on the page, or use something like SPServices or web service calls to pick up all items in a specific view. Depends totally
    on how you want the UI to work. Not sure I'd do this on an external facing SP site since you wouldn't want any emails addresses in the clear to harvest, but inside a company intranet should be fine.
    For example, you could read all records in the Supervisors view, build up the emailTo var with the correct addresses or names that your email client needs, then set location.href to the correct mailto: link.
    Robin

  • How to send BULK email into INBOX using ASP

    Dear Gurus,
    I am using GOMAIL to send newsletter to 2000 of my subscribed
    users. but no
    one is getting their emai intheir inbox
    Only users other than yahoo,hotmail,rediff,gmail are getting
    in their inbox
    I want to know how can I make sure that users who has hotmail
    and yahoo
    accounts also get my newsletter into their inbox cos
    currently it goes to
    their JUNK email or bulk email folder.
    I know lots of companies who send newsletter to my HOTMAIL
    inbox.
    Please suggest as this is very important

    You can send email from javascript in an content editor web part or HTML Form webpart  (if someone is doing this interactively in the browser AND they have an email client installed) by changing the current page ref to a mailto: reference.
    location.href="mailto:"+emailTo+emailSub+emailBody;
    var emailSub = "?subject=xxxxx";
    var emailBody = "&body=xxxxx";
    That will pop up an email window. Build up the emailTo by using Javascript/JQuery to pick up selected people on the page, or all rows on the page, or use something like SPServices or web service calls to pick up all items in a specific view. Depends totally
    on how you want the UI to work. Not sure I'd do this on an external facing SP site since you wouldn't want any emails addresses in the clear to harvest, but inside a company intranet should be fine.
    For example, you could read all records in the Supervisors view, build up the emailTo var with the correct addresses or names that your email client needs, then set location.href to the correct mailto: link.
    Robin

  • How to send bulk texts to email

    How can I sent a year or more worth of stored texts to my email to print out without have to take a picture of each text?
    Thanks
    Maybo12

    You can send email from javascript in an content editor web part or HTML Form webpart  (if someone is doing this interactively in the browser AND they have an email client installed) by changing the current page ref to a mailto: reference.
    location.href="mailto:"+emailTo+emailSub+emailBody;
    var emailSub = "?subject=xxxxx";
    var emailBody = "&body=xxxxx";
    That will pop up an email window. Build up the emailTo by using Javascript/JQuery to pick up selected people on the page, or all rows on the page, or use something like SPServices or web service calls to pick up all items in a specific view. Depends totally
    on how you want the UI to work. Not sure I'd do this on an external facing SP site since you wouldn't want any emails addresses in the clear to harvest, but inside a company intranet should be fine.
    For example, you could read all records in the Supervisors view, build up the emailTo var with the correct addresses or names that your email client needs, then set location.href to the correct mailto: link.
    Robin

  • Send XML and receive binary data via SOAP

    Hi folks,
    following idea (Client-Server-Rendering-Architecture):
    1. Send XML as JavaScript variable via SOAP to the InDesign Server
    2. Attached the XML String to a new document or template
    3. Apply several XMLRules to the docuument
    4. Render to document as JPG|PDF whatever
    5. Transmit the JPG (means binary) via SOAP back to the client
    Following problems raised by implementing this
    1. Build a new XML-Object with new XML() works, but how to attach this object to the document, i've just found importXML() but from file, not string and xmlElements.add() for adding just a tag not a whole xml tree. The importXML() performance from a File object is not that fast ...
    2. How to render a document not to a file with exportFile() but into a variable, object etc.?
    3. How to send a binary object (from an object, a variable or File object if not possible as describe in Q#2) back to the client via SOAP (scriptResult)? Do I have to expand the WSDL (and|or C++ API), any examples?
    Thanks for your help, by the way, the describe scenario is what I expect of a rendering server not more not less ...
    Tino

    for one thing, don't use == to compare strings... You have that all over the place, like:
    if(currentElement=="region") {                                                                                                                                                                                                                                                   

  • Passing data from JAVASCRIPT to SAP database

    Hi Experts,
    Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table.
    Is it possible to pass data from JAVASCRIPT to SAP database table?
    Thanks in advance.
    Regards,
    Arindam Samanta.

    OData services can be one option to achieve this.
    Another possibility can be use of Generic REST enablement with SAP NetWeaver Gateway.
    If you are not considering Gateway at all, then  A JSON adapter like the one mentioned in JSON Adapter for ABAP Function Modules can be handy.

  • Shockwave to Javascript - character encoding issue !

    Hi !
    I have resigned from sending messages from JavaScript to
    Shockwave movie
    as I have found all existing methods unreliable (at worst
    scenario Flash
    blocker is installed and using localConnection trick with
    Flash gateway
    fails).
    But in the consequence, I have to send message (a search
    string) from
    Shockwave to JavaScript.
    That seems easy with the following Lingo:
    goToNetPage("javascript:void myJSfunction('" & aString
    But the problem is with encoding possible non-ASCII
    characters.
    I presume the browser page is using charset=UTF-8.
    Any idea how to properly encode 'aString' so it will preserve
    non-ASCII
    characters while being transfered to JavaScript?
    It is really urgent!
    Rgs,
    Ziggi

    > I have resigned from sending messages from JavaScript to
    Shockwave movie
    I replied a little late to your earlier thread, but take a
    look at
    <
    http://dasdeck.de/staff/valentin/lingo/dir_js/>

  • Need some help with: implement email notification on note board within a page layout (javascript)

    Dear all,
    I have a quite specific issue in which I'm in need of some guidance and help!
    Within our SharePoint I have created a custom page layout. This is a simple page to post some content (news) and a standard Note Board is implemented.
    Every time a news item is placed, this is done by our communication departement, this page with standard layout is placed as a page in a page library. When there are no comments on that particular item/subject I found a solution to replace the standard SharePoint_no_posts-text
    by placing a contenteditor web part in the Page Layout with a reference to a textfile with some javascript in it. This works perfectely.
    The only thing left is that I want to automatically send an email to the contact (which is defined when making the news item) everytime someone posts a new comment. Here is where I need some help!
    We don't really use mysites so I was wondering if someone could tell how I could do this by for example some code (javascript) which I can implement in the Page Layout.
    Can anyone help me?
    Thanks in advance,
    Gr Matt

    Try below code:
    function sendMail() {
    var link = 'mailto:?subject=insert subject line&body=';
    var curntLoc=window.location.href;
    link +=escape(curntLoc);
    window.location.href = link;
    // window.location.href = link;
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9cfe7884-fc9e-4c7c-a44c-f740d2edcafc/sending-email-using-javascript-in-sharepoint-2010
    Also check below:
    http://spjsblog.com/2010/06/16/send-email-with-javascript-with-the-help-of-a-workflow-in-a-dedicated-send-email-list/

  • Javascript code for showing time not working

    hi Gurus,
    i am changing the standard masthead of portal with the following java script. it comes for the first time, there is an auto refresh in the code. it refreshes once and then only the javascript is visible . All other parts of masthead goes off. What is wrong with this code
    <script language="JavaScript">
              var timerID ;
           function tzone(tz, os, ds, cl)
                this.ct = new Date(0) ;       // datetime
               this.tz = tz ;          // code
                  this.os = os ;        // GMT offset
                  this.ds = ds ;        // has daylight savings
                  this.cl = cl ;        // font color
           function UpdateClocks()
                   var ct = new Array(
                     new tzone('TYO: ', +9, 0, 'violet'),
                     new tzone('HKG: ', +8, 0, 'cyan'),
                     new tzone('MIL: ', +1, 0, 'yellow'),
                     new tzone('NYC: ', -5, 1, '#FFAA00'),
                     new tzone('LON: ',  0, 1, 'silver'),
                 new tzone(' LA: ', -8, 1, 'pink'),
                     new tzone('MUM: ', +5.30, 0, 'red')
          var dt = new Date() ;   // [GMT] time according to machine clock
          var startDST = new Date(dt.getFullYear(), 3, 1) ;
          while (startDST.getDay() != 0)
                startDST.setDate(startDST.getDate() + 1) ;
          var endDST = new Date(dt.getFullYear(), 9, 31) ;
          while (endDST.getDay() != 0)
                endDST.setDate(endDST.getDate() - 1) ;
          var ds_active ;         // DS currently active
          if (startDST < dt && dt < endDST)
                ds_active = 1 ;
          else
                ds_active = 0 ;
          // Adjust each clock offset if that clock has DS and in DS.
          for(n=0 ; n<ct.length ; n++)
                if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
          // compensate time zones
          gmdt = new Date() ;
          for (n=0 ; n<ct.length ; n++)
                ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
          document.write('<font face="verdana,arial,helvetica" size="-3" color="#000000">')
          document.write(ct[0].tz+ClockString(ct[0].ct))
          document.write(' ! ')
          document.write(ct[1].tz+ClockString(ct[1].ct))
          document.write(' ! ')
          document.write(ct[2].tz+ClockString(ct[2].ct))
          document.write(' ! ')
          document.write(ct[3].tz+ClockString(ct[3].ct))
          document.write(' ! ')
          document.write(ct[4].tz+ClockString(ct[4].ct))
          document.write(' ! ')
          document.write(ct[5].tz+ClockString(ct[5].ct))
          document.write(' ! ')
          document.write(ct[6].tz+ClockString(ct[6].ct))
          document.write("</FONT>")
          document.close()
                setTimeout("UpdateClocks()",1000);
        function ClockString(dt)
            var stemp, ampm ;
              var dt_year = dt.getUTCFullYear() ;
              var dt_month = dt.getUTCMonth() + 1 ;
              var dt_day = dt.getUTCDate() ;
              var dt_hour = dt.getUTCHours() ;
              var dt_minute = dt.getUTCMinutes() ;
              var dt_second = dt.getUTCSeconds() ;
            dt_year = dt_year.toString() ;
          if (0 <= dt_hour && dt_hour < 12)
                ampm = 'AM' ;
                if (dt_hour == 0) dt_hour = 12 ;
          else
                ampm = 'PM' ;
                dt_hour = dt_hour - 12 ;
                if (dt_hour == 0) dt_hour = 12 ;
            if (dt_minute < 10)
                dt_minute = '0' + dt_minute ;
          if (dt_second < 10)
              dt_second = '0' + dt_second ;
            stemp = ' ' + dt_hour + ":" + dt_minute + ampm ;
          return stemp ;                
    window.onload=UpdateClocks()
    //  End -->
    </script>
      Regards
    Venkat

    Hi Venkat ,
    I guess you are refering to the code at
    http://www.devasp.net/net/articles/display/403.html
    Tel me the requirement so that i can code and send you the javascript.
    thanx
    Pankaj

Maybe you are looking for

  • Closing Stock in Profit and Loss A/C

    Hi Experts, I have an issue regarding Closing Stock Which is normally followed in Indian Accounting System . This Closing Account is Sum of Raw Materials, Finished Goods, Work In Progress. But unfortunately B1 does not maintain two different accounts

  • Movie made in imovie wont open in idvd?!

    so i made a little intro movie for a slideshow with the edit interface in imovie where i just added some text to a black background. i saved it and when i try and add it to idvd it wont open. im not really sure what is going on. the file is a .timovi

  • Can't see tables after a JDBC connection

    Hi, I made a JDBC connection with Progress9.1d database. In the Connections Navigator, I expand the nodes for my database connection and see the following nodes: Synonyms, Tables, Views. However, when I try to expand the "Tables" node, I can't see th

  • Dynamic PL/SQL with LIKE

    Hi everyone, I am having difficulty in creating a query that uses a LIKE keyword for an application in htmldb. eg: DECLARE q varchar2(4000); BEGIN q := 'SELECT * FROM MY_TABLE'; IF :P15_MY_ITEM IS NOT NULL THEN q:= 'WHERE MY_COLUMN LIKE ' '& ' || :P1

  • Close popup in adf

    Hi, I am using Jdeveloper 11.1.1.4 and ADF-BC in my project. In one of my modules,I open a taskflow as a popup. Popup has two buttons Ok and Cancel. On click of cancel,I want to show an adf message and then close the popup. On click of Ok,I directly