CpSetValue doesn't work in Firefox and Chrome?

I've made changes in CaptivateMaintimeline.as as suggested by Jim Leichliter in his blog. And I use the following simple htm:
<!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<script src="standard.js" type="text/javascript"></script>
</head>
<body   bgcolor="#F1F4F5">
<center>
<div id="CaptivateContent"> 
</div>
<script type="text/javascript">
   var so = new SWFObject("test1.swf", "Captivate", "924", "557", "9", "#CCCCCC");
so.addParam("quality", "high");
so.addParam("name", "Captivate");
so.addParam("id", "Captivate");
so.addParam("wmode", "window");
so.addParam("bgcolor","#F1F4F5");
so.addParam("menu", "false");
so.addVariable("variable1", "value1");
so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
so.write("CaptivateContent");
</script>
<script type="text/javascript">
//document.getElementById('Captivate').focus();
//document.Captivate.focus();
setCaptivateVariable("username", "Ahmet Cetin");
setCaptivateVariable("useremail", "[email protected]");
setCaptivateVariable("userid", "58345");
document.getElementById('Captivate').focus();
document.Captivate.focus();
//document.reload;
//JBL:  Custom Function to set Captivate Vars via Javascript
function setCaptivateVariable(myVariable, myValue)
//alert(myVariable + ": " + myValue);
//alert("");
document.getElementById('Captivate').jim_cpSetValue(myVariable, myValue);
</script>
</center>
</body>
</html>
When I run this in IE8, it works almost! perfectly (when I show $$useremail$$ in label in CP4, it shows only [email protected] - one character missing, but anyway, it is not really important for now).
The funny thing is this code doesn't work in Firefox or Chrome. But when I enable any of the alert inside the setCaptivateVariable function, it works also almost! perfectly. Any idea?

Hi Ahmet and welcome to the forums!
When you use a text caption to display variables in Cp, you also have  the option to choose how many characters get displayed.  The default is  15.  If you know your variable will be larger, set the value  accordingly.  Also, document.getElementById('Captivate') works only for  IE.  document.Captivate works for the rest.  Look at the default.htm publishing  template provided by your Captivate install to see how they detect the  browser.  You can do it their way, but I prefer using jQuery to do the  browser detection.  It's cleaner and easier to implement.

