Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
Confused User #1
Inserting an automatic date?
I notice that when I want to insert a date, it only resets once the page has
been updated.
But I found a few pages on my site that has an automatic date that resets on
its own, and when I tried to edit that page, all I saw was a little yellow box
that looked like a "scroll" was in it.
Here's an example of the page that I need to update to get a new date:
[url]http://naswnyc.org/[/url]
Here's the page that does it on its own:
[url]http://naswnyc.org/archives/executive.htm[/url]
can someone please help?
Confused User Guest
-
Automatic Date Field
Is there a way to have a Date field automatically set the date to today's date in a form I created in Acrobat 7? I have the date field defined as a... -
Automatic Date Placeholder
I am running Contribute 3.0 using one of the Starter pages to design my website. There is an automatic date placeholder that has worked great to... -
Inserting both date AND time into one timestampcolumn
Function parsedatetime() will allow you to return a datetime object by combining a date and time string: <cfset dte="jan 22, 2005"> <cfset... -
Printing an automatic date
I am using an IBM ThinkCenter, P4. Have Windows XP. In 5.0 I used the Format tab and set the date field and created a javascript for this message... -
inserting date
Use the Date function. In your query, it would be something like SELECT Field1, Field2, Date() FROM MyTable For the text box, you'd set its... -
ThinkInk #2
Re: Inserting an automatic date?
Check your source code and you will see the difference:
---
[url]http://naswnyc.org/[/url]
This page is using this code:
<!-- #BeginDate format:fcAm1 -->Wednesday, August 13, 2008<!-- #EndDate -->
This is created by Contribute and will update once you edit and publish the
updated page.
---
[url]http://naswnyc.org/archives/executive.htm[/url]
This page is using this code:
<script language="javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var weekday=new
Array("sunday","monday","tuesday","wednesday","thu rsday","friday","saturday");
var monthname=new
Array("january","february","march","april","jay"," june","july","august","septemb
er","october","november","december");
//Ensure correct for language. English is "monday, january 1 - 2004"
var TODAY = weekday[d.getDay()] + ", " + monthname[d.getMonth()] + " " +
d.getDate() + " - " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
and:
<script language="javascript">
document.write(TODAY);
</script>
This is a javascript that writes the current date to the screen.
ThinkInk Guest
-
Confused User #3
Re: Inserting an automatic date?
ThinkInk:
Thank you for this, but I have another question: how do I insert the javascript code into the other page for the autodate?
Confused User Guest
-
ThinkInk #4
Re: Inserting an automatic date?
When you are using CS3 you can use the >Insert>HTML snippet option. In older versions you can use the >File>Actions>Edit page source in external application.
ThinkInk Guest
-
Confused User #5
Re: Inserting an automatic date?
ThinkInk: THANK YOU SOOOO MUCH! You are like my savior here!
Confused User Guest



Reply With Quote

