Login Register

html

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

JSON in an HTML template

Hello,

I would like to achieve something like this:
var Membre = some object;
and in the body of my HTML file:
Hello, Mr ${Membre.FirstName} ${Membre.LastName}

Basically, I'm fetching my data using an ajax call without any problem, but then, I don't know how to display them. I looked at widgets but this doesn't seem like the right solution... If somebody can help me on this...

Thank you.

Dojo with Struts' tags

Hi everyone,

Well, I've been having some quite boring problem that I couldn't figure out a way to fix it.

I have a jsp this old code, where I use dojo_0.3.1 and I wanna change dojo for the latest release.

/dojo-0.3.1-editor/dojo.js" type="text/javascript">

//EDITOR HTML
    dojo.require("dojo.widget.Editor");

Descrição Português

0.4 dojo.html.show( ) becomes 1.1 dojo... ?

Porting 0.4 to 1.1.

Can't find replacement or suggested alternative anywhere in porting guides, api searches, etc for:

dojo.html.show()
dojo.html.hide()

Anyone know if there's a replacement for these?

Thanks!

dojo.html.getAbsolutePosition(...) does not work in 0.4.3 tapestry script under firefox

dojo.html.getAbsolutePosition(...) does not work in 0.4.3 tapestry script under firefox

Folks,

I rendered a gallery widget on a T-4.1.6 page, and ontop of each image I just create a text node as a child and write some transparent text. So it is rendering.

In IE the child node places fine and I do not have to muck with position except for the X.

In firefix, both X,Y position are messed up. So I have to set manually. 5,5 is desired coordinate relative to the image (top left message text).

Custom HTML Attributes

I am currently evaluating Dojo, YUI and jQuery. One thing I notice with Dojo that doesn't sit that well with me is the use of custom HTML attributes. Using custom attributes causes problems with validation.

Instead of using dojoType="dijit.layout.AccordionContainer" what is wrong with attaching via CSS class or ID in the javascript. Eg. dojo.setType(document.getElementById('accord'), 'dijit.layout.AccordionContainer');

Rendering HTML tags within Dojo Dialog boxes

Hi all,

I am new to Dojo. I would like to render strings (that have html tags) in a Dojo dialog box.

At the moment, when I pass a string as a value to a Dojo dialog box, it prints out that string and ignores the "\n" characters in the string. Hence, I changed all "\n" characters to "br" html tags. Now, I need to find a way to render these "br" html tags in the dialog box. I have gone through many websites but have not found a way to do this. Is this possible and how would I do it?

Thank you very much.

HTML compliance possible?

Been working now for a couple of days with dijit, very nice, i like! Only drawback i've encountered so far is the use of attributes like:

<input type="text" name="name" value="" dojoType="dijit.form.ValidationTextBox"/>

Makes it quite impossible to validate large HTML files as they are full with errors. Is there any way to circumvent this incompliance?

Ta!

Syndicate content