File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes I have used Dojo and I want to know Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "I have used Dojo and I want to know" Watch "I have used Dojo and I want to know" New topic
Author

I have used Dojo and I want to know

Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Hi Frank Zammetti,

I used Dojo while developing a j2ee project(struts 1.1 based).It seemed pretty easy.But I really should like to see more support for ajax into dojo toolkit.And one thing i noticed was,the webpages seemed to load a bit slower(because of the parsing and all).

Why these days more importance is given to JSON?
and also I want to get guidelines in developing certain dojo widgets and scripts.
auto complete implementation
filling of one combo box based on the value in a textbox/combo box
moving value between combo boxes(a drag and drop).


I just heard a news that Dojo is being supported by IBM in their next RSA 7.5 release.What will be the benefits got by the developers using RSA in their new release with this support?
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Ok, so a couple of questions... first, about Ajax functionality... I think Dojo actually has some of the most robust Ajax functionality out there, what specifically do you think is missing?

About JSON... I think people have jump on JSON for a couple of reasons. First, it's extremely simple to both create and parse. That in fact might be the #1 reason(s) it's become so popular. Second, it's still human-readable like XML is... to be sure, you can make either totally obtuse and unreadable, and it's probably fair to say that good XML is *somewhat* more readable than good JSON, but it's not by much, and JSON is readable. Third, because JSON is so easy to parse specifically, it's very fast. The same has never been true for XML on the client (even on the server there's more overhead than you'd like generally). JSON is also more terse, usually, than XML, and so is less expensive to transmit over the wire.

The question about creating widgets I'm not sure I understand... are you talking about creating your own widgets?

As for IBM's backing of Dojo, I think I'd defer to the Dojo folks themselves to describe the implications of that.


-- <br />Frank W. Zammetti<br />Founder and Chief Software Architect<br />Omnytex Technologies<br /><a href="http://www.omnytex.com" target="_blank" rel="nofollow">http://www.omnytex.com</a><br />AIM/Yahoo: fzammetti<br />MSN: fzammetti@hotmail.com<br />Author of "Practical Ajax Projects With Java Technology"<br /> (2006, Apress, ISBN 1-59059-695-1)<br />and "JavaScript, DOM Scripting and Ajax Projects"<br /> (2007, Apress, ISBN 1-59059-816-4)<br />Java Web Parts - <a href="http://javawebparts.sourceforge.net" target="_blank" rel="nofollow">http://javawebparts.sourceforge.net</a><br /> Supplying the wheel, so you don't have to reinvent it!
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Ya I would love to develop my own widgets like the ones I specified which I felt is missing from the library.
Can grid be customised to including components like checkboxes or so ,so that I can connect the events to action classes in my struts project.
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Yes, I believe you can host other widgets inside the grid.

Developing widgets is something I haven't gotten into, so I can't comment much there. I can say that I've seen virtually no documentation of doing that, which is unfortunate. I could have missed something somewhere, but I'd personally like to see some real solid documentation on that topic since that's a frequent suggestion from people when something Dojo includes out of the box doesn't quite cover you (the current insistence by the Dojo team to not re-introduce a proper MenuBar widget is a good example of where you might want to do this).
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
I am a student and I like to test and learn new technologies and methods.
In which way your book will help me enhance my skills
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
And a word about security.
I remember seeing dojo code like
what to do on error and on validation and all in my html.
Is that a direct threat to security,because I can edit that code and fool my server easily,like the flaw of a javascript validation.
Is there any workarounds to solve this?
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Hello Frank,no opinions yet?
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Gotta give me a little time to respond, I had to actually sleep last night

Security is a very tough topic in ANY JavaScript environment... there's plenty of ways security can be breached. That being said, I don't perceive Dojo and being any worse than any other library out there. You are correct, Dojo provides callbacks for various situations that can arise when making an Ajax request, but that's the case for virtually every library out there. I'm not sure it's something you need to "work around" at all.
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Ya thats a point.Why cant we indulge more into providing encryption in a way?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I have used Dojo and I want to know