473,394 Members | 1,155 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1658
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

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

Similar topics

1
by: w.p. | last post by:
Hello! I want change default tab traversing in my app. But i don't know how to do it :( Belowe i include simple example - i want change default tab order: radiobutton "mode11" -> radiobutton...
5
by: John Baro | last post by:
Where is my TabStop property. I want to prevent tabbing to a label. In the MSDN it shows Label.TabStop Property This member supports the .NET Framework infrastructure and is not intended to be...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
3
by: Rob Mayo | last post by:
I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control management on the web server. Programmers A & B...
7
by: Doru Roman | last post by:
Hi, What is the fastest way to evaluate manually the result in this case: int a, b, c; a = 255; b = 122; c = a & b; The only way I know is transforming each number into the binary value...
8
by: Mike S | last post by:
Hi all, I noticed a very slight logic error in the solution to K&R Exercise 1-22 on the the CLC-Wiki, located at http://www.clc-wiki.net/wiki/KR2_Exercise_1-22 The exercise reads as...
0
by: BigAl.NZ | last post by:
Hi Guys, I am trying to write/copy some code that uses events with a GPS. Everytime the GPS position updates the event fires. The GPS code is from a SDK Library that I got called GPS Tools...
6
by: robert | last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread. It is mainly with cookielib, but remember the...
1
by: janki | last post by:
When through one webservice we are doing "update" operation and before doint "commit" , that instance crashes..now if i want to create some recovery service..i need to release locks ..but when i try...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.