Wednesday, August 13, 2008 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: and: This is a javascript that writes the current date to the screen. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => ThinkInk [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Inserting an automatic date? - Macromedia Contribute General Discussion

Inserting an automatic date? - Macromedia Contribute General Discussion

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?...

  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. #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">
    doent.write(TODAY);
    </script>

    This is a javascript that writes the current date to the screen.

    ThinkInk Guest

  3. #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

  4. #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

  5. #5

    Default Re: Inserting an automatic date?

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

Similar Threads

  1. Automatic Date Field
    By Dana in forum Adobe Acrobat Macintosh
    Replies: 0
    Last Post: November 17th, 12:32 PM
  2. Automatic Date Placeholder
    By psychpower in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: May 5th, 02:15 PM
  3. Printing an automatic date
    By karen_l_phillips@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: May 14th, 01:53 PM
  4. inserting date
    By Douglas J. Steele in forum Microsoft Access
    Replies: 3
    Last Post: August 7th, 07:26 PM
  5. inserting a date in a scripted search
    By Howard Schlossberg in forum FileMaker
    Replies: 1
    Last Post: July 1st, 04:01 PM

Bookmarks

Posting Permissions

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