Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 5 of 5

Thread: Custom item: OnKeyPress allowed?

  1. #1
    Join Date
    Aug 2007
    Posts
    12

    Custom item: OnKeyPress allowed?

    Are OnKeyPress events allowed in a custom item in a MediaLab questionnaire or are they intercepted/not recognized by MediaLab? Thanks.

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    MediaLab uses Internet Explorer as its web engine so it should act exactly as it does in IE. It should accept onkeypress events in the same manner as any page in IE would. However, one difference is that the HTML window within MediaLab will need to have the "focus". Your javascript programmer will likely be able to cause this to happen automatically but you can also do it manually to test it. For the test, try clicking on the HTML page once before the onkeypress function is to be tested. Otherwise, the keypress may go to the MediaLab shell rather than to the contained HTML page.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,328
    [edited followup from support email]

    Thank you so much. My programmer here was able (after several attempts) to set the "focus" so that my custom item now works through MediaLab. I am much relieved!
    Have a great weekend

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    Any chance you might consider zipping and posting the item (including the focus setting code) for others who run into the same challenge? If it's top-secret, no worries--thanks for the update!

  5. #5
    Join Date
    Aug 2007
    Posts
    12
    Attached is the file with the html code that changes the focus of a custom item.
    Attached Files Attached Files

Similar Threads

  1. Custom item - Autosum
    By akipaki_sf5 in forum MediaLab Older Versions: Sharing Area
    Replies: 16
    Last Post: 12-06-2008, 02:31 PM
  2. insert text from custom item later
    By merpy in forum MediaLab Older Versions: How Do I...
    Replies: 6
    Last Post: 09-24-2008, 10:01 PM
  3. Blank screen on custom item
    By njsporn in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 07-27-2007, 07:17 AM
  4. Create a custom instruction item?
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 07-23-2007, 10:31 AM
  5. Hiring a programmer for a custom item?
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 3
    Last Post: 11-17-2006, 08:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •