You need to sign in to do that
Don't have an account?
Eric_Santiago
Definitive Dojo Documentation
Is there any definitive documentation on using the Dojo Toolkit (http://dojotoolkit.org) in Salesforce Scontrols?
There is a small mention about Dojo in the AJAX Toolkit document (http://www.salesforce.com/us/developer/docs/ajax/index.htm). Other posts in this forum have mentioned that Salesforce now hosts version 0.4.1 of the Dojo toolkit. However, there is little documentation to be found on the paths necessary to call the required files.
I'd like to create an scontrol that uses the Dojo Editior (http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/advanced-editing-and-display/editor-rich-text) to give the user WYSIWYG controls for a text area.
Unfortunately, its hard to find out A) what is the latest version of the toolkit Salesforce is hosting/supporting and B) what are the proper relative urls for dojo.js and dojo.css.
I'd greatly appreciate any assistance. I'll even offer to add this information and working code to the Wiki to pay it forward.
Message Edited by Eric_Santiago on 02-28-2008 10:39 AM
There is a small mention about Dojo in the AJAX Toolkit document (http://www.salesforce.com/us/developer/docs/ajax/index.htm). Other posts in this forum have mentioned that Salesforce now hosts version 0.4.1 of the Dojo toolkit. However, there is little documentation to be found on the paths necessary to call the required files.
I'd like to create an scontrol that uses the Dojo Editior (http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/advanced-editing-and-display/editor-rich-text) to give the user WYSIWYG controls for a text area.
Code:
<script src="/js/dojo/0.4.1/dojo.js"></script> <script type="text/javascript"> dojo.require("dijit.Editor"); dojo.require("dojo.parser"); </script> <script src="/soap/ajax/8.0/connection.js"></script> ..... <textarea dojotype="dijit.Editor" stylesheets="/js/dojo/0.4.1/resources/dojo.css"> <p> This editor is created from a textarea . </p> </textarea>
Unfortunately, its hard to find out A) what is the latest version of the toolkit Salesforce is hosting/supporting and B) what are the proper relative urls for dojo.js and dojo.css.
I'd greatly appreciate any assistance. I'll even offer to add this information and working code to the Wiki to pay it forward.
Message Edited by Eric_Santiago on 02-28-2008 10:39 AM
/js/dojo/0.9/dojo/dojo.js
All that would need to be done is to implement functions to pull the necessary field from an object and write the formatted value back. Anyone care to take a stab at that? In any case, more advanced options for the editor can be found at http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/advanced-editing-and-display/editor-rich-text .
Message Edited by Eric_Santiago on 03-18-2008 03:43 PM