getElementById parent works for Firefox not for IE

I am trying to access an element in my animation animate Edge (which is a menu bar) of the parent document.  Element has an onClick event, which is triggered according to the #bookmark in the URL of the parent web page.  My code works perfectly in Firefox, but does not work in Internet Explorer (10).  IE cannot see all of the items within the 'Stage' div so that Firefox can.

This is JavaScript code on my parent page: -.

< script language = "javascript" >

Thispage var = window.location.pathname;

FullUrl = document var. URL;

XXX var = fullurl.substring (fullurl.indexOf('#'));

var pageString = xxx.replace ("#", "");

pageString = pageString.replace ("http://www.mydomain.com/portfolio/photography.html", "");

If (pageString == 'corporate') {}

Window.OnLoad = function() {}

IFRAME var = document.getElementById ('U10511_animation');

var innerDoc = (iframe.contentDocument)? iframe.contentDocument: iframe.contentWindow.document;

var corporateRectangle = innerDoc.getElementById ('Stage_Corporate_Rectangle');

corporateRectangle.click ();

}

};

< /script >

The code above to select the business tab in the menu once looked in Firefox, but not IE when URL contains the suffix #corporate.

When I insert an "alert" to the variable "corporateRectangle" in Firefox it returns [HTMLObj] and in IE, it returns "null".

Any ideas anyone?  Thank you.

The question is that the menu animation has a preloader.  Firefox ignores the preloader as IE treats the preloader as onLoad being full.  That is why the attempt to access the item ID is zero because it has not yet been loaded.

I decided to approach the problem from a different point of view and read my bookmark of in animation.  This has proved to be a very simple solution once I realized that I had to put the code in the first frame of the animation NOT creationComplete or compositionReady.

It was the code: -.

Bookmark var = parent.window.location.hash;
Bookmark = bookmark.replace ("#", "");
If (bookmark == 'corporate') {}
SYM. Play ('Corp');
}

Yes, as simple as that.

Tags: Edge Animate

