471,854 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

IE crashes and IME language bar locks for HTC with viewLinkContent & tabStop = true

Hi all,

I have a asp.net web page that hosts some htcs with input boxes on it. The viewLinkContent and tabStop properties are defaulted to true so that users can add text and tab through the input boxes within the HTCs. I have attached event "onfocus" to focus the first input box of the htc. Things work fine until users tab through or click anywhere within the web page. However, if users are focusing on one of the text boxes within htc and then decide to click somewhere outside the current web page and then try to click on input box again, then the IE crashes.

I found an alternative way - using "onactivate" to focus the input box. That worked fine and did not crash IE, however, now I have found out that the IME control bar locks if users tab out of the input box.

If anybody has any idea about this, your help with this will be greatly appreciated.

Sep 12 '07 #1
5 1590
16,027 Expert Mod 8TB
Post some code or a link to a test page.
Sep 13 '07 #2
Anja N
Post some code or a link to a test page.
The htc "field.htc" is as follows:
<PUBLIC:COMPONENT tagName="field">
<PUBLIC:DEFAULTS viewLinkContent="true" tabStop="true"/>
<public:property name="value" />
<!-- *** Attached Events *** -->
<PUBLIC:ATTACH EVENT="ondocumentready" ONEVENT="_init()" />
<PUBLIC:ATTACH EVENT="onfocus" ONEVENT="_focus()" />


<link id="lnkStyle" rel="stylesheet" type="text/css" href="">

function _init()
_input().value = element.value;

function _input()
return document.getElementById("input1");

function _focus()
function setfocus()



<body leftMargin="0" topMargin="0" bottommargin="0" rightmargin="0" scroll="no" width="100%" height="100%">
<input id='input1' onfocus='setfocus()' style='height:100%; width:100%' >



************************************************** *******
The html page that hosts the htc is as follows

[HTML]<html XMLNS:test>
<table width="100%">
<tr width="100%">
<td width="50%" ><test:field value="Input field1" /> </td><td width="50%"><test:field value="Input field2" /></td>
<tr width="100%">
<td width="50%" ><test:field value="Input field3" /></td><td width="50%" ><test:field value="Input field4" /></td>

#1 - Language setting: Open the web page in browser and make sure that you can tab through the fields property and if you have language bar on the top and "Japanese" language is selected with "Hirangana" input mode while you were in first field, the setting stays like that until you get in field4.

#2 IE crashes - Now while in field1, you click on some window other than this html page, then click on field2 then again on some other window then again on field1 and you will notice that in 3 to 4 clicks, your IE crashes.

Now in field.htc change the "onfocus" shown in bold event to "onactivate" and you will see that problem#2 does not occur, however, while in field1 if you tab to the next field, then the Input Mode for Hirangana on IME language bar changes and if you try to click on "Input Mode", it does not respond until you click on either field2 or some other input field. This happens only if you try to tab through fields. Mouse clicks do not lock Language Input Mode.
Sep 13 '07 #3
5,390 Expert Mod 4TB
hi ...

please make use of the code tags when posting code ... example:

... your code goes here ...

kind regards
Sep 13 '07 #4
Anja N
Thanks for bringing that to my notice. Also, thanks for fixing my message.
Sep 14 '07 #5
Anja N
Anybody out there who could help me with this???
Sep 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by John Baro | last post: by
15 posts views Thread by Geoff Cox | last post: by
7 posts views Thread by Doru Roman | last post: by
reply views Thread by BigAl.NZ | last post: by
reply views Thread by NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.