Javascript is not working in the published file

Hi ,
I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
I called the function in the button and I written the script in the slide.
Please let us know how to proceed..
Thanks
Sathish BC

This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
var objCP = document.Captivate;
function valText()
var a  = objCP.cpEIGetValue('A');
var b  = objCP.cpEIGetValue('B');
if (b>=5)
objCP.cpEISetValue('B',0);
GetAryVal(b);
objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
function GetAryVal(e)
var a1  = objCP.cpEIGetValue('Txt');
var b1 = a1.split("#");
var c1 = b1[e-1].split("$");
objCP.cpEISetValue('C', c1[0]);
objCP.cpEISetValue('D', c1[1]);
valText();

Similar Messages

  • TOC, Search, Index does not work after hosting published files in Multiscreen HTML5

    I have generated and published the files for multiscreen html5. The default screen layout is Desktop_layout. When I access index.htm directly from the published location, every function and all details work beautifully. However, once I host the published files in IIS, and type the URL in Google Chrome, the screen layout is all messed up. TOC, Index, Glossary and the Search function does not work. Please help/suggest/guide.

    Could this be related to IIS? I host it locally on IIS (8.0 on Windows 8.1 Pro) and on Apache without any problems. But IIS can give trouble if the folder security options are not set correctly, so please make sure the IIS User has full read rights on all directories and files.
    Kind regards,
    Willam

  • MS publisher 2010 to PDF using Adobe Acrobat X Pro produces outlines on some of my images that are not there on the publisher file!

    I am helping a client publish a book through Createspace. We are both using Windows 8 OS. She created her document in MS Publisher 2010. I made the necessary edits to her book, (111 pages) and saved it as a pdf for commercial printing. The resulting pdf puts lines on some of the images. (All the images are jpg format, but it only happens to some.) I have tried creating the pdf in several different ways including print to PDF, Save as PDF, and Save and Send Wizard for commercial printing. I have also tried deleting and reinserting the images. I don't know what else to try. Does anyone have any ideas.
    The image below shows what I mean. On the left is the Publisher File, on the right is the PDF.

    I agree with your statement; even for a particular document, if I choose to "Print on both sides" and then print again immediately after, "Print on both sides" will be deselected.
    However, I'm not sure what you're implying by you're statement. I'm asking precisely why this setting isn't sticky. Acrobat uses a non-standard printer dialog; in the usual dialog I can easily set a defualt duplex setting. I almost always want to print duplex. Why can't I do this by default in Acrobat?

  • Little video player (1 playback component, 3 buttons linked to 3 .flv files) not working in the published html! Why?

    Hey everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version.
    There is a playback component with one of the skins right above the three buttons.
    Here's the ActionScript:
    btn1.addEventListener(MouseEvent.CLICK, vid1);
    btn2.addEventListener(MouseEvent.CLICK, vid2);
    btn3.addEventListener(MouseEvent.CLICK, vid3);
    function vid1(e:Event):void{
    vidPlayer.source = "Video1.flv"
    function vid2(e:Event):void{
    vidPlayer.source = "Video2.flv"
    function vid3(e:Event):void{
    vidPlayer.source = "Video3.flv"
    It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file  via Dreamweaver and in the published .html it doesn't run. What up?

    Oh yeah, all the files are in the same directory.

  • Actionscript not working on the HTML file PLEASE HELP

    Hello,
          I made a website in flash, you can download everything here, because I need this problem fixed by Monday http://www.mediafire.com/?sharekey=e5d0b30598ff413aa0f2f20c509059d9e04e75f6e8ebb871
         The problem is, when I publish the file, and run the html file, the actionscript doesn't work. When I run the project in flash it works perfectly. I do not believe it is the player or anything of that sort that is wrong, although I can not be sure. I've tried this on like 10 different computers, and none were able to load the actionscript. Does anyone know why the actionscript wouldn't be working when I run the html file for the site?
    Please Help, Thank you.

    Hi !
    Don't panic yet
    I think you didn't select the Flash with SFCommand in the HTML tab inside the Template dropdown menu,  that's the reason your Actions Scripts doesn't work in the html view.
    To access hold down CTRL+SHIFT+F12--->HTML tab--->The first dropdown menu at the top
    Hope this solve your problem.

  • WebHelp in RoboHelp 10 - Books are not opening in the published files

    Projects that were published in RoboHelp 9 using WebHelp have not been working properly since upgrading to a 64 bit laptop.  The published project opens fine and the first book will expand but will not collapse.  No other books within the project will expand or collapse.  Any topics not nestles into a book will display properly.  Since then I have upgrade to Technical Communication Suite 4 and am using RoboHelp 10.0.0287 with the same results.  I am using Windows Internet Explorer 8.0.7600.6385.  Projects published in FlashHelp in RoboHelp 9 and 10 have had no issues.  Can you tell me how to resolve the issue?

    Hi, Jane and welcome to the Forums
    A client company I am working with is experiencing something very similar to your situation and I've never seen it before. I don't have a ready answer, but so far, there seems to be a connection to the "Compatibility View" of Internet Explorer (though this has not fixed the problem totally). The trouble is that the "stuck TOC" is not experienced by everyone in the company. Yet, they are all on Windows XP, IE 8 32-bit  (same version). Some end users see the problem, some don't??? (...hate it when that happens...)
    BTW, Rick, this glitch occurs whether viewing "locally" through View Results or delivered by a web server. As if that's not enough, the TOC works nicely with Chrome and Firefox, but not IE! So I'm looking to IE as the culprit and I'm also wondering if it was set off by some Windows Update?
    I will pass along any fixes I find, but meanwhile, can you experiment to see if Chrome or Firefox behave OK (assuming you have these browsers). Also, Jane, do you get any error messages in the Status Bar of IE as shown in the screenshot below?
    Thanks
    John

  • With Lion, I notice the AOL software will not work, yet the mail files still exist. Is there a method I can retrieve these E mails?

    The AOL software, which of course stopped offering support to Apple in 2006 still worked like a charm with Snow Leopard.
    Is there a way to get the E mails which were saved on my my MAC, in AOL?  My Mac is from Feb. 2011, so fairly new.
    Need these E mails, as mucho information.
    Help, please!

    The easiest way would be to install Snow Leopard on an external drive, or new internal partition, and export them from the AOL software itself.
    Alternatively, you could try an app like http://www.weirdkid.com/products/emailchemy/
    I don't have AOL - so I can't speak for it's effectiveness in your situation.

  • The Open URL or File function is not working when I publish as a exe?

    The Open URL or File function is not working when I publish as a exe.  I have tried putting the exe in the same location as the files with no luck.  How do I get the buttons to function properly with a exe file.

    Have you set the Publish folder as a trusted location in Flash Global Security?
    If not, please read this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    It may explain your issue.

  • Javascript function not working in template-based html files

    Does anyone have any insight as to why the following function works only in the .dwt file but not in the related html files?
    *Note: it only works in the dwt file if I change the path of:
    var imgs = new  Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    to
    var imgs = new  Array(../'images/header1.jpg',../'images/header2.jpg',../'images/header3.jpg');
    but with the paths reading correctly (as below) in the html files it still doesn't work...
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    var delay = 7500;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    </head>
    <body onLoad="preloadImgs();randomImages()">
    Any help would be appreciated!
    Andy

    Wow - now I have a real doozy for you. That duplicate function has generated itself all on its own. The script in the template file is:
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    // Comma separated list of images to rotate
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    // delay in milliseconds between image swaps 1000 = 1 second
    var delay = 5000;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    As you can see - no duplication.
    For some inexplicable reason, this is being added in to all the html pages based on the template:
    MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    Which explains why it works in the template file but not in any the html files. Of course, because the code is not in an editable region, I can't remove it manually from the html files. Have you ever heard of code generating itself in this manner? Or how to solve it?

  • My hyperlink is not working in the site I just published in Muse

    My hyperlink just works on the computer where I published my site from a Macbook  Pro 10.6.8  IOS, in Firefox 19.0, please help!  I have imported it into Dream Weaver CS6, but still canno pinpoint the problem, it looks and behaves the same.  The site page that I published is http://www.shamarihairsalon.com/contactappointments.html.  When clients click on make an appointment at Flakes Mill Location the link expires
    Message was edited by: Laquacer Daniel

    Vinayak,
    Thanks for your response as you were the only one to respond,   however this site was redone in Muse, and worked in the previous site (which was not created in Muse) whether the user login or not.  The only one who has sign-in capability is the owner of the account the, hence the salon owner.  Her clients had been using the site before to make appointments...the link recently stopped working after it was published.  Is their anyway around this? such as altering the way Muse create hyperlinks?  Could an anchor be used instead,? How would that work? Just grasping for straws and want eliminate possibilities.
    Thanks,
    Laquacer
    Re: My hyperlink is not working in the site I just published in Muse
    created by Vinayak_Gupta in Adobe Muse Bugs - View the full discussion
    The link https://appointment.bizlinkms.com/?page=appt is to an external site that probably requires a login first in order to access it (and hence the session error). You are able to access that page from a particular machine as you are most likely logged into that site already and hence the cookie exists in your browser that is maintaining the session.
    On a quick look, the site's login page appears to be https://system.bizlinkms.com/
    Nothing to do with Muse though.
    Thanks,
    Vinayak
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5113021#5113021
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5113021#5113021
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5113021#5113021. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Muse Bugs by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • When a pdf file is opened in a tab, the automatic scroll function from the pad does not work in the other tabs, but only for the particular PDF tab.

    The scroll function from the pad/mouse does not work for the other tabs when a PDF file is opened.

    Hi NSHS,
    Have you checked to see if your PDF add-on is up to date? You should take a look at the [[Opening PDF files within Firefox]] Knowledge Base article. There is a lot of good information in there. You should try both of the suggested PDF add-ons to see if that fixes the issue.
    Hopefully this helps!

  • I have Photoshop Elements 9. I downloaded the plug in 6.0 and it works on the RAW files from Canon EOS 60D, but not with Canon EOS 70D. I cannot download higher versions of plug in, because I have Windows Vista and it is not supported.

    I have Photoshop Elements 9. I downloaded the plug in 6.0 and it works on the RAW files from Canon EOS 60D, but not with Canon EOS 70D. I cannot download higher versions of plug in, because I have Windows Vista and it is not supported.

    You could try using the DNG converter 8.7 on Windows vista:
    <Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.7>
    <Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.7>
    You then need to watch this video to get hang of it:
    <Camera Raw: How to use Adobe DNG Converter - YouTube>
    Hope this helps.

  • \n is not working by the time writing text into file ...

    Hi,
    I am reading each line from file and writing into another file ...
    It is writing continously in the file even if i use \n for new line ...
    Why "\n" is not working by the time writing text into file ...
    Here is my code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Test11{
    private BufferedReader data;
    private String line=null;
    private StringBuffer buf= new StringBuffer();
    private BufferedWriter thewriter=null;
    private File file=null;
    private FileReader fr=null;
    private String inputLocation="c:\\test14.txt";
    public Test11(){ }
    public void disp(){
    try {   
    file=new File(inputLocation);
    fr = new FileReader(file);
    data = new BufferedReader(fr);
    while ((line = data.readLine()) != null) {
    buf.append(line + "\n");
    String text=buf.toString();
    thewriter = new BufferedWriter(new FileWriter("c:\\test15.txt"));
    thewriter.write(text);
    buf=null;
    thewriter.close();
    } catch(IOException e) { System.out.println("error ==="+e ); }
    public static void main(String[] args) {
    Test11 t=new Test11();
    t.disp();
    System.out.println("all files are converted...");
    I used "\n" after reading each line .. i want output file also same as input file ... how do i break each line by the time writing into text file .. "\n" is working in word pad but now working in notepad ... in note pad i am getting some thing like rectangle insted of "\n" ....
    Any help please .....
    thanks.

    \n works just fine, and every text editor in the world except Notepad understands that it is supposed to be a line-ending character. You don't have a problem, except in your choice of text editor. If somebody is forcing you to use Notepad then you'll have to output "\r\n" instead.

  • When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.

  • How to save bloger password in firefox 3.6.6 ? common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.

    how to save bloger password in firefox 3.6.6 ?
    common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.
    == URL of affected sites ==
    http://blogger.com

    Some sites like PayPal, Yahoo, Windows Live and bank sites use ''autocomplete="off"'' to prevent Firefox from saving the name and the password.
    If a site uses ''autocomplete="off"'' then look at this article for a bookmarklet to remove that autocomplete attribute.
    http://kb.mozillazine.org/User_name_and_password_not_remembered (bookmarklet)
    http://kb.mozillazine.org/Password_Manager
    See also http://en.wikipedia.org/wiki/Bookmarklet

Maybe you are looking for

  • TS1368 Forgot Security question answers?

    I can't remember my security questions.  My account is now locked.  I must have misspelled them the firt time.  Can anyone help

  • User Exit to Search for Duplicate BP Records

    Hai Guys, I want to use a "User Exit" that gives me a warning message when I am creating a BP with the same name and zipcode which is already presnet in the system. Right now we are not getting any warning messgae and hence we are having duplicate BP

  • Know if work in a ThreadPoolExecutor is finished

    Hi, I have a thread pool which is constructed in the following way: ThreadPoolExecutor myThreadPool = new ThreadPoolExecutor(POOL_SIZE, POOL_SIZE, 5, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>(WORK_QUEUE_SIZE));I'm using the execute method i

  • Replenishment upto max. stock level during SNP heuristics run.

    Hi Experts, As per the requirement from client, we need to configure the setting of replenishment upto max. stock level during SNP heuristics run. I am using below settings in R/3 for achieving the expected results. (R/3 ) MRP1 u2013 Lot size        

  • Drop Down Menus for iWeb: Will They EVER Come?

    I've got several websites that I need to update, and frankly probably rebuild from scratch. I am considering moving them to iWeb. However, the ONLY reason I have not switched over yet is the unavailability of easy WYSIWYG drop down menus for iWeb. It