Onkeypress behaves differently with FF and IE in a table td tag

Here is a sample web page: If you click on the cell with the "abc" (not necessarily on the abc, but in the cell), then type a key, with IE (am using IE9) I get the alert, reporting which key was hit.
With firefox (and, for the record, Safari), I get nothing.
Is there anyway I can achieve something similar - I can't just make the cell an input field...
<html>
<body>
<script type="text/javascript">
function keyhit(e)
var keynum,keychar;
if(window.event) keynum = e.keyCode; // Internet Explorer
else if(e.which) keynum = e.which; // Netscape/Firefox/Opera
keychar = String.fromCharCode(keynum);
alert("You pressed "+keychar);
</script>
Click on the "abc" in the table (or anywhere in that cell, and kit a key.
<table cellspacing=0 border=1 width=120>
<tr height=50>
<td width=60 onkeypress="keyhit(event)">abc</td>
<td width=60>xxx</td>
</tr>
<tr height=50>
<td>xxx</td>
<td>xxx</td>
</tr>
</table>
</body>
</html>

Start by repairing the code validation errors reported here:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.archbold-station.org%2Fstatio n%2Feditreg.html
References to external javascripts and stylesheets.css belong between the <head> and </head> tags.  You have them in the wrong place.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics |  Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
Tutorials  - http://w3schools.com/

Similar Messages

  • Solaris 11 driver behaves differently with 3G and 6G hba

    Hi,
    I am using ioctl with uscicmd driver, in the 3G LSI Sas hba, when there is a check condition, the sense bytes are
    returned normally, however, when a 6G LSI Sas hba is used, when there is a check condition, bad sense bytes are
    returned.
    Is there a solution for solving the bad sense bytes problem?
    Also let me know if I am not posting in the right forum.

    902400 wrote:
    Also let me know if I am not posting in the right forum.Where did you buy the HBA's?
    If you purchased them from Oracle/Sun, then this web site is appropriate.
    If you purchased them from somewhere else, then you need to go ask them (ultimately LSI) for assistance.

  • Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?

    1-Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?
    2-I made three queries Q1,Q2 & Q3 and linked them with proper field links but suppose Q3 returns no records for some Q1&Q2 records & when the report runs for delimited options it reflects only those records as output for which all the queries return records(if Q3 returns no record then the related records from queries Q1,Q2 don't reflect) while the output in desformat=html or pdf is ok..
    can you please resolve my problems
    ( I have installed patch 5a in my report server machine)
    Thanks & Regds.
    Suneel
    null

    What do you mean by "different"? (In our
    experience, Oracle html output has too many
    columns, which are not visible in the
    browser but are obvious in Excel.)
    We build our own html programmatically, so
    that Excel matches the browser more closely.
    -- Allan Plumb

  • How to find index name with primarykey and column on a table?

    Hi,
    how to find index name with primarykey and column on a table?
    please help me.
    Thankyou.

      1  select ac.table_name, ac.index_name, aic.column_name
      2  from user_constraints ac, user_ind_columns aic
      3  where ac.constraint_type = 'P'
      4   and  ac.index_name = aic.index_name
      5* order by 1,2,3
    SQL> /
    TABLE_NAME                 INDEX_NAME                COLUMN_NAME
    ACTION_TABLE                 SYS_C0011033                NESTED_TABLE_ID
    ACTION_TABLE                 SYS_C0011033                SYS_NC_ARRAY_INDEX$
    CATEGORIES_TAB                 SYS_C0011038                CATEGORY_ID
    CUSTOMERS                 CUSTOMERS_PK                CUSTOMER_ID
    INVENTORIES                 INVENTORY_IX                PRODUCT_ID
    INVENTORIES                 INVENTORY_IX                WAREHOUSE_ID
    LINEITEM_TABLE                 SYS_C0011034                NESTED_TABLE_ID
    LINEITEM_TABLE                 SYS_C0011034                SYS_NC_ARRAY_INDEX$
    ORDERS                      ORDER_PK                 ORDER_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                LINE_ITEM_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                ORDER_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                LANGUAGE_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                PRODUCT_ID
    PRODUCT_INFORMATION            PRODUCT_INFORMATION_PK           PRODUCT_ID
    PROMOTIONS                 PROMO_ID_PK                PROMO_ID
    WAREHOUSES                 WAREHOUSES_PK                WAREHOUSE_ID
    16 rows selected.

  • SQL Script working differently with 8i and 9i

    Hi
    I am facing strange problem with my simple SQL script called from a shell script. It bahaves differently with ORACLE 8.1.7.4 and 9.2.0.1. The machine is same.
    sqlplus -s / @Tech.sql WKC625 11 11 '11 22' ""
    This is working with 9i but it does't work with ORACLE 8.
    Actually what happens is that the argument in single quotes (') is taken as 2 separate argument.
    The Tech.sql is :
    spool add
    insert into TECH values ('&1','&2','&3','&4','&5','');
    commit;
    quit
    I tried putting double quotes also. Is something got changes between ORACLE 8 and 9i.
    Please help
    Surendra

    Are you sure it works in 9?
    If you are using UNIX, then the O/S will strip the quotes while processing the arguments. You need to use 2 single quotes around 11 22, just as you have around the empty string at the end.
    I believe that Windows does the same, but I do not use windows.
    John

  • Applet behaves differently in appletviewer and Web Browser, how to resolve?

    I have an applet application which need to access disk files. While I set the .java.policy file properly and the applet runs excellent in appletviewer. However, if I load the applet in Web broswer (e.g. NetScape), the applet cannot access the same disk files as it does in appletviewer?
    Does anyone have a clue on how to resolve?
    Thank you.

    I know you can do it with JavaScript, and I know how to do that...but this is a Java forum (I want a Java solution, that's why I post it here)!
    Therefore my question relates to Java, and in this case, it's an applet.
    Any solution to my problem, please?

  • Problem with creating and deleting row in table

    Hi
    I'm using JDev11.1.1.2.0. I have a table "A" with primary key X -> CHAR(1). I have created Entity and ViewObject (with the primary key X).
    I created an editable Table with CreateInsert and Delete actions.
    When I click Insert, a new record is added and I enter some data. Then I move selection to some other row, and return back to the new row. When I press Delete, It does not delete the new row, but the previous one selected.
    In the console, when I navigate back two the new added record: <FacesCtrlHierBinding$FacesModel><makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[null ]].
    I tried the same scenario with a different table, that has RowID as a primary key and it works correctly.
    Any Idea why this is happening ? I suppose it's connected somehow with the primary key.
    Thanks
    agruev
    Edited by: a.gruev on Nov 26, 2009 9:47 AM

    I changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
    What's wrong with my CHAR(1) as a primary key ?
    I also tried to add a Refresh button:
      <af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
    So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
    Any solutions?
    Edited by: a.gruev on Nov 26, 2009 4:18 PM

  • Problem with WebIntelligence and Universe Designer Derived Table

    Hi people, i have an issue with a report in WebIntelligence that i want to build. Here it goes:
    I created a derived table that brings every material that has or not any movement. The thing is that when I build the report using other information like Material Name, for example. The report filters by the coincidence between materials in the derived table and the SAP Standard table. I tried to modify the SQL query but, Oracle does not allow it.
    So here are my questions:
    1)Is any way to do a Left outer join in order to have any single material and do not allow WebIntelligence to do Inline views?
    2)Do i have to modify the derived table? and use the standard tables?
    3)Can i work with a derived table that does not have any join with the standard tables?
    Thanks in advance,
    Reynaldo

    If I understand you correctly, it sounds like you are getting an inner join where you want an outer join? You have several options:
    1. You can do an outer join in the universe, or even embedded in your derived table (if that is what you are trying to do)
    2. You can have a derived table that is not joined with any other tables in the Universe. But you will have to merge the dimensions in the Webi report, and then be sure to put the correct dimension(s) on the report in order to reflect the outer join you want.
    I hope that helps.

  • SQL 2012 database behaves differently with a unique index and ignore_dup_key = on when inserting data. It works on SQL 2008 db

    If you have a table with a unique index and ignore_dup_key = on and you INSERT rows into that table with an ORDER BY clause (because you want to control which of the duplicate
    key rows gets inserted),  the wrong row gets inserted in SQL2012.  It works correctly in SQL 2008.
    We have recently migrated  a database from SQL 2008 to SQL 2012.  We do have few other dbs which are in compatability mode 100.  The above operation works fine
    in SQL 2008 dbs but not SQL 2012.
    I've even tried applying the latest patch for SQL 2012 SP2 with CU2. Still the problem exists.  I'm going to call MS support, but want to know if anyone has come across this problem ?

    The MS documentation doesn't guarantee that the first row of the duplicates will always be inserted and the next duplicate row(s) get(s) ignored. Where did you find it in the MS documentation? I think you were just lucky that it was always inserting the
    first row in SQL 2008 (and ignoring the rest of the duplicates) - I don't think this is guaranteed
    Satish Kartan http://www.sqlfood.com/

  • UserId with same access behaving differently in ( Quality and Sandbox )

    A user exists in quality and sandbox systems with the same profiles, However, when I try to execute Tcode IW22 and enter notifications, A screen appears where I can view Services for Object Icon. When I click in the Create Attachment in the Services for Object in the Quality system, A dialog box appears to upload the documents from my desktop. However the same does not happen in my sandbox system.....The profiles are same for the user in both the systems...
    The PID values are same for both the users. Authorizations and Transactions are same for the UserIds.
    I am stuck with this..Please help me with this.

    Hello Ravi
    Try the following
    1. Delete the user and recreate the same user with the same roles or create a new user with the same roles and check.
    2. Since this is a sandbox try giving SAP_ALL and SAP_NEW profile, if that works then defenitely there is some difference in the roles from Q box. Even if that doesn't work then it is not authorisation problem.
    Thanks & regards
    bala

  • Pack() method behaves differently with JRE1.5 and JRE1.6?

    Any diffrence in pack() in JRE 1.5 and JRE 1.6.

    Why don't you look for yourself. Get the file containing the pach() method from both JDK 1.5 and 1.6, and compare.

  • BAPI_GOODSMVT_CREATE behaving differently in development and quality

    My program is behaving correctly in development system -
    1. The program is run
    2. Changes are made to material in MM02 transaction
    3.  In the program, a button is executed where I am calling a BAPI_GOODSMVT_CREATE, which returns values correctly, as per the material status (be it error or success)
    In the Quality system it behaves incorrectly-
    1. The program in run
    2. Changes are made to material in MM02 transaction
    3. In the program when the button is executed the BAPI_GOODSMVT_CREATE, seems to retain the earlier status. Recent changes to material are not reflected in the return parameter, no matter how many times I try.
    4. When I restart the program, the BAPI_GOODSMVT_CREATE shows up the correct return values of the changes made in step 2.
    Steps taken -
    1. I have compared the versions of the code in both the systems and they are identical.
    2. To be sure I once again transported the changes to the quality system, yet the problem remains.
    3. I tried with a different data thinking it to be a problem with the data rather than the code, but the problem remains
    Edited by: GhoshA on Mar 8, 2012 8:06 AM

    So some entry related to MM02 is present in SM13 ?
    In the quality system in SM13 -
    Update module ID     Module name (function)     Type     Update return code
    1     MCB_STATISTICS_UPD_V2     V2     Processed
    2     MCEX_UPDATE_03     Collective run     Initial
    3     AC_DOCUMENT_MM_UPDATE     V2     Processed
    4     LIEFERUNG_WRITE_DOCUMENT     V2     Processed
    5     SLIM_CNT_INCREASE_COUNTER     V2     Processed
    6     MCF_STATISTICS_UPD_V2     V2     Processed
    Double clicking every entry gave - ' Status: Not yet updated'
    Interestingly, in the Quality system, even after continuous refresh, the record does not get  removed. However, the records in the Development system for the same situation, get removed, after four or five times refresh.
    In Quality even after I restart the transaction, the records do not get removed from SM13, but again the code works correctly for the newly executed instance.
    What is your opinion ?

  • RFC Function Module behaves differently in foreground and background

    Hi,
    I have RFC function module which works well when executed in debugg mode where as in normal mode it doesnt work as the time stamp is not changed and the record cannot be created with the same timestamp.
    Can anybody suggest any solution on how to change the current timestamp when still in the same LUW.
    Regards,
    Roberts.

    Hi,
    Use:
    T1 = SY-UZEIT.
    GET TIME.
    T2 = SY-UZEIT.
    T1 will be different from T2
    Best regards,
    Leandro Mengue

  • LSMW Read Data behaving differently in production and in ECC

    Hi All,
    I have writte a LSMW for CJ12 longtext and it is working fine in development but in production it giving error message at 13th step as BDC_INSERT, Transaction code .. is invalid and when i try to simulate the issue i found that in Read Data step i found the difference as transactions read in development are 399 where as the transactions read in production are 267 for the same file.And i debugged the Display Read program and observed that the read program used GUI_UPLOAD to read the data from the text file.and there itself the GUI_UPLOAD internal table contains 399 in development and 267 in production.I tried to simulate why this is happening but coldn't figure out.Can any one help me why this has happened.And we are using ECC6 with EHP4 in development and EHP3 in production and it has to upgrade to EHP4.

    if you are really certain about the source file (I doupt too) then there are only 2 more possibilities
    a) your LSMW object is different (transport it again from developement to production, only so you can be sure that LSMW object and source will be the same)
    b) a real SAP error because of different release levels. Open a ticket at SAP to get help.

  • Query result different with profit and loss statement

    Hi all,
    I run query Sum(JDT1.Debit - JDT1.Credit), and then compare the query result with the profit and loss statement, and there is different.
    The difference is about 0.01.
    At SAP, the Decimal places is set to 2.
    I already checked the data, and their amount in 2 decimal.
    Do anyone know such problem and what kind of query must I use so the result can be compared with the profit and loss statement ?
    Thx.

    Riny, 
    I am glad you found the issue
    Suda

