469,333 Members | 4,679 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,333 developers. It's quick & easy.

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

5
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.

Thanks!
Sep 12 '07 #1
5 1529
acoder
16,027 Expert Mod 8TB
Post some code or a link to a test page.
Sep 13 '07 #2
Anja N
5
Post some code or a link to a test page.
The htc "field.htc" is as follows:
------------------------------------------
[HTML]<html>
<head>
<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()" />

</PUBLIC:COMPONENT>

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

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

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

function _focus()
{
_input().select();
}
function setfocus()
{
//alert('focus');
}

</script>

</head>

<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%' >

</body>

</html>[/HTML]

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

[HTML]<html XMLNS:test>
<head>
<?IMPORT NAMESPACE="test" IMPLEMENTATION="field.htc" />
</head>
<body>
<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>
<tr width="100%">
<td width="50%" ><test:field value="Input field3" /></td><td width="50%" ><test:field value="Input field4" /></td>
</tr>
</table>
</body>
</html>[/HTML]


#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
gits
5,390 Expert Mod 4TB
hi ...

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

[CODE=html]
... your code goes here ...
[/code]

kind regards
Sep 13 '07 #4
Anja N
5
Thanks for bringing that to my notice. Also, thanks for fixing my message.
Sep 14 '07 #5
Anja N
5
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.