Login Register

text

Textfields where property name contains an apostrophe

It seems that dojo has a hard time attaching a dijit to a textfield whose name property contains an apostrophe...

As I am using Struts2 (that relies on OGNL), a property backed by a Map might look like this:

<input type="text" name="countryName['en']" id="countryInEnglish" />

If I try to attach a dijit.form.ValidationTextBox to that node, dojo turns the name property into: ""

Is there a way of preserving the name of the property as I intend it?

(I tried escaping the apostrophe, to no avail.)

(Barely) Working Text Effects!

After trying unsuccesssfully for about a week to split a block of text into spans of words or letters, I finally followed the KISS rule and made something work. Originally, I was trying to recurse through every non-textNode and split the textNodes inside their parentNodes so any HTML inside the supplied node would remain intact. However, some HTML "features" (and lack of sleep) prevented all my attempts from providing me with what I thought would be a simple, robust, and efficient bit of magic.

problems with hiding text fields in IE7

Dear developers,
I am working on updating company's website and I have problems with a hiding dojo text field(type="text") in IE. When I am trying to switch between tabs, this fields remain on the screen. Once you roll your mouse over, it disappears. We use "style.display=='none'" to hide it. This problem appears only in IE7. In FireFox or Opera we don't have this problem.
If anybody know how to deal with this issue, please respond.
Thank you for your help!
Kostya

text length in pixels

Is there a way to measure text length in pixels in dojo 1.0.2?

Viewing/Opening Text File within a text area?

I have just recently begun using the Dojo tool kit and have run into an issue/requirement that I'm not sure how to accomplish. I would like to have a page that loads a specified text file into a designated area. The file is just going to be a log dump (.txt) that I would like to be able to access from the web. It sounds like it should be something that can be done, however it may be a simple lack of web design skills and not a Dojo limitation.

Thank you all for any advice,

Alexander Block

Syndicate content