|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Monthly Updated Links
Hello,
I am looking into developing a featured client link for a website. They want the featured client to change each month. The the list of clients is all ready for the year. I was thinking of creating a dynamically driven link or something that would point the user to the new client page each month so I would not have to update the link 12 times a year if it was a static link. I saw that this can be done in javascript, but I figured it would be cleaner if it was done in cold fusion or asp. I am still a beginner with these programs, but I understand cold fusion a bit more. Any help would greatly be appreciated. I also do not plan to use any database for this either. |
|
#2
|
|||
|
|||
|
I'm not sure what you are asking. If you want to know if ColdFusion can output a dynamically generated link, then the answer is yes. The docs cover this, and any book on ColdFusion development will talk about this in the first 50 pages. Though without a database, I'm not sure how you are going to "tell" the code what link you want to show up when. You could use an XML file or something, but this will be more complex than using a database.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Since you don't want to use a database, the easiest way would be to make a case-selection ( month(now()) ), with the URL hardcoded for every case(month). Nevertheless I would be interested why u are using ColdFusion for your website without a database?
|
|
#4
|
|||
|
|||
|
hi, in your post you mention that this can be done with javascript, can you provide me with a link or the script??..i'm trying to do the same thing as you and javascript would be fine for my application, but I can't find a script
Thank You! Quote:
|
|
#5
|
|||
|
|||
|
I agree with BlackAdder and breaking it out by the month. I'd create a 12 element array and set the site for each month. You could then pull the site out of the array when you make the link. Not the most elegant solution, nor the best but it will work
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Monthly Updated Links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|