Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Increasing the size of the datepicker icon in <cfinput type='datefield'...

Participant ,
Jul 21, 2009 Jul 21, 2009

HI,

I'm using <cfinput type="datefield" name="month_year"> in a form and would like to know if the icon that the datepicker provides can be increased.

Here's the sourcecode at runtime:  /CFIDE/scripts/ajax/resources/cf/images/DateChooser.png"/>

Thanks!

TOPICS
Getting started
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 21, 2009 Jul 21, 2009

Hi,

Please get image id from view source of the date field

  document.getElementById(<<imageid>>).style.height= 100;

try this

eg:

<script language="javascript">   
    document.getElementById("dateboxCFForm_1_cf_button").style.height= 100;
</script>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 22, 2009 Jul 22, 2009

HI,

Did you try this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 23, 2009 Jul 23, 2009

Hi,

Yes I did and nothing happened.  So what I did was to get the calendar icon from the .../CFIDE/...images... folder, increased the side and replaced it.  Have you ever tried your method and has it worked for you?

Thanks,

Jenn

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 23, 2009 Jul 23, 2009

hi,

try this code

<cfform  action="index.cfm">


<cfinput
name="datebox"
    type="datefield"
        required="yes"
            message="You must enter a Ship Date"
                size="10"
                    maxlength="10"
                         mask="MMM DD, YYYY"
                             readonly="yes"
                                 validateat="onServer, onSubmit"
                                      />

</cfform>
<script language="javascript">   
    document.getElementById("dateboxCFForm_1_cf_button").style.height= 100;
</script>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 23, 2009 Jul 23, 2009
LATEST

HI,

did u try this code?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources