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

Novice need helps with variable defaults

Guest
Jul 30, 2008 Jul 30, 2008
I currently use this code as a default.. <CFPARAM NAME="URL.TR_ID" DEFAULT="369"> I would like to alternate defaults numbers on a daily bases... can anyone provide me advise on how to go about it..

Regards
Ben
509
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
Guest
Jul 30, 2008 Jul 30, 2008
alternate between what?
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
Guest
Jul 31, 2008 Jul 31, 2008
I would like to use 344,356,359,411,369,376,396
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
LEGEND ,
Jul 30, 2008 Jul 30, 2008
<cfset myvar = some cf math or other magic to get the number here>
<cfparam name="url.tr_id" default="#myvar#">

or just
<cfparam name="url.tr_id" default="#some cf math or other magic to get
the number here#">

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
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
Guest
Jul 31, 2008 Jul 31, 2008
I tried a var tag using java but it didn't work... it would work below <html><head> tags but not above it
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
LEGEND ,
Jul 31, 2008 Jul 31, 2008
You have a list of 7 items. There are 7 days in a week.

Can you think of any way that cold fusion's DayofWeek() function might be useful?
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
Guest
Jul 31, 2008 Jul 31, 2008
<cfset optionsList = '344,356,359,411,369,376,396'>
<cfparam name='URL.TR_ID' default="#listGetAt(optionsList,dayOfWeek(now()))#">
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
Guest
Jul 31, 2008 Jul 31, 2008
LATEST
thanks eightcharacters,,, it worked...
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