• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

Why doesn't the ColdFuison 8 flash form display in Safari when it displays in other browsers?

I am trying to accomplish the following:  A user has the ability to pick a date as a start date and an end date.  The caveat is that they are only allowed to pick a date within the previous 90 days only.  If the date is outside of the 90 days, the days are grayed out.  Once they have chosen the dates and other information, I am then sending all that information to another pager.  I have limited space for displaying purposes.  

I have tested the following code in both IE 6, IE 7, and FF 3 and the calendar is showing correctly.  But once I test in Safari on a Mac or Safari for PC, the flash format form does not show up.  I have used the cfcalendar tag and the calendar shows up on Safari.  I am also able to use a form without being a flash and the calendar will show display properly, but my issue with using this option is the ability to gray out the dates.  The combination seems to be a flash form and an input field type datefield.  

 I am running Coldfusion 8.0.1.  Flash version 10.0 & Safari 3.0.  

Does Safari support this?  If so, what am I missing to make this code work in Safari?  If I have to use the cfcalendar, is there a way to gray out the dates and make the calendar smaller on load of the page?  Any help would be greatly appreciated.  
<cfset startDate = "#dateAdd('d',-90,now())#">
<cfset endDate = "#now()#">
 
<cfoutput>
 <cfsavecontent variable="loadFields">
    var startDate:Date = mx.formatters.DateFormatter.parseDateString("#startDate#");
    var endDate:Date = mx.formatters.DateFormatter.parseDateString("#endDate#");
    DTStart.selectableRange  = {rangeStart:startDate, rangeEnd:endDate};
    DTEnd.selectableRange  = {rangeStart:startDate, rangeEnd:endDate};
</cfsavecontent>
</cfoutput>
 
<cfform name="Calendar" format="flash" onLoad="#loadFields#" width="100%" action="#myString3#" method="post">
<cfformgroup type="horizontal">
 <cfinput type="datefield" name="DTStart" label="Start Date:" width="100">
  <cfinput type="datefield" name="DTEnd"  label="End Date:" width="100">
   <cfinput type="image" name="Submit" value="Submit" border="0"> 
</cfformgroup>
</cfform>

Open in new window

0
DADITWebGroup
Asked:
DADITWebGroup
  • 2
2 Solutions
 
erikTsomikSystem Architect, CF programmer Commented:
check if flash player installer on safari
0
 
DADITWebGroupAuthor Commented:
Hi Erik,
From installed plug-ins

Shockwave Flash
Shockwave Flash 10.0 r12  from file NPSWF32.dll.
0
 
SidFishesCommented:
your code works for me using safari 3.1 for win
0
 
DADITWebGroupAuthor Commented:
Thank you both for answering.  I appreciate it.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now