Login Register

html

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

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

HTML and dojo widget in a string returned from Ajax-PHP response

I'm fine up to the point of returning data from the server and changing the HTML tag's innerHTML, but the Dojo widget embedded in the HTML is disabled (inline edit, to be specific). I'm guessing I have to reparse the widgets coming from the server response. My code's fine. All I need to know is how do I parse a widget copied in, not created programmatically?

Insert HTML code to a DOM node

Hello guys, i'm new here and have a question, do you know a way to add HTML parsed string to a DOM node like dojo.place adds a DOM node to another?, i have seen that there is a dojo.html object that makes this but i don't know if it's on an old version or it's new, the fact is that it's not on version 1.1.1. If it's old, what is the new instruction to do the same?, if it's new, is there another way to insert the HTML code moreover DTL way? i think DTL is to do more complex things. Regards

DOJO Guru needed for Remote working

URGENT
WE are looking for a DOJO GURU who can take our lovely front end HTML/Javascript screens and clean up the back end ready for integration into JAVA/Stuts 2 Application
3 Different Projects - Tight Deadline - good rates for right person plus chance of more work
e-mail: peter.turnbull@atomus.co.uk

DOM/html scoping problem is causing a "dijit.byId is not a function" error on dijit.byId()

I have been struggling with the dijit.byId is not a function for a while. I believe it is not a parsing (onAddLoad) problem. Although I am not sure. I suspect it to be a scoping issue with my html.

I get the following errors in firebug when I set a breakpoint a checkbox handler: undefineddojo._scopeArgs = [undefined];

"dijit.byId is not a function"

Here is a copy of html file:

Dons Book Checkbox

Dojo Editor Example with HTML Source Editing

I created a demo where the raw HTML of the Dijit Editor can be modified in real time. The demo can be found (here). A floating pane is displayed with the HTML source of the editor.

The article on how this is done can be found (here). It provides information on parts of the code.

_________________________________
rubicorp.com

Add Custom HTML Attribute to Widget?

Prior to Dojo 0.9 it was apparently possible to add a custom HTML attribute to a widget and then retrieve that custom attribute from the JavaScript extraArgs array. This functionality was dropped as evidenced by:

http://dojotoolkit.org/book/dojo-porting-guide-0-4-x-0-9/widgets/custom

where it states:

extraArgs - deleted - declare all parameters to your widget as attributes in the widget

Say that I would like to add the following custom attribute myAttribute as follows:

Rendering HTML and Javascript

Hi,

i have a big problem. I must create with dojo static websites.

Explanation:
I have generated a dynamic web application with dojo. But now i got a request to optimize the page for a search engine. I can't use jaxer on the server, so i can't render it on server side.

Question:
Is it possible to generate static files for a search engine during the dojo build process with rino?

I hoooooooooooope somebody can help me.

Cheers

Syndicate content