Refer to an object in Edge from an onclick="" in a .html file loaded into an iFrame in the animation

HI, I am trying to figure out the Edge hierachies by stumbling my way through coding reference attempts. I've hit a wall...
How can I refer to an object and a global function in my Edge animation from an onclick=""  located in an .html file loaded into an iFrame created within the master/parent Edge animation. Here's what I have...
My main index.html is an Edge animation. One object <div> is a box created within Edge. I have added an iFrame with the Edge code:
sym.$("MenuPanelScreen").html('<iframe src="list_images_cemetery.html" width="267" height="670" sandbox="allow-same-origin allow-scripts allow-top-navigation"></iframe>');
That .html file which loads into the iframe within the animation contains thumbnails in <a> tags and contain onclick="" statements that should call a function within the Edge file.
Eventually, I want the statements to read something like... onclick="changePic('Dragon.jpg', 'The Dragon', 'Saint and Worm')"
However, I had no idea how to reference the changePic() function in the Edge animation. So, just to figure out how to reference the parent animation from an html in an iFrame, I change the onclick="" statements to...
<a onclick="alert('Try to hide Nameplate'); sym.$('NamePlate_sym').hide();" >  <img src="gallery/TheyGaveUpTheirDead.jpg" width="80" alt="Angel and Worm" /></a>
I first wanted to see if I could hide an Edge Symbol or div/element from the child html. I tried the following...
onclick="alert('Try to hide Nameplate'); sym.$('NamePlate_sym', window.parent.document).hide();"
I tried a few other variations that I won't bore you with. Can someone help me with the proper reference to effect an Edge element?
Furthermore, I eventually wnat the onclick="" statement to reference a global function on attached to the Edge stage in the compositionReady event of the stage. The function is...
window.changePic=function(myFileCurr, myLabelCurr, myDescriptionCurr) {
alert("in changePick");
  document.getElementById("myImage").src="gallery/"+myFileCurr;
  document.getElementById("myImageLabel").innerHTML=myLabelCurr;
  document.getElementById("myImageDescr").innerHTML=myDescriptionCurr;
I hope someone can point me in the right direction. Please forgive my ignorance. i am just getting back into coding and learning the intricacies of Jscript and jQuery. Thanks!

Hi again Elaine,
I actually had some success after many attempts with using your code. I can control the .stop() and .play() of the "NamePlate_sym" symbol. Yet, I am still having trouble doing anything else with it. I cannot .hide() it, nor use .html("Change text") on another element on the stage called"Rectangle". If I can accomplish that and all a global function on the stage, I'm in good shape.
I placed the following script in the header of the .html file that gets loaded into the iFrame within the Edge composition:
  <script type="text/javascript">
   window.parent.AdobeEdge.bootstrapCallback(function(compId) {
   comp = window.parent.AdobeEdge.getComposition(compId).getStage();
   alert("CompID is "+compId);
   var symbol = document.createElement('div');
   symbol.innerHTML = 'Rotate';
   symbol.style.cssText = 'background-color:#fea; width: 50px; text-align: center;';
   symbol.style.cursor = 'pointer';
   symbol.onclick = function() {
    if (comp.getSymbol("NamePlate_sym").isPlaying()) {
     comp.getSymbol("NamePlate_sym").stop();
    else {
     comp.getSymbol("NamePlate_sym").play();
   window.parent.document.body.appendChild(symbol);
        </script>
Once I put window.parent. in the first two lines of code and the last, my test worked. As I mentioned earlier though, I still can't get the syntax correct to .hide() an element (i.e. comp.getSymbol("NamePlate_sym").hide(); does not work), or more importantly, change the innerHTML value of an element on the stage. The code either does nothing or freezes.
Thanks... Tommy

Similar Messages

  • Edge project won't open. HTML file is empty. HELP!!

    I've been working on a project for nearly a month now and when I opened the .an file today it says it can't fine the associated html file even thought it's in the same folder. So I opened the html file in my text editor and it's BLANK. All the code is gone. Same for the edge.js and edgeActions.js files. I can try and piece together the html file from other test files I have, but the stage class (EDGE-205613315) is dynamically generated I assume. So I couldn't just come up with that.
    Anybody have a way to get the .an file to rebuild the html and js?
    Please??

    There's really nothing to look at. When I was talking to Adobe, I realized that the .an file is showing a file size of zero bytes, so as far as I can tell, the project erased itself when I was saving and restarting. When I open the html file in Edge, it looks like a brand new file - there aren't any elements, symbols, actions or anything. Blank canvas.
    Before I left work yesterday, I altered the html file by adding a header and footer div above and below the <div id="stage"> code. The page was running fine in my browser with those divs intact, and the .an file appeared to be saving just fine. Can adding that code have corrupted it somehow? Seems really odd to me that it would totally wipe all the associated files. But if that's an issue, then I need to find another way to build my full page around the edge file.
    Thanks for trying to help.

  • Why when I copy a CD from my PC to iTunes do the tracks load into different sections of the library?

    I've just bought an ipod touch 64gb and have successfully set up iTunes etc. The issue is that when I paste a CD into iTunes from my PC sometimes the tracks are as on the CD but other times they get split up and can be found throughout the iTunes Library. When I try and drag them to the correct album it won't let me drop it. Should I be doing something else or is this a known feature of iTunes that I must learn to live with.

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • I have a mac notebook and time capsule.  I got a message that my startup disc is almost full.  not sure where to go from here.  if i delete files will they still be on the time capsule.

    I have a Mac notebook and back up to time capsule. I  Got a message that my statup disc is almost full and I need to delete files.   Not sure which files it means and will i lose my files if they are saved on the time capsule.

    Visit
    The XLab FAQs and read the FAQ on freeing up space on the hard drive. Also see Freeing space on your Mac OS X startup disk.
    About TM "Backup Drive is Full"
    Alert TM only deletes older files if they have been deleted from the source and when TM needs space on the backup drive for a new incremental backup. Time Machine "thins" it's backups; hourly backups over 24 hours old, except the first of the day; those "daily" backups over 30 days old, except the first of the week. The weeklies are kept as long as there's room.
    So, how long a backup file remains depends on how long it was on your Mac before being deleted, assuming you do at least one backup per day. If it was there for at least 24 hours, it will be kept for at least a month. If it was there for at least a week, it will be kept as long as there's room.
    Note, that on a Time Capsule the sparsebundle grows in size as needed, but doesn't shrink. Thus, from the user's view of the TC it appears that no space has been freed, although there may be space in the sparsebundle.
    Once TM has found it cannot free up enough space for a new backup it reports the disk is full. You can either erase the backup drive and start your backups anew or replace the drive with a larger drive.

  • I have purchased a movie from iTunes how do i get it loaded into icloud

    I have previously purchased a film from iTunes and have now set iCloud up. how can I get the film onto iCloud it is currently on my windows laptop

    Welcome to the Apple Community.
    You can't copy your movie to your allocated iCloud storage. Why would you want to do that.

  • I cant transfer my songs from old iphone to new iphone wont load into library

    I cant transfer my songs from my iphone 3gs to my new 4s they wont load into the library ive tried everything and im stumped

    All your media should be in your library. If for some reason this is not the case you should be able to:
    Backup the device to the new installation
    Transfer your purchases into a newly authorized library
    Recover any other media using third party tools as suggested in this post from forum regular Zevoneer
    Restore the new device from the old backup
    This process should switch set up your new device with the data and settings in your apps, assuming that is waht you wanted to achieve.
    Might be prudent to attempt a backup to iCloud directly from the device before you start... Settings > iCloud > Storage & Backup > iCloud Backup > On. It won't save any media but it would preserve the general account settings and documents in case anything goes wrong while you are trying to extract your other data.
    When you get it all sorted, make a backup!
    tt2

  • UCCX 10.X Unable to get Queue Stats to write from a script to an HTML file

    We upgraded from CCX 7.X to CCX 10.5. After the upgrade I am unable to get a Queue stats web page working. I have changed the 'create doc' step to 'set doc' but I cant seem to get it to work. I have uploaded the SYDNEY.html file to the document repository. I have attached the script and web page.
    Any info is appreciated
    Thanks!

    Thanks for the response. There was a unrelated problem with the server and I restarted the engine and it is working now.
    The script works and can be used as a sample.
    The only change I made was I updated the HTML file with the following line so that when the page refreshes it points to the correct URL.
    <meta http-equiv="Refresh" content="5;url=http://10.20.8.51:9080/SYDNEY"/>
    Thanks!
    Craig

  • How do I know when a file loaded into a Sound object is invalid?

    I'm writing an app that allows the user to play various sound files.
    Some of these files are mp3, but some may also be ogg, wma, etc.  The selection is out of my control, so I need the sound API to tell me if it can't play something.
    To test, I loaded some test files into a sound object like so:
                    var urlRequest:URLRequest = new URLRequest("http://support.microsoft.com/support/MediaPlayer/wmptest/samples/new/mediaexample.wma");
                    var sound:Sound = new Sound();
                    var soundChannel:SoundChannel = sound.play();
    Even though Flex doesn't play wma's there is no error information or null objects anywhere.  Everthings seems to be fine to flex, I can even register for progress events and see the wma being loaded.
    Just to see how far this goes, I loaded a gif instead of an audio file and the same thing happened.  Progress went fine with no errors of any kind even though I registered for every listed event.  As expected though, no sound played from the gif file.
    What is the recommended way for checking if a file is not playable?

    I'm looking more for an "is it playable" value (since it might be an FLA or FLV as well).
    Even a meaningful length value would work (for some reason duration is set to a value even when loading a gif file - not sure what it means for a GIF to have a length of 96 milliseconds).
    For now I'll have to filter on extension as you mentioned.

  • I need to have a URL that's loading from a batch file load into the side bar instead of the main window and I can't figure out what to add to the command line to make it do this.

    I've seen similar questions, but no answers. Most commonly, I've seen people wanting to know how to code a link on their website to make it open in the sidebar. That would be handy too.
    My own goal here is to make all the pages I need open for work open where I want them, all in one click.

    I don't have a Recently Added playlist.  However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes.  I'm guessing iTunes pulled the full name of the piece from the internet.  Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there.  Thanks for your help. 

  • HT1473 New to i Tunes. Cant load CD to i Tunes ( wont accept?). 2/3 of my collection from Zune (all my CD downloads) wont load up either.  Whats the trick ?Thanks in advance for the advice. .

    New to iTunes. Have large library entirely from legit CDs purchased. Only about a third of my libabry downloads into i tunes and even new, common CDs dont seem to load up ( example, Real Live Roadrunning- Mark Knopfler and Emmy Lou Harris) when I try to transfer in tunes from my CD. Is there some trick to this? Thanks in advance for the advice.

    Both, but that helped. After different tries at one point it prompted a reformat from wma and that did the trick. Deleted the iTunes library and rebuilt from scratch reformated. The cd import had dropped it into a file in neither Zune, nor iTunes, nor "music". I stumbled acorss it hours later..have to figure out how to do that better. Thanks.

  • Bookmark titles have weird characters or just blank as of Fox5 when viewing (loaded into a fox tab) the exported "bookmarks.html" from the "Libray" (bookmarks manager).

    }
    -- trying to paste in here examples of weird characters, where real English language titles should be.

    Try to delete those bookmarks and create a new bookmark with that URL.
    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • I'm trying to sync a video I ripped from a DVD and it won't load into the device

    I'm ripping a few DVDs into iTunes. They vids play on I tunes but now will not load onto my tablet, it just gives a notice that says video did not sync, contact iTunes for mor info. Do I have to do another conversion before the tablet is happy? I have a bran new dell, windows 8 and am ripping with Win X DVD ripper.

    Since it seems kind of confusing what's going on, I'd recommend downloading DVD Ripper for Windows. The trial allows you all conversions without time limitation. In the preferences, have ATV2 checked off under what you want the movie converted to. Put in the DVD, and hit Compress, not rip. This will rip and convert the file. Then, drop the file into the Automatically Add to iTunes folder. See if that works.

  • How do we load a html file from a folder on a sdcard into a webview panel c# windows phone 8.1

    Every time a character is made in my app it is saved to an html file named after it in a folder called RpgApp on the sdcard
    so if the characters name is john smith then there will be a john-smith.htm located in RpgApp folder on the sdcard
    now that bit works great
    the app also makes a list of buttons each one named after a file inside the RpgApp folder (so in this case there would be a button named john-smith.html ) and the content is the same as the name so it displays as john-smith.html
    each button has the following method on click 
    private void htmlButtonClick(object sender, RoutedEventArgs e)
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    string curDir = externalDevices.ToString();
    Button button = sender as Button;
    Uri result = new Uri(String.Format("file:///{0}/RpgApp/"+button.Name,curDir));
    web.Navigate(result);
    now the idea is that when you click the button the webview control (aptly named "web") loads up the content of the file (you notice button.name as part of the url? well thats because the buttons name is the file name :) 
    but instead the browser remains unmoved, just sits thier blank
    to test i changed web.Navigate(result); to web.NavigateToString(button.Name);
    and sure enough when ever i clicked a button the webview displayed the name of the button i clicked
    any ideas?

    Hi D.Eastwick,
    I will recommand you read the html file content from the folder in the sd card and convert it to a string, after that we can use the
    NavigateToString method to load the html content in the WebView.
    Besides, please try to do a test by puting the html file in a
    LocalFolder and use the URL like this: "ms-appdata:///...." to see if it works.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Data load into SAP ECC from Non SAP system

    Hi Experts,
    I am very new to BODS and I have want to load historical data from non SAP source system  into SAP R/3 tables like VBAK,VBAP using BODS, Can you please provide steps/documents or guidelines on how to achieve this.
    Regards,
    Monil

    Hi
    In order to load into SAP you have the following options
    1. Use IDocs. There are several standard IDocs in ECC for specific objects (MATMAS for materials, DEBMAS for customers, etc., ) You can generate and send IDocs as messages to the SAP Target using BODS.
    2. Use LSMW programs to load into SAP Target. These programs will require input files generated in specific layouts generated using BODS.
    3. Direct Input - The direct input method is to write ABAP programs targetting on specific tables. This approach is very complex and hence a lot of thought process needs to be applied.
    The OSS Notes supplied in previous messages are all excellent guidance to steer you in the right direction on the choice of load, etc.,
    However, the data load into SAP needs to be object specific. So targetting merely the sales tables will not help as the sales document data held in VBAK and VBAP tables you mentioned are related to Articles. These tables will hold sales document data for already created articles. So if you want to specifically target these tables, then you may need to prepare an LSMW program for the purpose.
    To answer your question on whether it is possible to load objects like Materials, customers, vendors etc using BODS, it is yes you can.
    Below is a standard list of IDocs that you can use for this purpose to load into SAP ECC system from a non SAP system.
    Customer Master - DEBMAS
    Article Master - ARTMAS
    Material Master - MATMAS
    Vendor Master - CREMAS
    Purchase Info Records (PIR) - INFREC
    The list is endless.........
    In order to achieve this, you will need to get the functional design consultants to provide ETL mapping for the legacy data to IDoc target schema and fields (better to ahve sa tech table names and fields too). You should then prepare the data after putting it through the standard check table validations for each object along with any business specific conversion rules and validations applied. Having prepared this data, you can either generate flat file output for load into SAP using LSMW programs or generate IDoc messages to the target SAPsystem.
    If you are going to post IDocs directly into SAP target using BODS, you will need to create a partner profile for BODS to send IDocs and define the IDocs you need as inbound IDocs. There are few more setings like RFC connectivity, authorizations etc, in order for BODS to successfully send IDocs into the SAP Target.
    Do let me know if you need more info on any specific queries or issues you may encounter.
    kind regards
    Raghu

  • Safari is sandboxed to not reveal filepath from html file select to Javascript ?

    I know safari is sandboxed not to reveal filepath from html file select control to Javascript via the Value attribute , but i am unable to find any documentation regarding how this is done and since when this is present .. Can somebody please guide me with this ..?

    Since Safari is able to save as HTML file a page if it is opened online (from web), making "Save as...", and it is unable to make so if the webarchive file is on the hard disk...I tried to upload on a web server some .webarchive files.
    Then I went online in the web page with the list of all the uploaded .webarchive files... (ex.: http://....filename1.webarchive, etc...)...
    My goal was to open ONLINE (not on hard disk) the files and then make "save as...",... but... SURPRISE!!! Safari is UNABLE to open a webarchive file from the web, it asks me where to save the file... it can only save it, it writes that it is an "application"...
    I think this happens because .webarchive is not a real web page but a "package"... but my displeasure is this:
    Once opened an hard disk's webarchive file, its content is loaded in ram and it appears like a normal web page (html + images + etc...)... so, in this moment, Safari should be able to save it "as...." HTML file too.... discarding images and other objects....
    Any advice?
    Thank you!!!

Maybe you are looking for