Dynamic graphc changes in ES2 using Javascript

Hi,
We are in the process of making template documents which our 12 offices will use.
What we initially wanted to do was have a graphic box and a dropdownlist on the front page which would allow the user to select their office and have the graphic change to their office logo. We did this initially with web links to the relevant files and it worked a treat but only on the PC which had ES2 installed.
We then switched to having the graphics stacked one on op of each other and had the Javascript making them visible/invisible but this made the document huge and unweildly, so we shark the pictures as much as possible but now it seems to have stopped even turning the graphics on and off.
We're all a bit confused now.
Does anyone have a way to have dynamic graphics in a LiveCycle document.
TIA
John

Hi John,
Have a look at this example that shows a few approaches to working with images in a form: http://assure.ly/mcFrC6. Part of a collection of examples (http://assure.ly/ozrNSO).
Hope that helps,
Niall

Similar Messages

  • Change shape height using javascript

    Hi, is it possible to change e.g. the height of a Shape using javascript?

    I believe you can do this.
    Once you have the information (variables) that you want to display in the graph, call a javascript function.
    In this function it will ask the CP file for the variables you set:
         cp.cpEIGetValue("m_VarHandle.yourVariable Name");
    you'll have to write a loop to put all of the variable in an array.
    If you are using an LMS you can store and retreive the info there, if not you will have to write the array in a cookie.
    Build a webpage with just a graph. Have that page read the cookie and build the graph based on those variables. Insert the web page into Captivate using the Web Object.
    Worked for me in a simplified version. I also used this tutorial for the graph which is quite fancy (coding.smashingmagazine.com/2011/09/23/create-an-animated-bar-graph-with-html-css-and-jque ry/), there are other pages to build dynamic graphs though.

  • Spot Color change to black using javascript?

    Can anyone help to convert spot color to Black using Javascript in Adobe Acrobat?

    Ok,
    try Action wizard in Acrobat and set below script to execute however you are watching a folder for PDF files.
    var doc=app.activeDocument;
    var pdfSaveOptions = new PDFSaveOptions();
    pdfSaveOptions.pDFXStandard=PDFXStandard.PDFX1A2001;
    pdfSaveOptions.compatibility = PDFCompatibility.ACROBAT4;
    pdfSaveOptions.preserveEditability = false;
    var pdfFile = new File(Folder.desktop + "/test.pdf");
    doc.saveAs(pdfFile, pdfSaveOptions);
    Hope this helps.
    as you will be applying it on a folder, Put all your PDF files in that folder and it will automatically save as you wanted.
    -Kapil Malik

  • Change 3D views with JavaScript code?

    I am looking for a way to change 3D views using JavaScript. I want to obtain similar result as the predefine action (Go to a 3D view) but with code.
    More preciselly, I want to connect items within a list box to different 3D views.
    Any ideas or suggestion would be greatly appreciated.
    Thank you
    Tutorial on how to use the Go to a 3D view action:
    Connecting Document JavaScript to 3D Views (PDF: 2.3M)
    http://partners.adobe.com/public/developer/en/tips/topic_tip3.pdf
    Related topics:
    looking for a way to switch views using Javascript
    http://www.adobeforums.com/cgi-bin/webx/.3bbed722/0
    SMOOTH TRANSITION BETWEEN VIEWS?
    http://www.adobeforums.com/cgi-bin/webx/.3bc0ce56
    Cameras vs. views; views.xml
    http://www.adobeforums.com/cgi-bin/webx/.3bbf0748/3

    hello maybe other have same problem i found a simple solution for me
    use the javascript bridge and juse the f4m manifest files
    function changeSrc(playerdivId,src){
                var player = document.getElementById(playerdivId);
                player.setMediaResourceURL(src);
    src multicast fm4 manifest like this
    http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
    best regards

  • Dynamic changes of option tags in a Select tag using JavaScript

    I got this problem during my project.
    I used Select tag in HTML code.
    I have to change options related to Select tag, based on events.
    How can we change options dynamically using JavaScript?
    Please post solution to this problem..

    You know Sun Java Studio Enterprise forum isn�t a right place for JavaScript & HTML questions.
    BTW here is you can find a lot of js stuff: docs, samples, tutorials, etc:
    http://www.w3schools.com/js/default.asp

  • Getting dynamic id of a component bound to a datatable, using javascript

    Hi....
    I am using Sun Studio Creator to develop a small application.
    I have a problem in getting the dynamic id of a component in Javascript, which is bound to a column of a datatable.
    In the jsp page, I have a datatable and it is bound to a list in the backing bean.The datatable has 2 columns.One column is a checkbox and the other column is a dropdownlist. The values of the checkbox and the dropdown are taken from the list for a button click.The list data are taken from database.Now, I want to enable/disable the dropdownlist according to the check box value(the user checks/unchecks) and I want to do it on the change/onclick of the checkbox.That is, I want to get the dynamic id of the check box in a Javascript. I tried using the j4j idProxy as well. But that also failed to help me.
    In Javascript,
    function changeCheckboxValue() {
    var i = document.getElementById('checkboxStatus').title;
    alert(i);
    This alert message is "undefined".
    In jsp,
    <h:column binding="#{AssignVals.column1}" id="column1">
    <h:selectBooleanCheckbox binding="#{AssignVals.checkbox1}" id="checkbox1"
    onchange="changeCheckboxValue()" value="#{currentRow['status']}">
    <j4j:idProxy id="checkboxStatus" />
    </h:selectBooleanCheckbox>
    </h:column>
    How can I get the dynamic id of the check box in the javascript?
    I don't want to do this in the backing bean, as it causes more server trips.
    Thanks & regards,
    Menaka.

    What about using this in your js script?
    onchange="changeCheckboxValue(this)"
    Names generated by JSF implementation have the format:
    <form>:<component>
    For data table is like:
    <form>:<datatable>:<row #>:<component>
    For example:
    form1:dataTable1:1:outputText1
    You could parse the name of "this" and found what row and form the other component name, for example:
    name = "form1:dataTable1:" + row + outputText1;
    this.form[name].text = "hello";
    Regards.

  • Javascript event for Dynamic Layout change

    I'm using javascript to create a customization for a client and I ran into the following problem:
    - My code runs by replacing the window.load event, it always run when a page is loaded but it doesn't run when the dynamic layout changes.
    Does anyone know which event I can customize so that it runs always??
    The dynamic layout change is driven by the following internal code, but I can't make my code run after it:
    sendGetAppletCmd('ServiceRequestEditForm.SR Type','OMTGT=ServiceRequestEditForm&OMTHD=ServiceRequestNewNav&OMRET0=ServiceRequestHomepage&OCTYPE=','-','DefaultServiceRequestInsert','ServiceRequestNewForm','ServiceRequestEditForm','\/OnDemand\/user\/DefServiceRequestInsert');

    For the benefit of others:
    parent.document.onfocus did the trick.

  • How to change the print page setup in IE using javascript

    dear all,
    I want to take print out envelope paper size, so i want to chnage the page setup in IE
    i want to change the print page setup in IE using javascript

    I think, you can do this using CSS.
    http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html

  • Using Javascript to change multiple text field names

    I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!

    I'm new to javascript too...it will be very helpfull for me too...Thanks
    poltrone
    prodotti chimici

  • Using javascript to change the "Overall Result" cell in WAD

    Hi experts,
    I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
    I dragged the web item "Script" into my web template and I inserted the following code:
    function change_overall_result_to_average() {
    var cell = document.getElementsByTagName("TD");
    var cellText;
    for (i = 0; i < cell.length; i++)
          cellText = cell<i>.innerText;
               if (cellText == "Overall Result")
                     cell<i>.innerText = "Average";               
    In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
    I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
    Best Regards,
    Morten

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • Using javascript to change styles and such

    I want ot use javascript to change the "display" style of a
    div tag
    whatDiv.style.display = "block"
    This works fine if the div tag has an inline style defined:
    <div style="display:none"> ...</div>
    But if the tag has a class attached to it and the display
    :none is attached
    to that class, then it doesn't work
    <style...>
    div.hidden{ display:none; }
    </style>
    <div class="hidden"> ... </div>
    ... how can I remedy this?

    On Thu, 15 Jun 2006 17:20:54 +0000 (UTC), "jeremyluby"
    <[email protected]> wrote:
    >What gary is saying is that you should not use a class,
    but an ID only to
    >define the region.
    Nope. That's not what I'm saying. Regardless of whether
    you're using a
    class or not, if you get an object reference using an ID, you
    can change
    the properties. Consider this example:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Demo</title>
    <style type="text/css">
    .demo {
    background-color: #000099;
    border: 1px solid #000;
    color: #ffffff;
    text-align: center;
    height: 60px;
    width: 500px;
    </style>
    <script type="text/javascript">
    var bg="#009";
    function changeColor(x){
    o=document.getElementById(x);
    bg=(bg=="#009"?"#900":"#009");
    o.style.backgroundColor=bg;
    </script>
    </head>
    <body>
    <div id="test" class="demo">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit.</p>
    </div>
    <p><a href="javascript:;"
    onClick="changeColor('test')">Change
    Color</a></p>
    </body>
    </html>
    Gary

  • Changing document restriction in Adobe Reader using JavaScript

    Hi all,
    I'm wondering if it's possible to change the "Commenting" document restriction option of a pdf file with "No Security" as the security method, using JavaScript while in Adobe Reader.
    Thanks in advance,
    Kamil

    Not possible.

  • How to use JavaScript in Dynamic commandLink

    Hi All,
    In my JSF application, I am able to get the dynamic CommandLink with the below mentioned code.
    commandLink.setActionExpression(createActionExpression("#{myBean.myMethod}", String.class));
    The above code is navigating to the page mypage.jsp properly (the page which is returned by method myMethod).
    My Question is: Instead of navigation (as mentioned above) I want to generate a popup window using JavaScript on click of commandLink.
    Please suggest me on how to proceed on this?

    Hers is my JavaScript:
    function showPopupWindow(action) {
    formId=action.form.id;
    //features="height=300,width=250,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes";
    features="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=900,height=500,top=80,left=80";
    winId=window.open('Mypage.faces','list',features); // open search window
    winId.focus();
    This works perfectly with the onclick attribute of the commandbutton as shown below:
    <h:commandButton value="Open Popup" onclick="showPopupWindow(this); return false;"></h:commandButton>
    {color:#ff0000}
    But I tried same thing with the onclick attribute of the commandLink, that did not work.
    <h:commandLink value="Open Popup" onclick="showPopupWindow(this); return false;"></h:commandLink>
    {color:#0000ff}As per my requirement, I tried using setOnclick attribute in the following manner, that failed to open the popup:
    commandLink.setOnclick("{color}{color}*{color:#0000ff}showPopupWindow(this); return false;{color}*{color:#ff0000}*{color:#0000ff}");{color}*
    {color}

  • Change the value of a SharePoint List lookup control value using javascript

    hi,
    could you please help in changing the value of a SharePoint List lookup control value using javascript.
    Please note that i have to change the lookup value which is in the form of a drop down from the infopath form.
    Thanks

    https://stackoverflow.com/questions/5678210/select-dropdown-menu-option-with-javascript
    Does that help?

  • How to dynamically create a treeview in sharepoint using javascript or jquery

    How to dynamically create a treeview in sharepoint using javascript that displays spsites ,spweb,splist

    Hi,
    In SharePoint 2010, we can customize web service and use Server Object Model to get all the SharePoint sites, webs and lists, then call the web service using jQuery and using the jQuery Treeview plugin to display the data.
    The following articles for your reference:
    Walkthrough: Creating a Custom ASP.NET Web Service
    https://msdn.microsoft.com/en-us/library/office/ms464040%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Using Jquery to call an ASMX service in sharepoint 2010
    http://stackoverflow.com/questions/9035539/using-jquery-to-call-an-asmx-service-in-sharepoint-2010
    jQuery-ui Treeview
    https://plugins.jquery.com/btechcotree/
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • How to get the number from a xml file to flash as3 Text Box "Get_Days"?

    Hi, I have to daily update the number of days finished from the specified days. Say, One work to be finished in 30 days. And the start day is today. So, tomorrow it will be 29 days left. and so on.... So, instead of reducing one number everyday from

  • How to make warehouse field inactive for all users in all documents autom.

    Hi All, Can anyone pls tell me "**how to make warehouse field inactive for all users in all documents without having to do it through form setting** "for each and every user. It should be visible but inactive Thanks & Regards, Mukesh Agrawal

  • NEW IPHONE 3GS DOES NOT START

    I just got my new iphone 3gs yesterday and have not even had the time to have a nice look at it coz it just does not start. When I put the phone to charge the apple logo appears and after that just the sign of USB connector pointing towards itunes (w

  • Mobility group same ssid multiple WLC

    I have a 4400 and a 5508 WLC in the same location We want to be able to roam between ap joined to both the 4400 and the 5508 using only one ssid Do I only need to create a mobility group and add both WLC then create only one WLAN on one of the contro

  • Daily backup: how to detect non used libraries.

    Hi, We use a CL program with a list of SAVLIB commands to save all production librarires every day. The problem is that this CL has been mantained for several years and probably most of the saved libraries are not used anymore. I'm only responsible o