0

Issue In INTBOX with IE Browser

asked 2011-09-13 04:53:58 +0800

siva477 gravatar image siva477
57

updated 2011-09-13 07:27:37 +0800

Hi

I have used 2 int boxes in my application and used onblur event for the first one.
But i couldn't enter values to my second intbox after onBlur event.

I am getting this issue only in IE and that too only in first attempt.

Please suggest me how to solve this issue.

Here is the sample Code for this issue


<?xml version="1.0" encoding="UTF-8"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
 

<zk xmlns="http://www.zkoss.org/2005/zul"
	xmlns:h="http://www.w3.org/1999/xhtml"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
 
	<grid>
		<columns>
			<column width="150px" />
			<column />
		</columns>
		<rows>

			<row visible="true">
				<label value="intbox 1" />
				<hbox>
					<intbox id="intbox1" maxlength="1">
						<attribute name="onBlur">
							changeProperty(intbox2);
						</attribute>
					</intbox>
				</hbox>
			</row>
			<row visible="true">
				<label value="Intbox 2" />
				<hbox>
					<intbox id="intbox2" maxlength="5"
						readonly="true">
					</intbox>
				</hbox>
			</row>


		</rows>
	</grid>

	<zscript>
	void changeProperty(Intbox intbox2) {
		intbox2.setReadonly(false);
		intbox2.setText("0");
	}
</zscript>

</zk>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-09-14 06:31:50 +0800

siva477 gravatar image siva477
57

Add select property for intbox2.


Add this line in changeProperty() method:
             
       <b >     intbox2.select();</b> 

link publish delete flag offensive edit

answered 2011-09-15 21:24:15 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Please post it to our bug tracker.

Thanks.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-09-13 04:53:58 +0800

Seen: 237 times

Last updated: Sep 15 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More