Login Register

0.4

migration of dojo.html selection functions

Hello all,

Anyone knows what are the dojo 1.2 functions that correspond to the following from dojo 0.4:
dojo.html.clearSelection();
dojo.html.selection.getType()
dojo.html.selectionType.TEXT
dojo.html.selection.getSelectedText();
dojo.html.selection.getParentElement()
dojo.html.selection.getSelectedHtml();

thank you very much,

Rami

dojo.html.getPaddingBox() migration

Hello all,

Cannot find the equivalent to 0.4's
dojo.html.getPaddingBox()
in 1.2.

Have found that dojo.marginBox() does exist (migration of dojo.html.getMarginBox), but a padding-box parallel doesn't exist.

thank you,

Rami

migration of getAbsolutePosition with different box-types

Hello all,

What would be the equivalent to 0.4's
dojo.html.getAbsolutePosition(spanObj, true, dojo.html.boxSizing.CONTENT_BOX)
?

I know that dojo.coords() replaces dojo.html.getAbsolutePosition(), but it doesn't accept a boxType. It only accepts the first 2 params.

thank you,

Rami

dojo.html.getScroll() migration

Hello all,

How one migrates from 0.4 the following func?
dojo.html.getScroll()

thank you,

Rami

getElementsByClass() migration

Hello all,

0.4 used to have
dojo.html.getElementsByClass
It doesn't exist in the new versions.

What should it be changed to?

thank you,

Rami

deprecated dojo.string.isBlank()

Hello all,

We are migrating from dojo-0.4 to the new dojo-1.2 .
dojo.string.isBlank() used to exist but no more.
Could not find any documentation about it or a replacing function in the new library.

Before adding a proprietary function, does anyone has a reference to the new func?

thank you,

Rami

Syndicate content