You need to sign in to do that
Don't have an account?
SirishaM
Body did not Load -error
Hi,
I wrote a VF page using the same yahoo tool bar used in blog application.
My page is sometimes loading properly sometimes it is not.
This is the code I used:
where Assignment is my custom object,
Description,duedate are custom fields
Can anybody please tell me whats wrong in the code ?
Thanks,
Sirisha
I wrote a VF page using the same yahoo tool bar used in blog application.
My page is sometimes loading properly sometimes it is not.
This is the code I used:
Code:
<apex:page showHeader='true' standardcontroller="Assignment__c"> <apex:form> <apex:pageBlock> <!-- Skin CSS file --> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/skin.css" ></link> <!-- Utility Dependencies --> <script src="http://yui.yahooapis.com/2.3.0/build/utilities/utilities.js"></script> <!-- Needed for Menus, Buttons and Overlays used in the Toolbar --> <script src="http://yui.yahooapis.com/2.3.0/build/container/container-min.js"></script> <script src="http://yui.yahooapis.com/2.3.0/build/menu/menu-min.js"></script> <script src="http://yui.yahooapis.com/2.3.0/build/button/button-beta-min.js"></script> <!-- Source file for Rich Text Editor--> <script src="http://yui.yahooapis.com/2.3.0/build/editor/editor-beta-min.js"></script> <div class="yui-skin-sam" style="display:none" id="editor" align="center" ><p /> <h2>Assignment Description </h2> <apex:pageBlockSection> <apex:inputField value="{!Assignment__c.Course__c}" /> <apex:inputField id="Duedate" value="{!Assignment__c.Due_Date__c}" /> </apex:pageBlockSection> <apex:inputtextarea id="Description" cols="500" rows="50" value="{!Assignment__c.Description__c}"/> <apex:commandButton value="Save" action="{!Save}" onClick="beforeTextSave()"/> <p /> </div> <script type="text/javascript" > var myEditor; window.onload = function init() { myEditor = new YAHOO.widget.Editor('{!$component.Description}', { height: '400px', width: '722px', dompath: true, animate: true }); myEditor.render(); document.getElementById('editor').style.display=''; } function beforeTextSave() { document.getElementById('{!$component.Description}').value = myEditor.getEditorHTML(); } </script> </apex:pageBlock> </apex:form></apex:page>
Description,duedate are custom fields
Can anybody please tell me whats wrong in the code ?
Thanks,
Sirisha
the old example is due for a re-write.
This works with no errors:
Message Edited by Ron Hess on 05-14-2008 11:52 PM
Thanks again !!
Sirisha
I was able to come up with a slick little hack in this thread:
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=16584&jump=true#M16584