Inserting an automatic date?

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: Inserting an automatic date?

    ThinkInk: THANK YOU SOOOO MUCH! You are like my savior here!
    Confused User Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139