Login Register

xml

Display and xml data fetching problems

Hi everybody,
I am coming here in hope for an answer to a situation I am having at with a Grid widget. I would like to use this widget to display xml data in an iframe. The iframe would contain the grid and a few buttons below the grid for UI actions.

I ran into three problems:
- first problem, solved: the xml file has a very weird way of referencing fields. Instead of :
* either <row><field1>value-of-field1</field1> (no attribute map needed)
* or <row field1="value-of-field1" field2="...></row> (attribute map with syntax "row.field1":"@field1")

Constructing Tree using content from xml file

Hi All,

I'm new to Dojo and JS and I'm looking to represent an XML file using the tree widget. I have seen some posts on this but not getting anything. can any one give me working example for the above scene.

Thanks.

XML dataset?

I have a large intranet I've built using Adobe's Spry to read in XML files which populate many sections of the website. I'd like to figure out how to use Dojo to do the same thing, but for the life of me, I'm stumped. I've been to the site several times now, and can't find a clue as to how to go about getting started.

I did get Dojo installed, and got a lightbox gallery working - which works great and was pretty easy - but I need to do some "real" data work now, and simply can't figure out where to start.

What's the Dojo way for XML getElementsByTagName?

What's the right Dojo way to do the following, where I want to get a value for an element from the XML reply to an xhrPost?

function RequestSubmittedSuccessfully (data, ioArgs)
    {
        var elem = data.getElementsByTagName("Filepath")[0];
        if (elem != null) {
            var fp = elem.firstChild.nodeValue;
            // ...
        }
    }

BTW, here's the data:

1216745579265.ext
C:\alpha\beta\gamma

Dojo and W3C validating XHTML1.1 [example]

Here's a small example on how to pass W3C validation while enjoying Dojo's de facto standard of mixing-in new attributes. This approach leverages XHTML1.1 Modularization http://www.w3schools.com/xHTML/xhtml_modules.asp.

W3C Validating XHTML: http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.html
Original HTML: http://archive.dojotoolkit.org/dojo-2008-07-01/dojotoolkit/dijit/demos/f...

Differences (HTML formatted): http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.diff.html
Differences (diff -u): http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.diff.txt

XML backend for dijit trees and grids

For the last couple of days, I've been trying to find the way to use the XML backend of the dijit.Tree widget, as the documentation says it should be possible. Quoting http://dojotoolkit.org/node/3157:

The easiest data-driven way to approach this uses dojo.data. Dojo.data reminds Andy of ODBC in the Windows world, JDBC in Java, and DBD in PHP (Andy gets around.) Though dojo.data can talk to many different kinds of backing stores formatted in CSV, XML or HTML, Andy picks JavaScript Object Notation, or JSON.

dojo.xhrGet and local XML files in Mozilla

I am trying to use dojo.xhrGet to load an XML file when all my pages are loaded from the local filesystem (not on a server). The file contains valid XML but does not have an XML extension (let's say it's xml_data.dat).

Because it's a local file, no http headers are used to set the content/mime type as it looks like Mozilla (Firefox 2 and Seamonkey) is trying to guess the mime type by file extension. That fails and I only get a responseText in the xhr.

I got around it by using XMLHttpRequest.overrideMimeType() method available in Mozilla browsers.

Parse XML String

How to parse an XML string using DOJO. The only examples I seen included older version of DOJO. Is there a newer version of DOJO that can parse XML file?

Thanks
Nags

extending dojo.query to fully support xml

About dojo.query and XML

Apparently dojo.query drops tag names to lowercase which is makes it incompatible with xml documents that are not already in lowercase.

I'm interested in fixing this but there's probably some good reason for this behavior. Could someone outline a good approach for this patch that will not cause regressions against the HTML dom or compromise the performance of the system?

Thanks!

Dojo XML Doctype/DTD...?

I'm curious, and I have been wondering this for a while now, are there any plans to release a document type definition that supports the Dojo proprietary XML attributes?

Syndicate content