Login Register

textbox

keypress problems in a TextBox on a dialog, launched from a dialog

I'm trying to launch a dialog from a dialog. On the second dialog with a textbox, I'm having problems with keypresses. Under IE7, I can't type in that textbox at all, while in FF2, I can type, but can not hit back space. This seems to be new in dojo 1.1.x. This was working in previous versions of dojo.

Is there a trac log for this? Is there a current work around?

Here is an example with the issue:


<html>
<head>
<style type="text/css">
/* <![CDATA[ */

onFocus & onBlur with dijit.form.TextBox

When I tried onBlur & onFocus in the normal "type=text" box with javascript, I got the proper response. But when I tried with dojo (dojoType=dijit.form.TextBox), I am not getting the response.

The code that I have is:

<input dojoType="dijit.form.TextBox" value="Enter Order Number" id="orderNumberInput"
trim="true" propercase="true"
onFocus="if (this.value==this.defaultValue) this.value='';"
onBlur="if (this.value=='') this.value=this.defaultValue;"/>

TextBox and a ghosted default value background

My boss likes the text boxes that have a ghosted default value that goes away when you click in the box. I did a search but I don't know if I used the right keywords. Is this possible with the textbox widgit? I know about promptMessage but he doesn't like that as much as the ghosted default value. Thanks for any help.

editor: dojox.grid.editors.Dijit, editorClass: "dijit.form.TextBox" can't work in IE

When I double clicked the grid cell to edit ,the textbox showed in the cell,but i can't edit the cell.Who knows how to solve this problem??

How to create a text field with autofill

I'm trying to figure out how I can code/configure a textbox to have an autofill or suggestion feature. The idea is that after the user has typed the first couple of letters then the code would make a call to a server process (servlet) to get back the list of similarly spelled suggestions. If there are any results then a drop down menu pops down just below the textbox and the user can select one of the items.

Any ideas would be greatly appreciated.

Dijit.TextBox widget slow focusing performance on IE6, IE7. OK on FF

hi everybody!

When I add a large number of dijit TextBox widgets to my page (say around 75). the focusing of the TextBox widgets via mouse click becomes really slow in IE6 and IE7 (around 500ms). Tabbing the focus works a little faster but the lag is still noticable. In addition, these TextBox widgets are causing the menu on my page to lag.

On Firefox 2, everything works just fine.

I'm using a nightly build from about a week ago.

anyone out there seeing something similar? any suggestions?

thanks

Having a TextBox as a MenuItem in a Menu

Hi,

How can I add a TextBox as a MenuItem in a menu?

I want to do something like:

//"Create Script" Menu
	var csparams = {id:"createScriptDialog"}
	var createScriptMenu = new dijit.Menu(csparams,document.createElement("div"));
	
	var params1 = {id:"csMenuItemText"};
	var csTextMenuItem = new dijit.MenuItem(params1,document.createElement("div"));
	createScriptMenu.addChild(csTextMenuItem);
	
	//"Create Script" TextBox
	var tbparams = {id:"createScriptInput"};
	var textField = new dijit.form.TextBox(tbparams,document.createElement("div"));

forward onkeyup event in dijit.form.TextBox

For my current project I want to use the keyup event on TextBox to grab the current value when "Enter" is pressed. Is it possible to include the forwarding of the event object to the event listener in future releases? It's only a small patch for the TextBox necessary to include this functionality.

Text box in Accordian pane

When i place a Text box in an accordion container with some text in it and try to move the cursor in the textbox using Left and Right arrow keys of the keyboard, the accordion pane animation happens rather than the cursor to move inside the text box.

Is this the normal behavior of this widget? If not how to avoid this?

Syndicate content