Login Register

dijit.form

New dijit.form.TextBox overwrite original HTML attributes

Hello there I am new to dojo and I have a problem with adding dijit.form object to existing tag. When doing so I am losing all of the original attributes in the input tag. My code is very simple, see example below. In the example below the name and value attribute of input(username) are gone after the initiation of the object.

The question, is is it normal?

form.js file

var username = new dijit.form.TextBox({
		trim: true
},dojo.byId("form_username"));

form.html file

filteringSelect and required="true"

I just discovered the very cool dijit.byId("myForm").validate functionality! Works great, but I'm not seeing anywhere on how I might hook up a filteringSelect.... I tried the basic stuff like inserting a required="true" into the filteringSelect declaration, but no luck. Anyone done this?

Thanks!
Nathan

[ValidationTextBox] - How to Show the Prompt Error Message ?

Hi !
I have a understandable problem on dojo and I believe you can help me.

I use a ValidationTextBox, and when the user click on the submit button, I check all the elements into a function.

In this function I do dijit.byId('myElt').isValid (true) and if it's not valid, I would like to display the prompt message.

IE6 dijit Button border bottom is not showing up and I can't get the button down to 15x15px

Has anyone run into the problem where the button won't size properly in ie6 and the bottom borders are missing?

I've added a button to the right side of the titlepane widget and it works and looks great in FF and IE7 but in IE6 it overflows and pushing the wipe content over to the left doesn't size to 15x15 and the bottom border of every button in the page is missing... I've got lots of pages with buttons but this is the only one that is really hurting. Any ideas?

dijit form elements and tabs

Hi,

I have a strange bug (possibly) on Internet Explorer 6/7 where using tabs containing various form widgets such as a dijit.form.ValidationTextBox is causing problems.

If I click in a textbox for example on Tab1, the blinking cursor appears in it but then if I switch tabs to Tab2 - I can still see the blinking cursor in the same position as it is on Tab1. Everything else from Tab1 is no longer showing. I've also noticed sometimes the little yellow warning triangle gif is 'left' on the screen too.

Has anyone come across this before?

Many thanks,

Ian

Syndicate content