Similar Messages

  • Bug? Mouse wheel doesn't work on Firefox and Chrome when added an application skin

    I added a customized skin to make the background of Flex to transparent. The skin is created by the "new file wizard" and only changed the "backgroundRect" 's alpha to "0".
    It works with no problem in IE8.0.6001 and Opera11.6 but doesn't respond to any mouse wheel event in FireFox 11.0 and Google Chrome 17.0.963.79.
    Is it a BUG?
    The flash player's versions are: IE:11.1.102.55; FireFox:11.1.102.55; Chrome:11.1.102.63; Opera:11.1.102.55

    I opened a new Flex project and then tried again. I finally found that it's not a problem of flash but div rendering.
    It seems Firefox and Chorme don't pass mouse wheel event automatically if div layout is set to "absolute".
    Although this is not a Flex issue, any idea of passing that event to flash will be appriciated. I haven't find a way to do it so far :-(
    What I'm doing is editing the "index.tamplate.html" to test. I added a div to contain the div of "flashContent" and set it's style to:
        position: absolute;
        top: 150px; left: 150px;
        height: 250px; width: 250px;
        z-index: 10;
    Another div's z-index is set to 1 to test the overlay effect.
    The reason why I added a div to contain the original div of flash, is I cannot figure out a way to effectively edit the CSS of the "flashContent" div.
    Any help will be thankful!!

  • Adobe Connect Enterprise Server 6 doesn't work on Firefox and Chrome

    Hi everyone,  we are using adobe connect enterprise server 6 recently the layout on Chrome and Firefox looks horrible but it works fine on IE, i have attach a photo of how it look on Firefox, any suggestion what the problem might be, thanks in advance.
    When we get this when we login:
    function showContentWithNav(url, pres, session, cw, ch, noScale, scrollbar, toolbar, status, location, target) {
            if (target == undefined)
                target = "";
    no need for adding session in URL. could be misused or mistakenly sent by user to others.
    and then used to access to webapp by someone.
    -- REMOVING IT   --
    var w, h, l, t;
    if (pres) {
    w = 0.96 * screen.width;
    h = 0.76 * screen.height;
    l = (screen.width - w) / 2;
    t = (screen.height - h) / 2;
    } else if (noScale) {
    w = cw;
    h = ch;
    l = (screen.width - w) / 2;
    t = (screen.height - h) / 2;
    } else {
    if (cw > 0 && ch > 0) {
    if (cw <= screen.width) {
    w = cw;
    h = w * ch /cw;
    if (h > screen.height) {
    h = screen.height;
    w = h * cw / ch;
    } else {
    w = 0.4 * screen.width;
    h = 0.3 * screen.height;
    l = (screen.width - w) / 2;
    t = (screen.height - h) / 2;
    var options = "toolbar=" + toolbar + ",status=" + status + ",location=" + location + ",resizable=1,left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
    if (scrollbar==false)
    options += ",scrollbars=no";
    else
    options += ",scrollbars=yes";
    var win = open(url, target, options);
         * Default showContent window, which displays popup w/ no navigation.
        function showContent(url, pres, session, cw, ch, noScale, scrollbar, target) {
          var toolbar = 0;
    var status = 0;
    var location = 0;
    showContentWithNav(url, pres, session, cw, ch, noScale, scrollbar, toolbar, status, location, target);

    I opened a new Flex project and then tried again. I finally found that it's not a problem of flash but div rendering.
    It seems Firefox and Chorme don't pass mouse wheel event automatically if div layout is set to "absolute".
    Although this is not a Flex issue, any idea of passing that event to flash will be appriciated. I haven't find a way to do it so far :-(
    What I'm doing is editing the "index.tamplate.html" to test. I added a div to contain the div of "flashContent" and set it's style to:
        position: absolute;
        top: 150px; left: 150px;
        height: 250px; width: 250px;
        z-index: 10;
    Another div's z-index is set to 1 to test the overlay effect.
    The reason why I added a div to contain the original div of flash, is I cannot figure out a way to effectively edit the CSS of the "flashContent" div.
    Any help will be thankful!!

  • JQuery/Javascript not working on Firefox and Chrome

    Hi guys, I've had this Jquery/Javascript on my page for a long time. This has stopped working. If the user clicks on buttons on the Apex page, nothing happens.
    It works on IE but doesn't work on Firefox and Chrome. It used to work fine.
    Is there anything I can change to make it work on all 3 browsers?
    Firefox error console shows a syntax error at this point in the script:
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    Please can someone help?
    This is the full script:
    <script type="text/javascript">
    //<![CDATA[
    var itemChanged = false;
    $(document).ready(function(){
    var $items = $(':input');
    var $htmlButtons = $(':button[id]');
    var $templateButtons = $(':button[class]');
    var $allButtons = $($htmlButtons).add($templateButtons);
    $items.change(function() {
    itemChanged = true;
    $templateButtons.attr('data-submitval', function(){
    return $(this).attr('onclick').toString().split('\n')[2];
    $htmlButtons.attr('data-submitval', function(){
    return this.id;
    $allButtons.removeAttr('onclick');
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    $('a').click(function(event){
    if ($(this).children('img[id="P&APP_PAGE_ID._DATE_PICKER_IMG"]').length > 0) {
    event.preventDefault();
    eval($(this).attr('href'));
    window.onbeforeunload = function() {
    if (itemChanged) {
    return 'You have made changes to data on this page. If you navigate away from this page without first saving your data, the changes will be lost.';
    //]]>
    </script>
    Thanks
    Sam
    Edited by: sam on 29-Jan-2013 03:50

    JavaScript doesn't work on any site at all? If particular sites are the issue, or you get specific error messages, please let us know.
    Usually the only two ways to disable JavaScript in Firefox are:
    (1) Options dialog > Content tab<br>
    (2) NoScript add-on (or other security-related add-ons)
    Normally Safe Mode bypasses issues caused by add-on problems or non-default settings, so it's worth considering external issues.
    Does JavaScript work normally in any other browsers you have installed?

  • Safari 5 Blank Page - Works in Firefox and Chrome

    Hi there,
    I have been creating a website in dreamweaver, and the preview in safari doesn't seem to work and it's getting rather irritating. I think it's something to do with javascript, as the main page i put the java above the css and it worked. But the second page only worked when i deleted the css.
    Take a look : http://www.dawoostuffs.com/HTML WEBSITE/test2.html
    It works in firefox and chrome but doesn't seem to load in safari.
    Thanks.

    Sure
    you've got two of these...
    <!--
    (start of a comment)
    but only one of these
    --> (end of a comment)
    so it seems Safari thinks the entire page is made of two comments, with a missing end tag - comments don't display - so we see nothing.
    Camino or Firefox, say - has the common sense to think that you (or Dreamweaver) probably made a mistake.

  • Site can't be viewed with IE, works with Firefox and Chrome

    I have a family site that works fine with Firefox and Chrome, but with when we created a new page and uploaded it, it can't be viewed with IE.
    http://www.thetravelintexans.com/states.htm was modified to add the very last picture in the last row, it was uploaded and works fine.
    If you click on the last picture Andrew at Disney, it takes you to this page http://www.thetravelintexans.com/AndrewsDisney.htm .  This page acts like it is loading in IE, but quickly says Done at the bottom of the screen, but it is blank.  The source code can be viewed, but no detail of page at all.  Again, it works fine with Firefox and Chrome.
    I am using Dreamweaver CS4.
    Thanks for any hints.
    Fred Blair

    IE does get a bit anxious when it does not have DOCTYPE to work to. It tends to fall back into a quirks mode and behave irrationally. Makes me think of myself when I do not have goalposts to aim for.
    Solution, merely give your pages a valid DOCTYPE and all is well. For more info see here http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.thetravelintexans.com%2FAndre wDisney.htm
    Gramps.

  • Why doesn't work in Firefox and IE?

    We made a site by Edge, it does work in Chrome and Safari but not on Firefox and IE, need a help to fix that!!

    The Alt attribute isn't meant to show as a tooltip on hover.<br />
    The Alt attribute is meant to show if the image isn't or can't be displayed.<br />
    The title attribute is meant to show if you hover an image or link.<br />
    If there is no title attribute, but there is an alt attribute then IE will show the alt attribute as a tooltip.<br />
    Firefox doesn't do that, so if the title attribute is missing then you do not see a tooltip if you hover an image or link.<br />
    * http://www.w3.org/TR/html401/struct/global.html#title title
    * http://www.w3.org/TR/html401/struct/objects.html#alternate-text
    So if you add title="Smiley face" then Firefox will display the tooltip.
    <pre><nowiki><img src="smiley.gif" alt="Smiley face" width="42" height="42" title="Smiley face" /></nowiki></pre>

  • How can I get version 3 of Firefox. One web site that I need to use monthly hasn't upgraded their software & it doesn't work on Firefox, Google Chrome or Internet Explorer

    Up until two months ago I was able to access this one web site (www.melaleuca.com). It is a site that I order from monthly. When I type the address in I get a screen saying "the connection was reset while the page was loading". I called their tech support & of course it's never their fault, it must be my computer! NOT! I go on financial trading and banking web sites that are super crypted, so it's not my computer. The tech support said that their web site only works with Firefox 3.0. I told them that was dumb! My other theory is that one of those insidious "upgrades" that Microsoft is always doing changed something, but they're never going to admit to it. I can access the web site on my iPhone, but that is tedious. Help!

    I'm sorry I don't have an answer to your problem, but I wrote to them also to get back the old Firefox, where Google was there. I lost one of my toolbars with certain
    bookmarks, this is a major headache. If you get any info. I would like it if you could let me know and I will do the same. [email protected]

  • SVG displaying issue when textpath is refering to an id - working in Firefox and Chrome

    So I found a bug in the latest Internet Explorer. You can see it in this fiddle:
    http://jsfiddle.net/5uc17jwr/21/
    Works great in Chrome and Firefox
    but does not show all text elements in Internet Explorer. So the question is why are
    just 2-3 words displayed?
    There is no reason for that. The lines are no where negative and also the 3. oder 4. works is like all the others.
    I found something that said the size needs to be 100% or so, but that did not work.
    So how can I get it working on the IE11?
    Thanks

    Hi,
    re: http://fiddle.jshell.net/5uc17jwr/21/show/
    at a guess, I would suspect that you have one too many commas(,) in your jsen variable...
    eg.
    var foo={'name':'river1','name':'river2','name':'river3',,'name':'river5','name':'DeNial',};
    Using your browsers developer tool console compare the string of currentmap (type currentmap in the console tab)
    this (ignoring exogenous commas) is a known 'feature' of the JSON parser.
    Regards.
    Rob^_^

  • Gmail doesn't work in Firefox and it constantly freezes up.

    I have been getting the type error can't access dead object since version 14.01. Since upgrading I have had nothing but problems with Firefox. # times i have reverted back to 14.01 to get it to work with some semblance of consistency. I upgrade every time a new version become available but the problem doesn't go away.
    I finally tracked the problem to Gmail. I only get the error when I try to open Gmail. Also Firefox is running like a pig since 14.01.
    Constantly freezing up, getting the not responding message. Sometimes I just can't move my mouse for a minute or so.

    I have done the safe mode thing to no avail.
    I will try the other stuff.
    Ever since i moved from 14.01 through the various versions to 18, I have had problems with Firefox. It is very slow and lots of time I get a Not Responding message.
    I notice this error only happens when i access Gmail. I also notice that when I am in Google images, my Firefox really slows down and it also crashes a lot as the page of google images tries to load.
    It seems all my Firefox problems have a tie in with Google.

  • Presenter published to HTML5 and SWF works in Firefox and Chrome but not in IE 11

    I was under the impression the IE 11 could handle HTML 5.

    Could you please let us know the exact issue you are facing while playing the HTML5 content on Internet Explorer 11. Which version of Presenter you are using ?
    To View the HTML5 content on desktops and laptops you need the following browsers.
    • Internet Explorer  10 or later
    • Firefox 4.x or later
    • Chrome latest
    • Safari 6.0 or later
    Regards,
    Rajeev.

  • Adobe Flash Player Working in Firefox and Chrome but not in Internet Explorer

    I've already install - uninstall (many times) but it didn't work in internet explorer. What's happening???
    Please help..

    Please read this:     http://forums.adobe.com/thread/657743  
    Thanks,
    eidnolb

  • My flash doesn't work in firefox & chrome

    Hello people
    I have flash cs4 installed on my computer(w7) and I'm using iweb to build a website for my test. I have problems getting flash to work with Firefox and Chrome, but with Internet Explorer and safari, the flash work fine. this is the URL to te site  www.patricktest.info
    Thanks in advance to anyone that helps me.
    Patrick

    Hi Ned
    thanks for your response.
    I'm  using iweb to build my site and this is the code I use to add flash on my page.
    and also I'm using godaddy to host my site and my swf file have been upload into my hosting account.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="200" height="200" align="middle"> <param name="movie" value="http://www.patricktest.info/flash/pub 02.swf"> <param name="allowScriptAccess" value="always"> <embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="200" height="200" align="middle" src="http://www.patricktest.info/flash/pub 02.swf" allowScriptAccess="always"></embed></object>
    thanks
    Patrick

  • Iweb sete ( flash doesn't work in firefox & chrome )

    Hello people
    I have flash cs4 installed on my computer(w7) and I'm using iweb to build a website for my test. I have problems getting flash to work with Firefox and Chrome, but with Internet Explorer and safari, the flash work fine. this is the URL to te site www.patricktest.info
    Thanks in advance to anyone that helps me.
    Patrick

    Hi Roddy
    thanks for your response.
    I'm using iweb to build my site and this is the code I use to add flash on my page.
    and also I'm using godaddy to host my site and my swf file have been upload into my hosting account.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0, 0" width="200" height="200" align="middle"> <param name="movie" value="http://www.patricktest.info/flash/pub 02.swf"> <param name="allowScriptAccess" value="always"> <embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="200" height="200" align="middle" src="http://www.patricktest.info/flash/pub 02.swf" allowScriptAccess="always"></embed></object>

  • Richtextbox tools bar menu is not display for Firefox and chrome. Any idea why this is happening?

    Hello,
    I have added RichTextField in custom webpart. I have added tag like below
    <SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10" RichText="true"  />
    We are able to see Richtextbox tools bar menu in IE browser but it's not working for other browser like chrome and Firefox.
    Can anyone suggest us why this is happening?
    Any help would be appreciable.
    Thanks,
    Lovkesh Patel

    Hi,
    According to your description, my understanding is that the richtextbox tool bar menu not display in non_IE browser.
    The richtext box not supported in Non-IE browser, it leads to the issue.
    Here are some similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c6482efb-72e1-4536-a3cb-153d838744a4/sharepoint-rich-text-editor-not-working-in-firefox-and-chrome
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8133e762-d996-4672-a176-aa37f45c46c0/sharepoint-text-control-with-rich-text-edit-tools-on-ribbon
    Best Regards
    Jerry Guo
    TechNet Community Support

Maybe you are looking for

  • Ipod Nano (1st Gen) no longer connects at usb 2.0 speeds

    I have had my nano since it was released almost 2 years ago. When I got it, it connected to my computer (running Win XP) at usb 2.0 speeds, however about 5 months ago, it stopped connecting at this speed and only connected at 1.1 speeds causing very

  • Protecting the attribute value from getting reset!

    Hello all, I have attached a custom drop down search help to the attribute "SERVICE_UNIT_NAME" in the "BTPARTNERSET" context node. The drop down list contains a blank entry as well as a couple of other entries, I have placed a create object statement

  • WebUtil AS_TO_CLIENT Problem

    <9iDS 9.0.2 RedHat 8.> I am running a procedure from a shared library, pretty much copied from Frank Nimphius' RUN_REPORT_OBJECT_PROC procedure. This library, and the WEBUTIL library, as well as the WEBUTIL object group is attached to my form. If I c

  • Why $(dirname $0) not point my application to the right place?

    Dear all, I have a script file "myApp.sh" in a specific directory, say "/usr/myApp/bin". JDK is installed under "/usr/myApp/JDK". The script has the content as #!/bin/sh binDir=$(dirname $0) ${binDir}/../jdk/bin/java -classpath ${binDir}/../lib/myApp

  • Kernel 2.6.27 and ipw4965 problems

    I am not 100% sure, but think it's after upgrading the kernel to newest version (see subj), i having troubles with my wireless network, using the ipw4965 module. if i'm downloading for full speed (20Mbit) over about 5 mins the wifi stalls, and cannot