Javascript acts funny in IE & not Firefox

I have a page uploaded on a server with 5 buttons that conrol
a sub-menu selection thru javascript. When I preview the page in
Firefox it acts like it should, no problems. When I view the page
using Internet explorer only one of the sub-menus decide to work.
Is there anyone who might be able to help me fix this? Thanks in
advance for the help.
http://stewg76.atspace.com

Here's the javascript that I'm trying to fix. I'm not sure
what to replace the outerHTML with to fix this, as it was written
by someone else, and I hate to admit it, I'm not very good with
javascript, so I really appreciate all your help. :-)
<script type="text/javascript">
// Node expand/collapse functionality
function expandNode( id )
var objDiv, objImage, strInner
objDiv = document.getElementById('div' + id);
objImage = document.getElementById('image' + id);
strInner = objDiv.innerHTML;
if( objImage.src.indexOf( "plus" ) > 0 )
objDiv.outerHTML = "<div id='div" + id + "'
style='display:inline'>" + strInner + "</div>";
objImage.src = "/img/minus.gif";
else
objDiv.outerHTML = "<div id='div" + id + "'
style='display:none'>" + strInner + "</div>";
objImage.src = "/img/plus.gif";
</script>

Similar Messages

  • "ReferenceError: prepareFFB is not defined" I started getting this JavaScript error recently whenever I start Firefox. I would like to stop getting this error

    I get the following JavaScript error every time I start Firefox:
    ReferenceError: prepareFFB is not defined.

    hello, this sounds like it's possibly caused by an addon. do you have any extension/theme installed, you can connect the "FFB" to? if not try disabling them all in firefox > addons > extensions & reenable them one by one to find out which of them might be causing the error message.

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8

    How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8 . I am using WaveMaker application for web development

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • I did an update last week.  My computer started acting funny afterwards and I'm not sure what to do now.  I can't open any of my faxes now.

    I did an update last week.  My computer started acting funny afterwards and I'm not sure what to do now.  I can't open any of my faxes now.

    Hi paulsaundersdds,
    What type of file are those fax documents? Are they PDF files? What are you using to open them with--Acrobat or Reader?
    And, what happens when you try to open them? Do you get an error message? If so, what is it?
    Best,
    Sara

  • I have downloaded firefox and it always is locking up when I am in the middle of something, acts like I am not connected to the internet and then I have to restart my computer how can I retify this?

    I have downloaded firefox and it always is locking up when I am in the middle of something, acts like I am not connected to the internet and then I have to restart my computer how can I retify this?

    Hi Francis,
    Are you getting kernel panics?
    http://support.apple.com/kb/TS3742
    http://www.thexlab.com/faqs/kernelpanics.html

  • I uninstalled illustrator cs5 yesterday because it was acting funny...it will not install now

    i uninstalled illustrator cs5 yesterday because it was acting funny...it will not install now
    Windows 7. just tried Photoshop and it wont open now???

    Tom,
    Have you tried reinstalling in the full three step way (otherwise strange things may linger)?
    Uninstall (ticking the box to delete the preferences), run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • My website works in IE but not firefox

    this is my web page:
    http://www.andrew-leonard.co.uk/Mallorca/mallorca%20ferns.htm
    It usess css to define layers and javascript to show and hide the layers. It uses a dhtml menu system by Milonic to execute the javascript
    This is part of the code for the layers:
    <pre><nowiki><style type="text/css">
    #Layer01 {position: absolute; left: 300px; top: 50px; z-index:1;}
    #Layer33 {position: absolute; left: 300px; top: 50px; z-index:33;}
    </style></nowiki></pre>
    This is part of the javascript to show/hide the layers:
    <pre><nowiki><script>
    function showlayer(layer){
    var myLayer = document.getElementById(layer).style.display;
    if(myLayer=="none"){
    document.getElementById(layer).style.display="block";
    } else {
    document.getElementById(layer).style.display="none";
    </script></nowiki></pre>
    It works OK in IE but not firefox

    If you check Firefox's Web Console (Ctrl+Shift+K) it'll tell you any errors it's finding and the line of code it's finding it on.
    The problem it seems to be having up front is that IDs are case-sensitive - "layer02" is not the same as "Layer02", for example.
    There may be further errors once it's past that, but all the current browsers come with the tools you need to weed out any further issues.
    Further Javascript reference: https://developer.mozilla.org/en-US/docs/JavaScript

  • SpryHiddenRegion error in IE7 but not FireFox

    Here is a copy of the code and the errors I get. Does anyone
    have any ideas why this would happen in IE only?
    <div spry:region='dsPages' class="SpryHiddenRegion"
    style="height:350px; overflow:auto;">
    <div spry:state='loading'>Loading data...</div>
    <div spry:state='error'>Failed to load
    data.</div>
    <table spry:state='ready' class="mylist">
    <tr id="top">
    <th onClick="dsPages.sort('id');">ID</th>
    <th onClick="dsPages.sort('name');">NAME</th>
    </tr>
    <tbody spry:repeatchildren='dsPages'
    spry:choose="choose">
    <tr spry:when="{id} == selectedID"
    class="SelectedLastClass" id="{ds_RowID}"
    onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
    spry:hover='HoverClass' spry:select='SelectedClass'>
    <td>{id}  </td>
    <td>{name}  </td>
    </tr>
    <tr spry:default="default" id="{ds_RowID}"
    onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
    spry:hover='HoverClass' spry:select='SelectedClass'>
    <td>{id}  </td>
    <td>{name}  </td>
    </tr>
    </tbody>
    </table>
    </div>
    ERROR:
    expected ':'
    and
    Spry.Data.updateRegion(spryregion1) caught an exception:
    [object Error]
    Thanks for your help.
    Jim

    i have reduced the code to the following:
    <script type="text/javascript">
    dsPages = new
    Spry.Data.XMLDataSet('views/pages/getdata_pages.cfm',
    '/dataset/row', {useCache: false});
    </script>
    <div spry:region='dsPages' class="SpryHiddenRegion"
    style="height:350px; overflow:auto;">
    <div spry:state='loading'>Loading data...</div>
    <div spry:state='error'>Failed to load
    data.</div>
    <table spry:state='ready' class="mylist">
    </table>
    </div>
    and i get the following error in IE but not FireFox:
    Spry.Data.updateRegion(spryregion1) caught an exception:
    [object Error]

  • Font face="army" works in my editing program for IE but not firefox

    font face="army" works fine in IE but not firefox when using my website editing program
    == This happened ==
    Every time Firefox opened
    == everytime

    If you check Firefox's Web Console (Ctrl+Shift+K) it'll tell you any errors it's finding and the line of code it's finding it on.
    The problem it seems to be having up front is that IDs are case-sensitive - "layer02" is not the same as "Layer02", for example.
    There may be further errors once it's past that, but all the current browsers come with the tools you need to weed out any further issues.
    Further Javascript reference: https://developer.mozilla.org/en-US/docs/JavaScript

  • GNOME 3 acting funny when using RAM heavily

    Hi,
    I've been noticing that when I open many tabs in Chromium (and thus, being a very memory intensive app, it puts a lot of load into the RAM) GNOME 3 starts acting funny. Letters from labels disappear, such as the top bar menues are gone. The overall UI seems to work fine, except rounded corners and basically any letter in the Shell interface (Metacity labels and inner window content work fine).
    This is a freshly installed system. 16 GB of swap and around 8 GB of RAM, so plenty of room for Chromium to have hundreds of tabs anyways. My graphics card is a 8800 GTS, with less than 256 MB (which could also be the issue).
    But seriously, this is why I hate GNOME Shell so much. It looks alpha state! These kinds of bugs should not happen in a production environment
    What can I do to help me troubleshoot the source? Any quick and dirty hacks?
    I'll probably end up switching GNOME with Xfce if this keeps up like this
    Last edited by Pyrobisqit (2013-07-30 13:09:57)

    Pse wrote:How much free RAM is available when this starts happening? 8GB is a lot of RAM to fill with tabs. And even then, you have swap, so you shouldn't miss anything. This looks like some sort of bug. Are you sure this is Gnome's fault? It may be triggering a bug somewhere else.
    I'm pretty sure it's Gnome's fault, however, I'm unable to replicate this.
    I know it's Gnome's fault because, although not corrupting the labels again, the system feels somehow slower from time to time, in a direct relationship to how many Chromium tabs there are open (which was what caused the bug in the beginning) or otherwise, how many different app windows (so it's not just Chromium, but the whole system).
    Could my system become slower when the RAM is 85% full than when it is only 25% full? Does that even make sense? Assuming swap is not being used (I have set it up so that it's only being used when RAM is 90% full or more).

  • Strokes are acting funny. Way too thin for the point size.

    I'm on 5.5 and all of a sudden, when I apply a stroke to a photo frame, I'm not getting the width that the settings say.
    For example, I place a picture on the page, I scale it, say 50%, then put a stroke on it. I barely can see it. I can put a 44 pt. stroke on it, and it looks like it's about 7 pts wide. I tried assigning it to the inside, outside, middle, same thing.
    It's also doing that with the rounded corner trick. Click the yellow box, and start sliding a corner piont, and it's barely visible. I can assign a .5" rounded corner to the frame, and I can barely see the roundness.
    It's crazy, and completely grinding my work to a halt.
    Any ideas?

    just normal, has no bearing on document size.
    If I just draw a box with the box tool, strokes are normal.
    It's only when I place a photo and reduce it in size do the strokes act funny.
    It clearly has something to do with reducing the images.
    I see there is a preference for  scaling objects, and I tried both settings.
    But the strokes act funny either way.

  • This error message just began popping up yesterday: JavaScript Application - TypeError: window CloseAlert not a function.

    JavaScript Application - TypeError: window CloseAlert not a function.
    What is causing this error, can you help me fix it?
    I'm using Windows 7 , and the latest Foxfire Browser.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • IPad Mini with retina display acting funny

    My iPad Mini with retina display's screen is acting funny. It isn't cracked, but the bottom half keeps flickering and has green line running through it. It also has a bit of a milky color to it, and you can see small, individual white lines. Would I be able to get my screen replaced? If so, how much would it cost?

    Hey there Allicat18,
    It sounds like you are seeing some unexpected activity when using your iPad Mini. I would start with resetting the device with these steps:
    To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    If the issue persists, use the following article to backup your iPad:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it from your backup with this article:
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    If the above steps do not resolve your issue, the following article has repair information for your iPad:
    iPad Repair - Other
    http://www.apple.com/support/ipad/repair/other/
    Request iPad service
    Click or tap below to start a service request and see your service options, which include sending us your iPad, chatting with Apple Support, and more.
    How long will it take?
    After you send in your iPad for service, you’ll receive a replacement or your repaired iPad in three to five business days. A replacement iPad will be new or equivalent to new in both performance and reliability. If your iPad was engraved by Apple, it could take up to two weeks.
    What does it cost?
    Repair and replacement costs depend on your iPad model and your coverage under warranty or AppleCare+. If the required repair is covered by the Apple one-year Limited Warranty, there will be no charge for the service.
    Out-of-warranty* cost:
    iPad mini: $219
    iPad mini with Retina display: $249
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Why does goolgeearth work with Safari & Chrome but not Firefox

    When in firefox using Google maps and click on "EARTH" I receive a window indicating that to use 3D I need to install 21.0 Google Earth Plug-in with a "Download" option to click on. Note: Firefox 21.0 and MAC OS 10.7.5 have all current software updates installed. Safari & Chrome do not request for any plug-ins and 3D Earth option works fine. ANY HELP?
    PS. my MAC does have an Intel HD Graphics 3000 installed but my MAC, Safari & Chrome work fine.

    JKELLETT, That initially happen to me also. When you go to dolinsky296's suggested website https://www.google.com/earth/explore/products/plugin.html I saw "Download plug-in" box in the middle of the globe. When I click it the download executed but the plug-in never got installed. Then I clicked on "Download Google Earth" in the ''upper right corner'' of the website and life was good. Google Earth now works in Firefox.

Maybe you are looking for

  • How long does it take to migrate mail data from snow leopard to lion. Waiting for hours

    OK, so here I thought I was solving a calendar sync problem by updating my OS from 10.6.8 to 10.7.3. Initially unable to load the mail app, however this seemed to work after taking out the "envelope index" file as suggested in this forum. New mail pr

  • What is cd service

    After upgrading the drivers for my soundcard I have experienced repeated aplication hangs playing a game called Operation Flashpoint. The log file shows the same pattern every time: An aplication named "Creative CD Service" starts. This program then

  • Bring back colored icons in Lion's side bar!

    Where can I complain to Apple about their gutting of icon identifiablity in Lion? I tried the 3rd party fix (Colorful Icons) and it was buggy. I uninstalled it. Too risky on the system level. Who's the brainiac at Apple who decided that gray standard

  • Ctype header in 10.8

    When I try to compile anything with #include <ctype>, g++ says it's not available. I tried running it through Xcode as well as opposed to the shell to no avail. Xcode actually marks it as an error in the editor. I just upgraded to OS X 10.8 and Xcode

  • Speedgrade cc 2014 keeps crashing after I direct link from Premier cc 2014 -

    Any body has faced this problem and been able to resolve it? Don't know how to fix this - on a deadline - any help? I tried reinstalling speedgrade but it does exactly the same thing.