🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.golive.dynamic.content
Article #51

Re: Formatting a user input date

#51
From: Jerry_Artman
Date: Wed, 30 Jun 2004 00:55
7 lines
1541 bytes
Jeremy,

The script you are showing is in PHP. The problem you have is php is called before you see the page. Such a script is not executed after I would change a menu value. Only when the page is loaded from the server. Hence server side scripting.

Javascript is built into the browser and executed on the client side, i.e. locally and therefore would check a value before it was submitted to the GL routine to add/change a record. The GL libraries expect one field with a name = record field matching. Yes the idea would work, but the syntax would need to be in javascript.

But fret not. Just google up a "+javascript +date +validate +fee +script" and you will find a bazillion hits of how to do it. Your hidden field woud be bound to your final date result. The feed for it would be the output of the date validate control.
Technical Details
Message-ID: <3bb4c65d.9@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb4c65d.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,8502de635f9b659d
X-Google-Attributes: gid11ffd2,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jerry_Artman@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.golive.dynamic.content
Subject: Re: Formatting a user input date
Message-ID: <3bb4c65d.9@webx.la2eafNXanI>
Date: Tue, 29 Jun 2004 17:55:54 -0700
References: <3bb4c65d.-1@webx.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit