How can I get this Javascript to work under IE

Here is the code.  It works perfectly in DW, but not in IE.  What changes do I need to make to make it functional in IE?

Thank you.

<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form>
    Invoice Payment:  <input type="text" name="InvoiceAmt"  id="InvoiceAmt" size="20" maxlength="30" />
    Payment Amount:  <input type="text" name="Chargetotal" id="Chargetotal" size="20" maxlength="30" />
</form>

<script>
    document.getElementById("InvoiceAmt").addEventListener("keyup", invoiceAmtKeyup, false);

    function invoiceAmtKeyup(e) {
        document.getElementById("Chargetotal").value = (+(e.currentTarget.value)*1.05).toFixed(2);
    }
</script>
</body>
</html>

My thanks to Kenneth Kawamoto for the above code.

IE8 and earlier do not support the addEventListener method. The following change should work in all browsers:

Tags: Dreamweaver

Similar Questions

  • How can I get my deskjet3320 to work under Windows 7?

    I try to install my deskjet 3320 on a new laptop with Windows 7 operating system. I'm running on my feature list as a device not specified rather than as a printer. How can I get Win7 to recognize?

    There is no win7 drivers available at HP, you use the Add Printer Wizard to install a default driver, according to the instructions from HP

    http://h10025.www1.HP.com/ewfrf/WC/document?docname=c01796821&CC=UK&DLC=en&LC=en&os=4062&Product=75035&sw_lang=

  • How can I get this script to work with Firefox?

    This 'go to the top of the Page"button does not work with Firefox 5.0.What do I have to do to make it work correctly?

    Handwriter you actually use Firefox 3.6.13 based on your useragent (look at the end, not starting). Mozilla/5.0 is on all versions of Firefox. Firefox 5.0 won't come out for a while yet as 4.0 has yet to be released.

  • How can I get this application to work?

    IS THAT OK! not too much experience with instructions check box in the select. I try to have a query that returns a "CR" address if they do not have CM, CM AND are they have a.
    They cannot have the two is perhaps a better way of restricted in where clause.
    in other words if they record CM give me that address, but if they do not have CM give CR...
    Probably an easy things for some of you guys!
    Thank you
      select 
    spriden_id,         
    spbpers_name_suffix   name_suffix,
    spbpers_name_prefix   name_prefix,
    spriden_last_name     last_name,
    spriden_first_name    first_name,
    spriden_mi            mi,
    srbrecr_term_code,
    srbrecr_majr_code,
    srbrecr_program_1,
    saturn_midd.utlq.f_matl_code_type(srbrecr_pidm), 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_STREET_LINE1 END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_CITY END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN  SPRADDR_STAT_CODE END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_ZIP END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_CNTY_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CM'   and  SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_NATN_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR'   and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_STREET_LINE1 END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CR'   and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_CITY END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_STAT_CODE END ,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_ZIP END, 
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_CNTY_CODE END,
    CASE WHEN SPRADDR_ATYP_CODE = 'CR' and SPRADDR_ATYP_CODE != 'CM' THEN SPRADDR_NATN_CODE END
    END
    FROM 
    saturn.srbrecr, 
    saturn.spriden,
    saturn.spbpers,
    SATURN.SPRADDR 
    WHERE 
    spriden_pidm = srbrecr_pidm 
    AND SPRIDEN_PIDM = SPRADDR_pidm  
    --and srbrecr_term_code = decode(p_term  ,'%',SRBRECR_TERM_CODE,p_term)
    and spbpers_pidm = spriden_pidm 
    and spriden_change_ind is null
    and SRBRECR_PROGRAM_1 = 'CMQ'
    --AND SPRADDR_ATYP_CODE = 'CM'
    AND SPRADDR_STREET_LINE1 IS NOT NULL;
    Published by: user648177 on April 22, 2009 08:47

    (try lowercase letters for the code of {})

    Set apart:

    CASE WHEN SPRADDR_ATYP_CODE = 'CM' and SPRADDR_ATYP_CODE != 'CR' THEN SPRADDR_STREET_LINE1 END,
    ...
    

    which should be rewritten as (*):

    CASE WHEN SPRADDR_ATYP_CODE = 'CM' THEN SPRADDR_STREET_LINE1 END cm_street_line_column_alias,
    ...
    

    your method is going in the right direction.

    However, to get the details on a line, you must use an aggregate function, for example. :

    MAX(CASE WHEN SPRADDR_ATYP_CODE = 'CM' THEN SPRADDR_STREET_LINE1 END) cm_street_line_column_alias,
    ...
    group by spriden_id, ..., saturn_midd.utlq.f_matl_code_type(srbrecr_pidm)
    

    (*) To put it another way, you're actually saying "If 1 = 1 and 1! = 2 then... "- the second condition is totally redundant as 1 will never be equal 2

    Published by: Boneist on April 22, 2009 16:56

    Published by: Boneist on April 23, 2009 08:47

  • Internet Explorer and other applications open as microsoft works. How can I get this problem?

    Original title: all the applications on my computer appear as microsoft works. How can I get this problem? Even internet explore a works file is not displayed and does not open.

    All my desktop icons are listed under the ribs owrks and work does not support these applications. How to get back my computer to the way it was?

    Hello

    1. which is the version of Windows installed on your computer? For example, Windows 7, Vista

    2. have you done any software or hardware changes on your computer before this problem?

    I suggest you to see the steps in the following link.

    When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program

    http://support.Microsoft.com/kb/950505

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ )

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Hope the information is useful.

  • I NEED ASSISTANCE WITH MY ETHERNET DRIVER. HOW CAN I GET THIS TO WORK NEW TI?

    Original title: driver ethernet

    I NEED ASSISTANCE WITH MY ETHERNET DRIVER.  HOW CAN I GET THIS TO WORK NEW TI

    Download and install it

    The driver should be available in the manufacture of computers site

    Use the snid on a label on the computer to search with while you're there

    Or if the motherboard came with a disc to load and the reader will be on it.

  • I tried to delete some unused programs of my had drive and the PC deleted wlidcl.dll. How can I get this program for the PC works as before?

    I tried to delete some unused programs of my had drive and cleared PC wlidcl.dll How can I get this program for the PC works as before? The PC works now as slow as a snail climbs.  What do you suggest me? Thank you

    Norman.--

    E-mail address is removed from the privacy *.

    original title: wlidcl.dll

    Hello

    I suggest to follow the steps below and check if the problem persists:

    Not one:

    Uninstall Windows Live essentials followed the procedure described in the link:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Step b:

    Download and install Windows Live essential from the link:

    http://explore.live.com/Windows-Live-Essentials?OS=other

  • I'm trying to install Acrobat 8 Std on a laptop computer that was in need of a restoration.  He asks the file AdobePDF.dll since my Vista CD - I do not have.  How can I get this file or another which will allow my Acrobat 8 work on this laptop with Win 8

    I'm trying to install Acrobat 8 Std on a laptop computer that was in need of a restoration.  He asks the file AdobePDF.dll since my Vista CD - I do not have.  How can I get this file or another which will allow my Acrobat 8 work on this laptop with Win 8.1, which she did before restoring?

    John,

    AdobePDF.dll is in the file Data1.cab. Mine is located in C:\Program Files (x 86) \Adobe\Acrobat8\Adobe Acrobat 8 Professional\ You need to extract the file "AdobePDF.dll_64" from the .cab file. You can do this with WinZip or 7-Zip. Everything you need to extract is this file, nothing else... Once you have extracted it, remove the _64, so the name of the file is AdobePDF.dll. Then place the file in any location you want and run the program it when asked. For a file location, I suggest to C:\Program Files (x 86) \Adobe\Acrobat8\

    Hope that helps.

  • WTH... it became a frustration of long hours, how can I get this download work?

    WTH... it became a frustration of long hours, how can I get this download work?

    Hi gustolis,

    You are on a managed network. If not then please download desktop CC: https://creative.adobe.com/#products/creative-cloud . Sign in using your Adobe Id and password, and try to download Acrobat in the list of applications.

    If stil the same question try please download from direct link: http://prodesigntools.com/adobe-acrobat-xi-pro-standard-reader-direct-download-links.html .

    Please follow the very important instructions before downloading.

    Please let us know if it worked.

    Kind regards

    Romit Sinha

  • Acer Aspire TimelineX 1830 68U118-t with a new hard drive. How can I get the bluetooth to work?

    I have an Acer Aspire TimelineX 1830 t-68U118.  The original hard drive died, so I replaced it with a new hard drive.  I loaded Windows 7 x 64 and loaded the chipset drivers and the network drivers.  The laptop is always my bluetooth equipment (even if I loaded the drivers Atheros).  Does anyone else have this problem?  How can I get the bluetooth to work?

    It would probably depend on the status of the warranty of the system.

    You must contact the service for options.

  • I'm trying to uninstall Verizon's VZ Access Manager. I get "invalid UNINSTALL Uninstall Wise. LOG file. How can I get this off for Verizon can help me to get the new drivers installed?

    I'm trying to uninstall Verizon's VZ Access Manager.  I get "invalid UNINSTALL Uninstall Wise. LOG file.  How can I get this off for Verizon can help me to get the new drivers installed?

    Hello retabox, welcome.

    It would seem that the installer is corrupted. I recommend trying to use the Windows Installer Cleanup utility to force - to remove the application. Try this:
    2. click on the download link in the middle of the page
    3. save the file to your desktop or just click Run the installation of the application
    4. once the application is installed, open the utility. The utility must be located in the menu START under (START > programs > Windows Installer...)
    5. in the utility, find the application you want to uninstall, and then click the button 'delete' below
    6. once removed, restart the computer and see if you can reinstall the application
    Let us know if it works,
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I get my screensaver that worked on windows xp to run on windows 7?

    Original title: How can I get my screensaver that worked on windows xp to run on windows 7 error: the version of this file is not compatible with the Windows version you are using. etc. I know that you saw the message before.

    computer brand new, no change. try to load my programs of hp simple save on my new computer.

    The msg is to tell you what is not compatible

    You can not copy/transfer a program from another PC

  • How can I get free games to work.

    Original title: How can I get free games to work instead of g then he side please help kind screen

    you not free games you get in windows? My father, as the spider solatire will u please get back instead went on the side of the screen please help me where I can get the screen back so he can play.

    Hi Debra,

    1. Do you mean that when you're playing the game of the game window moves to the side of the screen?
    2. The question is limited to the spider solitaire?
    3. Have you tried to maximize the game window screen?

    Reference:

    Spider Solitaire: how to play

    Maximize windows on the desktop using snap

    Please provide us with the screenshot of the window so that we can understand the exact situation and troubleshoot accordingly.

    Try using this link to download pictures and files on SkyDrive.

    Download pictures and files:

    http://Windows.Microsoft.com/en-in/SkyDrive/add-photos-files-FAQ

  • Purchased 8 a window PC, reinstalled Photoshop 5.5 on my PC, went to download updates and had a message saying download failed – repeatedly.  How can I get this corrected download problem?

    Purchased 8 a window PC, reinstalled Photoshop 5.5 on my PC, went to download updates and had a message saying download failed – repeatedly.  How can I get this corrected download problem?

    If you mean CS 5.5, the updater no longer works. You must make a list of what needs to be updated or that update failed and go here to download and install them manually.

    Updates Photoshop, Bridge and so on for Windows.

  • I was told by tech Adobe on the Chat which is my serial number for a MAC and I have a PC... but he did not offer to change my platform... How can I get this done?

    File number:0214213994

    I was informed that my serial number for CS6 Master Collection was for Mac... I have a PC.   The agent did not offer to change the platform for me that I had been informed since by the College that that's what he should have done.

    How can I get this done as I rarely am able to access the chat 24 hours option.

    Thank you for the Dfkb update.  What version of Chrome you use?  You have any plug-ins or toolbars installed?  I'm trying to understand why individuals are facing difficulties to communicate with our support team.  All the details you can provide on the browser that did not work would be appreciated.

Maybe you are looking for