How do you open a modal window from an Edge Animate button?

I am trying to create an animated group of buttons that open a Bootstrap 3 modal window when clicked. The animation (OAM file) is placed on the Bootstrap page.
This code is added to Animate "CREATION COMPLETE" for button creation and button click:
// Button 1
var btn1 = sym.createChildSymbol("HomeButton", "menu");
   // Convert/store a reference to the symbol as a string representing the element name of the symbol instance.
var btn1_e = btn1.getSymbolElementNode();
   // Now can use that element string and convert it to a DOM element to use with jQuery to call its css properties
   // and adjust whatever you'd like, including its position property   
   sym.$(btn1_e).css({"position":"relative", "margin":"10"});
btn1.getVariable("setLabel")("Print Work");
btn1.getVariable("setDescription")("Examples of Telex advertisement");
btn1.$("MyImageBox").css("background" , "url(images/telexads_full269x151.jpg) no-repeat");
btn1.getSymbolElement().click(function() {
          console.log("button 1 was clicked");
document.getElementById("myModal");
$('#myModal').modal('show');
The div for the modal is on the main HTML page. I want to have the modal open a larger image of the button. Basically a lightbox for the Edge Animate stage, but it has to access the div on the parent HTML document (not the EdgeAnimate.html).
Here is the error from the Chrome Javascript console:
Uncaught TypeError: Object [object Object] has no method 'modal' portfolioButtonStage_edgeActions.js:4
(anonymous function)portfolioButtonStage_edgeActions.js:4
f.event.dispatchjquery-1.7.1.min.js:3
h.handle.i
I've tried Edge Commons Spotlight, but that doesn't open on the page correctly; it puts the image at the bottom of the main page.
Any ideas? Thanks

I am trying to create an animated group of buttons that open a Bootstrap 3 modal window when clicked. The animation (OAM file) is placed on the Bootstrap page.
This code is added to Animate "CREATION COMPLETE" for button creation and button click:
// Button 1
var btn1 = sym.createChildSymbol("HomeButton", "menu");
   // Convert/store a reference to the symbol as a string representing the element name of the symbol instance.
var btn1_e = btn1.getSymbolElementNode();
   // Now can use that element string and convert it to a DOM element to use with jQuery to call its css properties
   // and adjust whatever you'd like, including its position property   
   sym.$(btn1_e).css({"position":"relative", "margin":"10"});
btn1.getVariable("setLabel")("Print Work");
btn1.getVariable("setDescription")("Examples of Telex advertisement");
btn1.$("MyImageBox").css("background" , "url(images/telexads_full269x151.jpg) no-repeat");
btn1.getSymbolElement().click(function() {
          console.log("button 1 was clicked");
document.getElementById("myModal");
$('#myModal').modal('show');
The div for the modal is on the main HTML page. I want to have the modal open a larger image of the button. Basically a lightbox for the Edge Animate stage, but it has to access the div on the parent HTML document (not the EdgeAnimate.html).
Here is the error from the Chrome Javascript console:
Uncaught TypeError: Object [object Object] has no method 'modal' portfolioButtonStage_edgeActions.js:4
(anonymous function)portfolioButtonStage_edgeActions.js:4
f.event.dispatchjquery-1.7.1.min.js:3
h.handle.i
I've tried Edge Commons Spotlight, but that doesn't open on the page correctly; it puts the image at the bottom of the main page.
Any ideas? Thanks

Similar Messages

  • Opening a Modal window from another Modal window

    Hi All,
    I am opening a Modal window from a Modal window which has applets in it. But when the child modal window opens up from parent modal window, the applets on the child modal window are not loading properly. But when I change the child modal window to normal window, then applets loads fine.
    I just want to know how different is a modal window when compared to normal window when it comes to applets.
    This is the problem which showed up only on specific machine but not on all the machines.
    Is this because of some specific settings or could be any other reason?
    Any help Pls!!!
    Regards,
    Rajesh.

    Christian,
    This problem is occuring on 2 machines which has Java 1.5. But rest of the machines which has 1.5,1.6,1.4 are supporting modal windows. So not really sure whether its a browser issue or JRE issue or it is how the modal windows behave in an inconsistent way. Really need a solution for this problem as early as problem.
    Regards,
    Rajesh.

  • How do you open itunes in windows 8

    how do you open itunes in windows 8

    There is no backup option in iTunes, that was removed years ago.
    Backup iTunes and the media on your computer the same way you would any other data on your computer.
    External hard drives are a good option, copy the ENTIRE iTunes folder to the external drive.

  • How do you change the workspace panel color in Edge Animate CC (the stage is OK) to a lighter gray, I have the dark gray now.  I have Win 7 Pro SP3?

    How do you change the workspace panel color in Edge Animate CC (the stage is OK) to a lighter gray, I have the dark gray now.  I have Win 7 Pro SP3?

    This is a feature as far as I know.
    On Sun, Dec 21, 2014 at 10:32 PM, Conquero <[email protected]>

  • Tomcat / opening a modal window from jaavscript

    Hi all,
    Don't know if it's the best place for this question but let me try.
    I have different servlets and when I try to open modal windows from an hyper link on pages produced by my servlets and processed by tomcat (port:8080), the status bar and address bar are always visible on the modal window.
    But if the same opening is sent from a simple html page processed by apache(port80), the status bar and address bar aren't visible.
    here is the javascript code :
    this.showModalDialog(url,"","resizable:yes;scrollbars=no;location:no;navigation=no;titlebar=no;status:no;");
    about the address bar. lokks like a combo but without any possibilities to enter anything in. Just like a spec of the url called.
    Is there any solution to hide this bar and the status bar ?

    Serve your Tomcat pages via Apache. There are various ways to do this.

  • How do you open adobe reader docs from a cd-rom

    How do I open Adobe PDF doc from a cd-rom

    Yes, I recently bought a book with a cd-rom with it that has documents on the cd that I can copy and use for my students and use as assessments. When I load the cd-rom, it opens up in adobe acrobat reader window and it has on the upper right hand side TOOLS COMMENT SIGN . The doc's are highlighted in blue but I cant click on them because it either gives me this selection only; Seltct Tool, Marquee Zoom, Hand Tool. It will not allow me to just left click and print doc. Top menu has File, Edit, View, Window, Help and the usual zoom 100% or 150% . and the print icon is visable but it will prunt the the page not the specific document I want. It has convert files to PDF on line and convert files to Microsoft word online, sign in doc, So what is it that need to open the documents and just print?

  • How do I open a "unix window" from firefox?

    I need to run some unix scripts from a firefox window. How do I do this? Thank you.

    You would have to open a terminal window if you want to run a Unix script.
    *External Application Buttons 2: https://addons.mozilla.org/firefox/addon/external-application-button/

  • How do you open a new document from the template chooser?

    Hi There,
    Since upgrading to Yosemite, I can't find the option to open a new document from the template chooser. When I type in "template" in the help box it shows it under "file" But when I click on "File" I don't see that option.
    Basically, I'm trying to ask how do you access the templates in the new pages?
    Thanks so much

    Check your preferences and make sure Show Template Chooser is selected:
    Then just choose New from the File menu.

  • How do you open raw files (NEF from Nikon) in the edit workspace on Elements 8

    how do I get raw NEF files (from Nikon) to open in the edit workspace of elements 8?  I have windows 7 , and when I try to open NEF raw files from the viewer, it says cannot recognize the file type.
    Thanks!

    What is your camera model? Every camera has its own raw format and the raw converter must be updated to work with it. If your camera model was new in the past couple of years PSE 8 won't be able to open those files directly.

  • How do you prevent MS-DOS window from appearing during Runtime.exec()?

    The question below was attached to the answer for Question of the Week No. 21. I'm having the same problem. Does anyone know the answer? Put another way does anyone know how javaw does it?
    Fri Dec 18 09:59:52 PST 1998
    rkarasek
    On Windows NT 4.0, how can I prevent CreateProcess()
    from creating a cmd.exe window when using javaw and
    Runtime.exec()? No such cmd.exe window is created if
    instead I run "java" from the command line.
    I have a C++ server named "foo", and have created
    a Java applcation with Swing GUI named "foo.java".
    This GUI captures configuration information and
    then uses Runtime.exec() to start the C++ app, with
    a socket established between the Java app and C++
    app for later communication.
    This is all working fine, and the Java application
    and GUI working as expected. When I run "java foo"
    from either the NT command shell (cmd.exe) or MKS
    Korn shell (sh.exe) the Java application/GUI starts,
    and when it calls Runtime.exec() my C++ process is
    started as what appears to be a child process of the
    "java" process, that is, no cmd.exe window is created
    during the Runtime.exec("foo.exe") call.
    However, when running the same Java application from
    a shortcut on the desktop via "javaw", when I invoke
    Runtime.exec() a cmd.exe window is created before my
    C++ server is started. While things are running
    ok and my Java app can still communicate with my
    C++ server, is there anyway I can prevent this
    cmd.exe window from being created, and instead, have
    my C++ server run as a child process of javaw (or
    an independent process without a cmd.exe)?

    cmd always opens a dos window - use another console interpreter instead or just call the programm directly.
    i.e.
    Runetime.exec("c:\\myprogram.exe");
    OR
    The following demonstrates executing a command without bringing up a popup. import java.io.*;
    public class Test {
      public static void main (String args[]) throws IOException {
        String[] command = {
          "C:\\winnt\\system32\\cmd.exe", "/y", "/c",
          "dir"};
        Process p = Runtime.getRuntime().exec(command);
        InputStream is = p.getInputStream();
        InputStreamReader isr = new InputStreamReader(is);
        BufferedReader br = new BufferedReader(isr);
        String line;
        while ((line = br.readLine()) != null) {
          System.out.println(line);
    }However....
    According to bug number 4244515 in Sun's Bug Parade (http://developer.java.sun.com/developer/bugParade/bugs/4244515.html), javaw doesn't always work without bringing up new window.

  • How do you open a write window

    re:a reply to my earlier question about how to find the send key, states that before following the suggested procedure it was necessary to open a write window.Thus my new question.

    Firefox doesn't have a send key and Firefox doesn't have a write window.
    Since you said in that [https://support.mozilla.org/en-US/questions/1010153 other thread] that this was about Firefox, you must be talking about using Firefox at a webmail website, like Gmail, Yahoo Mail, or similar.

  • How can you open a new window in the new iTunes 11 ???

    In the old version, you can open a list in a new window. But I don't find this option in the iTunes 11 -.-  Can somebody help me ???

    Tony T1 wrote:
    Also, ⌘T for a new Tab (also File->New Window, File->New Tab)
    This is what I always use. You can also click on the plus sign at the far right, that will also give you a new tab/window. And if you want that tab to be a separate window, then once you've created it, just go up to that tab (avoid the little x that will appear--that deletes it), click on the tab, hold and drag it down. It'll leave the other tabs behind and become a window all on its own.

  • How do you stop the help window from floating to the top?

    Is there way to change the help window's behavior so that it acts like a normal window?
    It takes so long to set up seeing the problem and the help at the same time, then go back to reading and then back again.
    The floating to the top is a very unwellcome "Feature" and microsoft-like not Apple-like.

    hmslfi wrote:
    The floating to the top is a very unwellcome "Feature" and microsoft-like not Apple-like.
    That depends on your POV. Some may prefer the default behaviour, because it doesn't allow the help window to be hidden by the working window.
    Also, keep in mind that you can use the Minimise (yellow) button in the window's title bar.
    However, if you really want to change the default floating window, there is a preference you can change with the defaults command:
    $ defaults write com.apple.helpviewer NormalWindow -bool true
    Alternatively, you can enable Help Viewer's developer mode
    $ defaults write com.apple.helpviewer DevMode -bool true
    (See
    <http://www.macworld.com/article/158482/2011/03/hidehelpviewer.html>
    for details.)

  • How can you open a new tab from the adress bar when located in an app tab ?

    When I am in an app tab and I write another url in the address bar, I would like it to be opened in a new tab, not in the app tab, so I don't ruin what I have.
    Is this possible?

    You can use "Opt + Return" or middle click the Go (Reload/Stop) button at the right end of the location bar.
    See "Open Address in New Tab" : <u>[[Keyboard shortcuts]]</u>

  • How can we open a New Window on click of a button

    Dear All,
    Please can anyone guide me how to open a page in A new pop up window.
    Application Express 4.0.1.00.03
    Thanks & regards
    Arif Khadas

    Assalamwalkeum Tauceef,
    Thanks for your reply.
    For the second query where you want to refresh parent window and close the popup window,
    Create a html region and give a condition to this region that it should display on a particular request and pass that request on your button click and write this javascript code in your Region SourceAccordingly I created a Region on the Calling Page and have the condition Request = REFRESH.
    Now my problem is on the pop-up window how can I pass the Request as the action when button pressed is Submit and I am using an SQL Insert Action.
    For such an action for button click the Request field is hidden.
    Also please help me through this one for setting the Item values in the pop up window:
    I have the following in Execute When Page Loads
      var total = 0;
      var inv   = '';
      var selected_inv = '';
      total        = opener.document.getElementById('P24_PAY_AMOUNT');
      selected_inv = opener.document.getElementById('P24_PAY_INV');
      $s('P23_RCP_AMOUNT_PAID', total);
      //setSessionValue ('P23_RCP_AMOUNT_PAID', total);
      $s('P23_INVOICES', selected_inv);
      //setSessionValue ('P23_INVOICES', selected_inv);The value that I am getting for the above Items is "     [object HTMLInputElement]" in Mozilla Firefox and "[object]" in Internet explorer, not sure why?
    Please guide.
    Thanks & Regards
    Arif Khadas
    Edited by: Arif Khadas on Apr 27, 2011 9:51 AM

Maybe you are looking for

  • Sort Direction in Data Grid

    Hi i want to know if the clicked column is sorted ASC or DESC, While debugging step by step, i found a property in dataGrid whis is "sortDirection" but this property is not accessible like this "dataGrid.sortDirection" is there any method to access t

  • IPad distorted pictures // iPhoto 11 landscape - exclamation

    very strange Perhaps I have 2 problems, or the one is related to the other: 1.) on my iPad 1 the pictures / photos in thumbnail view (the batch) are distorted. When I view them in full size mode, they are correct. On my iPhone 4 the are ok. I sync wi

  • Login and Content Management Portlets in 8.1 SP2 Portal app

    Hi all, 1. Create a portal domain in 8.1 SP2. 2. Create a portal app , web , import the portlets ( Login and content management ) and relevant files and start the server. No exceptions. 3. Page 1 - >Login portlet Login into the portal with success me

  • Adobe photoshop album starter edition

    Can anyone help me in regards to the Adobe phots album. I have downloaded picture to this photoshop and it will not let me save any of my pictures to "My Pictures" can someone advise me on what to do?

  • Printing from Photoshop CS 5.1 (Design Standard CS5.5) unable!

    Sinse 2 Days I cannt print from Photoshop to any printer. Who knows something each will help me? Thanks for you Answer! Here isa Screenshort with the error message. (It is in german). Sorry peaple, but my english i bad! Sotiraq@