Maybe you are looking for

  • Can I display rich text in a textfield?

    I've created a form in LiveCycle Designer and there is a text field that is retrieving data from a table. The data in this field is entered from a ColdFusion form and its using the Rich Text Editor in the form. Because of this, the data that is displ

  • Reading TDMS files in Matlab

    I am trying to read TDMS files directly into Matlab using the NI  nilibddc.dll. I have read most of the posts on here but still have a problem... Within Matlab I can open and read a file and get the data but I cant find anything that tells me what th

  • Had a huge problem after upgrading to iOS 4

    After upgrading my iPhone 3G to iOS 4 I got a message on my iTunes telling me that "There's a problem with your iPhone"... Then when I tried testing it out, it was very laggy the slide bar takes a couple of times to get my iPhone open up and the lett

  • IChat defaults to audio

    I'm using iSight with OS 10.4.3 on a G5 iMac and iChat. Every other day or so I find that my buddy list shows for me only the audio symbol, not the video camera. The solution is to unplug the iSight and plug it back in -- then it works fine for a day

  • Content disappearing from Apple TV

    I am running the latest version of iTunes on my MacBook Pro and syncing this with Apple TV (also fully updated). I have noticed that purchased content disappears from the Apple TV, and in some cases, from the MacBook. For example, I have purchase a s