Login Register

parser

Hiding page elements while widgets parsing (IE6)

Hi all.
Let me describe the problem.

First of all - let's go through dojo widgets' (dijit) rendering process. It consists of 2 basic steps:
1st: parser searches whole page (if parseOnLoad = true) or custom element (if parseOnLoad = false and we're invoking dojo.parser.parse manually) for 'dojo-compatible' elements (I mean dojoType='...' and so on).
2nd: It replaces old elements with the new ones ()
2nd_a: we are happy - we can use awesome dojo widgets

BUT:

Trouble subclassing Moveable when using parser?

I believe I've found a bug in Dojo 1.1.1, where objects instantiated using the parser cannot be successfully subclassed. My demo code subclasses dojo.dnd.Moveable so that the objects start in random positions on the screen. I include two versions: one that works (using addOnLoad()), and one that doesn't (using the parser).

Markdown parser progressing

I continue working on Markdown parser and for now it already supports:

  • span elements (bold, italic, inline images links and code)
  • settext and atx headers
  • code blocks
  • blockquotes, partly supported for now (in some cases output differs from original Markdown output)
  • horizontal rules
  • backslash escaping for special chars (\*, \`, etc)

Markup previews project: basic parser implemented

This week I was working on a parser implementation and made some progress.

The parser I implemented consists of language definition part (where all tokens are defined), function definitions which process a particular token and a scanner that processes text, detects tokens and applies these functions.

Markup previews project: status report

The previous week was really hard for me. I had to do a lot of university stuff,
so unfortunately I had no chance to spend much time on my project.

But I did some research earlier though.

ToolTipDialog

I am working with the ToolTipDialog dijit and am having some problems putting more than one on a page. I am populating a div using ajax and innerHTML, in the html there is a table containing a drop down button in one column, after the html is set i am calling parser.parse(). When there are mutiple rows in the table i used a unique id for each ToolTipDialog dijit to avoid javascript errors for having multiple dialogs with the same id. The problem comes after the parser is finished.

aSynch problems during initial parsing in IE?

I hope I've posted this in the correct forum. After looking at other posts it seems like it would get moved here even if I posted in the dijit forums initially.

I have a significant amount of experience with Dojo and am currently developing a set of widgets that will allow users to configure shipping options for eBay listings with a third party listing application. I will see if I can post a link to the application if needed, but for right now it easier to just describe the problem.

Is it possible to use declarative markup in a template made of just dojo widgets and get it parsed?

Is it possible to use declarative markup in a template that is just constructed of dojo widgets. I've found dojo.parse.parser(element); that will scan all the child contents of the that domNode and create the widgets but it doesn't work if the element passed is itself a widget? Any suggestions? Trying to use just dojo widgets and not apply anything but positioning to them to take advantage of all the support built into them.


// template file source

xhrGet not being parsed correctly

Reading through the posts this seems to be a common newbie problem.
I have a webpage with a tree down the left hand side acting as a menu.
The centre pane contains a split container with two content panes.
The first content pane has two dnd sources and the second pane has one further dnd source.
What I want is that when I click on a node in the tree the entire centre pane will update (a xhrGet call to the php file generating the dnd sources).
When I make this xhrGet call I need to parse the centre pane again, using dojo.parser.parse(dojo.byId("centre"));

Error on replacing innerHTML and calling parser.parse()

Hi, I am getting the following error:

"Tried to register widget with id==db_2 but that is is already registered"

It happens when I get html from the server to replace one div on the page. I tell it to be parsed with dojo.parser.parse(fillId); but it throws that error. I've looked through the forums and found other people with the same problem: http://www.dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/already-r... and some more but none which worked for me (other's I didn't understand).

Syndicate content