Similar Questions

  • W/Flash site works in Firefox, not in Explorer 6

    I hope this is the right forum to ask this question. Excerpts from site in Firefox and IE6 on my job of work, but when posted and seen my other computer used to simply surf the site does not work in IE6. It's a CSS page with a Flash SWF inside a DIV. The Flash SWF file in turn contains an FLV Player, some command buttons and text. No part of the material in the Flash SWF file is visible in IE6.

    Could someone take a look at the source code and see if there's something that jumps. (I know that some buttons do not work in FireFox, and linked video won't, it's beta).

    http://www.subversive-entertainment.com/

    Edit: After thinking about the site for a really long time, he asked me if I wanted to install Adobe Flash Player. Clicking Yes just closed the popup with no place of installation.

    He did not have this behavior, asking a click, it's just empty with a small red x box icon in the upper left corner of the DIV that contains Flash content. But it is only on this computer only, all others in the House it play well in IE6. Weird.

    EDIT: Installation of the Dreamweaver 8.0.2 update provides a product solution. He introduced the code and added a script folder, so I guess it's fixed.

    Edit2: Install the debugger in Flash Player on the PC where it wouldn't work solved the problem of this PC.

  • Working in Firefox not IE (what I've done wrong?)

    The attached code works in Firefox but not in IE7. The page will present on itself and then move it to the desired location (in firefox), but in IE it reloads the same page and does not just move. It's as if the < cfif isdefined('submit') > is not recognized at all. Someone knows why?

    This tag shall submit submit.x and submit.y but not a subject as it does
    in firefox. I have included a hidden field named submit and it solved the problem.

  • For about two weeks the right click does not work in firefox, how to solve this?

    I have always used the Nightly of Firefox version, so I thought it was a bug in the new update. But now I have completely removed nightly and installed the normal Firefox, but still nothing happens after having right in the screen > in, for example the bar bookmarks, it does not work properly, but not anywhere while browsing!

    The application databases

    Name: Firefox
    Version: 32.0.3
    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0

    Reports of incidents for the last 3 days

    All Crash reports

    Extensions

    Name: Download YouTube videos to MP4
    Version: 1.7.28
    Enabled: true
    ID: {b9bfaf1c-a63f-47cd-8b9a-29526ced9060}

    Name: DownThemAll!
    Version: 2.0.17
    Enabled: true
    ID: {DDC359D1-844A-42a7-9AA1-88A850A938A8}

    Name: Clear Cache button
    Version: 2.7
    Enabled: true
    ID: {4cc4a13b-94a6-7568-370d-5f9de54a9c7f}

    Name: SoundCloud Downloader - Technowise
    Version: 0.87
    Enabled: true
    ID: {c8d3bc80-0810-4d21-a2c2-be5f2b2832ac}

    Name: convenience store
    Version: 1.1
    Enabled: true
    ID: [email protected]

    Name: avast! Online security
    Version: 9.0.2021.112
    Enabled: false
    ID: [email protected]

    Name: F.B. purity - cleans Facebook
    Version: 9.3.2
    Enabled: false
    ID: [email protected]

    Name: gTranslate
    Version: 0.9
    Enabled: false
    ID: {aff87fa2-a58e-4edd-b852-0a20203c1e17}

    Name: Lightbeam
    Version: 1.0.10.2
    Enabled: false
    ID: jid1-F9UJ2thwoAm5gQ@jetpack

    Name: TinEye Reverse Image Search
    Version: 1.1
    Enabled: false
    ID: [email protected]

    Graphics

    Description of the adapter: ASUS AH3650 Series
    Drivers: atiumdag atiumdva atitmmxx
    RAM card: unknown
    ClearType settings: Gamma: Structure of 2200 pixels: ClearType R level: 100 improved contrast: 100
    Device ID: 0 x 9596
    Direct2D Enabled: Blocked for your version of the graphics driver. Try to update your driver graph version 9.6 or newer.
    DirectWrite Enabled: false (6.2.9200.16492)
    Driver date: 01/09/2008
    Driver version: 8.452.0.0
    GPU #2 Active: false
    GPU accelerated Windows: 0/2 base (OMTC) blocked for your version of the graphics driver. Try to update your driver graph version 9.6 or newer.
    Vendor ID: 0 x 1002
    WebGL Renderer: Blocked for your version of the graphics driver. Try to update your driver graph version 9.6 or newer.
    windowLayerManagerRemote: true
    AzureCanvasBackend: skiing
    AzureContentBackend: Cairo
    AzureFallbackCanvasBackend: Cairo
    AzureSkiaAccelerated: 0

    Important change preferences

    accessibility.typeaheadfind.flashBar: 0
    Browser.cache.Disk.Capacity: 358400
    Browser.cache.Disk.smart_size_cached_value: 358400
    Browser.cache.Disk.smart_size.first_run: false
    Browser.cache.Disk.smart_size.use_old_max: false
    Browser.cache.frecency_experiment: 4
    browser.places.smartBookmarksVersion: 7
    browser.search.useDBForOrder: false
    browser.sessionstore.upgradeBackup.latestBuildID: 20140923175406
    Browser.Startup.homepage: topic: Home
    Browser.Startup.homepage_override.buildid: 20140923175406
    Browser.Startup.homepage_override.mstone: 32.0.3
    Browser.Tabs.Remote.AutoStart: true
    dom.mozApps.used: true
    extensions.lastAppVersion: 32.0.3
    font.internaluseonly.Changed: false
    make. Name.sans - serif.x - West: Cambria
    make. Name.Serif.x - West: Cambria
    GFX. Direct2D.disabled: true
    GFX. Direct3D.last_used_feature_level_idx: 0
    keyword. URL: https://www.google.com/search
    layers. Acceleration.Disabled: true
    Media.GMP - gmpopenh264.lastUpdate: 1405814443
    Media.GMP - gmpopenh264.path: C:\Users\Ramon\AppData\Roaming\Mozilla\Firefox\Profiles\cflwd3c1.default\gmp-gmpopenh264
    Media.GMP - gmpopenh264.version: 1.0
    Media.GMP - manager .lastCheck: 1411894750
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1411894888
    places. History.expiration.transient_current_max_pages: 33538
    plugin.disable_full_page_plugin_for_types: application/pdf,application/vnd.fdf
    plugin.importedState: true
    plugin. State.npezffpi: 0
    plugin. State.npovshelper: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_bgcolor: false
    Print.printer_Foxit_Reader_PDF_Printer.print_bgimages: false
    Print.printer_Foxit_Reader_PDF_Printer.print_colorspace:
    Print.printer_Foxit_Reader_PDF_Printer.print_command:
    Print.printer_Foxit_Reader_PDF_Printer.print_downloadfonts: false
    Print.printer_Foxit_Reader_PDF_Printer.print_duplex: 1515870810
    Print.printer_Foxit_Reader_PDF_Printer.print_edge_bottom: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_edge_left: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_edge_right: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_edge_top: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_evenpages: true
    Print.printer_Foxit_Reader_PDF_Printer.print_footercenter:
    Print.printer_Foxit_Reader_PDF_Printer.print_footerleft: & PT
    Print.printer_Foxit_Reader_PDF_Printer.print_footerright: & D
    Print.printer_Foxit_Reader_PDF_Printer.print_headercenter:
    Print.printer_Foxit_Reader_PDF_Printer.print_headerleft: & T
    Print.printer_Foxit_Reader_PDF_Printer.print_headerright: & U
    Print.printer_Foxit_Reader_PDF_Printer.print_in_color: true
    Print.printer_Foxit_Reader_PDF_Printer.print_margin_bottom: 0.5
    Print.printer_Foxit_Reader_PDF_Printer.print_margin_left: 0.5
    Print.printer_Foxit_Reader_PDF_Printer.print_margin_right: 0.5
    Print.printer_Foxit_Reader_PDF_Printer.print_margin_top: 0.5
    Print.printer_Foxit_Reader_PDF_Printer.print_oddpages: true
    Print.printer_Foxit_Reader_PDF_Printer.print_orientation: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_page_delay: 50
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_data: 9
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_height: 11 h 00
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_name:
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_size_type: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_size_unit: 1
    Print.printer_Foxit_Reader_PDF_Printer.print_paper_width: 8.50
    Print.printer_Foxit_Reader_PDF_Printer.print_plex_name:
    Print.printer_Foxit_Reader_PDF_Printer.print_resolution: 1515870810
    Print.printer_Foxit_Reader_PDF_Printer.print_resolution_name:
    Print.printer_Foxit_Reader_PDF_Printer.print_reversed: false
    Print.printer_Foxit_Reader_PDF_Printer.print_scaling: 1.00
    Print.printer_Foxit_Reader_PDF_Printer.print_shrink_to_fit: false
    Print.printer_Foxit_Reader_PDF_Printer.print_to_file: false
    Print.printer_Foxit_Reader_PDF_Printer.print_unwriteable_margin_bottom: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_unwriteable_margin_left: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_unwriteable_margin_right: 0
    Print.printer_Foxit_Reader_PDF_Printer.print_unwriteable_margin_top: 0
    privacy.sanitize.migrateFx3Prefs: true
    Storage.vacuum.Last.index: 1
    Storage.vacuum.Last.places.sqlite: 1411212643

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.6
    Version: 4.10.6

    NSS
    The expected minimum version: 3.16.5 based ECC
    Version: 3.16.5 based ECC

    NSSSMIME
    The expected minimum version: 3.16.5 based ECC
    Version: 3.16.5 based ECC

    NSSSSL
    The expected minimum version: 3.16.5 based ECC
    Version: 3.16.5 based ECC

    NSSUTIL
    The expected minimum version: 3.16.5
    Version: 3.16.5

    Experimental features

    You always use the same profile folder you used with the Nightly build (35.0a1)?

    If you do, then you must create a new profile.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

    With the decommissioning of a Nightly build might be unstable, you should be still more restrictive with what to retrieve.

  • Single-pass does not work for Web sites after the last update of firefox

    Single-pass does not work for Web sites after the last update of firefox. This works in IE and Chrome and it works under windows (when starting the computer), but not with any website in Firefox.

    Firefox 30 spent some less commonly used "Always turned on" plugins "asking to activate. To check and change this to SimplePass, you can use the page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Then on the right, check the control on the right side of the SimplePass.

    You may need to exit Firefox and start it again before it takes effect.

    A little luck?

  • Firefox Sync does not work for Tablet Android Nexus 10.

    Firefox Sync works for 2 PCs, but does not work for an Android tablet. It is said, that the tablet was connected successfully, I checked the bookmarks and history options to be synchronized and or bookmarks, or history of the browser has not been updated on my tablet.
    No errors. Anything not came to the Android device.
    I tried with 2 different synchronization profiles - same story for the second profile.

    Please note that we are currently living with Sync server issues. Our technicians are working around the clock to the question of setting and ensure that it works at its best. The current option is to try to keep synchronized and if you are able to synchronize properly, we recommend to not not to sync more than once every 2 hours.

    Thank you and sorry for the inconvenience.

  • ALEKS 'higher ed' - precalcus - does not work on Firefox for windows; I want to use Firefox, Chrome or Explorer by ALEKS recommendation; What should I do

    I tried to join SOPHIE. I received a warning from Java that Google has not fixed a problem that makes Firefox Windows unstable when you use a version of Java = or > 7.0. I don't want to follow the recommendation of Alex using Chrome or explore; by using the path of SAMUEL to install version 6.x of Java has not worked for me. I want to use Firefox as my only browser. If this is not possible re: SOPHIE, I'll use the Khan Academy to replace SAMUEL.

    Check your plugins

  • Pay a new update system for Fifth Third Bank does not work on firefox. Work on E.I. worked on Firefox before upgrading.

    Recently, Fifth Third Bank made updates of their Billpay system on their Web site. Before the change, I was able to pay the Bills on their site using Firefox. Customer service Fifth Third Bank told me that I would need to use Internet Explorer to pay the bills the Bill pay system would not work with Firefox. I have no problem getting on the site, but cannot pay bills using Firefox. Is there a fix or I have to wait for Firefox changes?
    Them

    Just talked to a technician in 5/3 rd who suggested that I create a URL exception under Tools. options; private life; Accept Cookies. the exception here is

    https://billdomain.com Allow.

     This change allowed me to access the Bill Payments part of 5/3rd bank's Internet Banking from Firefox.
    
  • I have Firefox 5.0.1 and a theme I want download says it works with Firefox 4.0b9pre - 7.0a1, but at the top, he says that he is not available for my platform. What should I do?

    I just downloaded Firefox 5.0.1 and one of the themes I want to download and try says it works with Firefox 4.0b9pre - 7.0a1. Upstairs, however, it is said that the theme is not available for my platform. He arrived with a few other themes as well, but I didn't check what versions they work with. I don't know what this means or what to do about it. The theme is at this link: https://addons.mozilla.org/z/en-US/firefox/addon/bloomind-ft-deepdark-2/

    It is said:

    'Bloomind FT DeepDark 2' is a theme that was created to transform the look of Firefox 4 for Windows users. It was specially designed for the seven, but the rendering is quite specific on XP and Linux (I can t test on MAC, but for those who would like to try on this platform, you can force the download and install it).

    So try to save this file using the context menu.

  • AutoFill does not work for Firefox 4 and Microsoft Outlook

    AutoFill has already worked on Firefox 3.16 and Microsoft Outlook.
    Now I get a msg something like:
    "AutoFill does not work for this site" when I want to fill my info on a petition, etc..

    What "complete" you use in Firefox 4.0?

    Firefox is not a built-in function "fill", it has "full automatic" that would not display a message such as.

  • Satellite L20-100 Touch Pad scroll does not work for Mozilla Firefox

    Hello

    Mine is a laptop Satellite L20-100. My touch pad scroll (the page scrolls automatically when you slide your finger upwards & downwards on the right edge of the touch pad) does not work for the Mozilla Firefox browser. It works fine with other applications like windows Explorer, microsoft word. When I try to scroll in the window of the Firefox browser, this isn't schroll at all. Please can someone help me?.

    Kind regards
    Anish

    Hello

    Read on the forum of Firefox:

    http://forums.mozillazine.org/viewtopic.php?t=221466

    If it doesn't help you, after your problem here

    Post edited by: Jeka -?

  • The site that is integrated within a Web site, works for Firefox but not in IE

    I want to display another site within my site (in my head),

    "Code is: < object data ="http://WEBSITE ADDRESS"width ="1000"height ="600"" > < embed src = "ADDRESS http://www.WEBSITE" width = "1000" height = "600" > < / embed > error: embedded data could not be displayed. < / object >

    I can see this good in Firefox but not in IE. Also in Dreamweaver, I get a report of validation of the name of the tag: "embed" not found in the currently active versions. [XHTML Transitional 1.0]

    I don't know why it works in a browser, but not another, and IE is the one that we really need to work.

    Note that uppercase letters in the code have been changed since the address of actual website for forum purposes. Any help much appreciated.

    Use an inline frame or

  • Why did the Java script works on my work for Internet explore, but not for Firefox RSS feeds?

    I finished building the Web site for my girlfriend, and the rest is the RSS feed. It works just fine in IE 8, but Fire Fox 9 when the widget is clicked a bookmark box appears and asks if I want to save it as a bookmark. I'm not a programmer of the Java script so I hope help here! Here's the script:

  • "< a href ="http://www.susangabrielle.com/1/feed"title ="RSS"alt ="rss">< /a >"
  • The view is http://www.susangabrielle.com

    Probably you fixed, the RSS seems to work for me

  • Can I set parental controls on firefox for a specific user only?

    I use windows 7 and firefox 18.0.2. On my PC, I have my Admin account and my account of children. Now they arrive at an age that they are requiring Internet access for projects and so on, I wonder if I can put parental controls on firefox (by add-on?) as I have on windows, while master's log in to their account, firefox only allows access to what I received. In other words, limit the use of internet ONLY for their account, while I'll still be able to use firefox without restriction. I don't want to use another browser that I ' m not as familiar with just so I can put a parental control over everything on this browser. Any ideas?

    It did the trick. You can restrict any program or browser to their liking. Although I do not have someone else (Microsoft...) do it for me, it works as should be for now. Thank you for your time!

  • My filter (for ads) works for some shippers, but not for others

    I have several filters. One is "Advertising" for ads I want to read later, but need not be cluttering up my Inbox. It seems to work for a couple of the entries but ignores the rest. I checked the spelling, and they all seem to be correct. My settings are:
    Apply filter by operating manually,
    Apply the filter when getting new messages, filter before spam classification,
    correspondence to one of the following values
    Contains (followed by the name of the seller, such as honda, staples, cvs).
    Move messages and ads

    This is a support forum for Firefox. You will need to contact your
    e-mail assistance provider.

    The filters have all send your 'junk e-mail' folder, but the implementation
    a list of 'safe' for those that you want.

    Separate the issue;
    Shows details of the system;

    Plug-ins installed

    Adobe Shockwave for Director Netscape plug-in, version 12.1.2.152
    Adobe Shockwave for Director Netscape plug-in, version 12.0.3.133

    Having multiple versions of a program can cause problems.
    You must remove older programs. Then download the current full installer.

    Shockwave Director:
    Shockwave Standalone install / Uninstaller {web link}
    Shockwave Director Version 12.2.1.171 http://get.adobe.com/shockwave/

Maybe you are looking for