function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
webdbprojectwebdbproject 

Pick a date window

Hi
How to call the pick a date window in Salesforce Ajax?
 
Thanks :smileyhappy:

Message Edited by webdbproject on 06-02-2006 02:07 PM

zachzach
I've been wondering the same thing, among others...  I'd also like to know how to get the lead & account pickers to work.  I'm to the point where the links I have will open up the picker and the picker will have values, but when I click on one of the values it won't populate my page... It pretty much does nothing & give me the following error in the Firefox Javascript Console:

uncaught exception: Permission denied to get property Window.lookupPick

Thanks,
-Zach

--edit--

Here's what I have so far that seems to work to launch the calendar:

Code:
<a href='#' onClick="openPopupFocus('https://na1.salesforce.com/home/calendar.jsp—form=editPage&field=tsk4&mo=0', '_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);"><img src='images/calendar_icon.gif' style='float:left;' /></a>

 

I also have these .js files linked:

Code:
<script src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js—browser=true;" type="text/javascript"></script>
<script src="http://sandbox.salesforce.com/ajax/sforceExplorer/dhtmlXCommon.js" type="text/javascript"></script>
<script src="http://sandbox.salesforce.com/ajax/sforceExplorer/dhtmlXTree.js" type="text/javascript"></script>
<script type="text/javascript" src="https://na1.salesforce.com/js/session.js"></script>
<script type="text/javascript" src="https://na1.salesforce.com/js/functions.js"></script>
<script type="text/javascript" src="https://na1.salesforce.com/js/setup.js"></script>
<script type="text/javascript" src="https://na1.salesforce.com/js/roletreenode.js"></script>

 
--edit again--

The form that your textbox is in also needs to be named 'editForm'

Message Edited by zach on 06-06-2006 10:50 AM

Message Edited by zach on 06-06-2006 10:57 AM

webdbprojectwebdbproject
Thanks and I got it.