[Pro] Display Date and Time

Does anyone know of a simple but good way to display the current time and date on a Freeway page?

Kevin


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As the iPhone, there is an app for that, go to actionsforge.com, you
will find it there, is simple to use…

On Aug 4, 2011, at 10:52 AM, Kevin McElligott wrote:

Does anyone know of a simple but good way to display the current
time and date on a Freeway page?

Kevin


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Do you know what it’s called?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s really strange, I am sure there used to be such an Action, I
know I used it back in the Freeway 2 days.

There’s not very much to this. Draw an HTML box on your page, double-
click inside it, and type two spaces. Click the back-arrow so your
cursor is between them, and use the main menu: Insert / Markup Item.
In the MI, paste the following:

<script type="text/javascript">
var d = new Date();
var out = d.toLocaleString();
document.write(out);
</script>

Okay out of the dialog, and then use Select All to select the two
spaces and the Markup Item in between them (this will look like a
little rectangle with an H inside it). Apply any text or paragraph
style you like to the selection, and your page will be set. Preview
in a browser to see the date.

This is a very basic example, if you want more specific formatting of
the date, there are tons and tons of formatting options available
here: JavaScript Date Reference

Note that this technique will only work on a non-strict page,
document.write is forbidden in the Strict doctypes. If you want to do
this in a strict page, you will need to use Protaculous instead. Let
me know, it’s very similar.

Walter

On Aug 4, 2011, at 12:53 PM, Kevin McElligott wrote:

Do you know what it’s called?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I use one called current date, but it does not show the time of day. There were a ton of time apps - java script? at the time, but I figured it didn’t matter as unlike the day, most places would be a different time anyway…

It is in the ‘standards’ action file - ships with freeway, I believe.

Frank

On Aug 4, 2011, at 10:07 AM, Walter Lee Davis wrote:

That’s really strange, I am sure there used to be such an Action, I know I used it back in the Freeway 2 days.

There’s not very much to this. Draw an HTML box on your page, double-click inside it, and type two spaces. Click the back-arrow so your cursor is between them, and use the main menu: Insert / Markup Item. In the MI, paste the following:

<script type="text/javascript">
var d = new Date();
var out = d.toLocaleString();
document.write(out);
</script>

Okay out of the dialog, and then use Select All to select the two spaces and the Markup Item in between them (this will look like a little rectangle with an H inside it). Apply any text or paragraph style you like to the selection, and your page will be set. Preview in a browser to see the date.

This is a very basic example, if you want more specific formatting of the date, there are tons and tons of formatting options available here: JavaScript Date Reference

Note that this technique will only work on a non-strict page, document.write is forbidden in the Strict doctypes. If you want to do this in a strict page, you will need to use Protaculous instead. Let me know, it’s very similar.

Walter

On Aug 4, 2011, at 12:53 PM, Kevin McElligott wrote:

Do you know what it’s called?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s great Walt and is working well.

I may seem a little dim but what is a strict or non-strct page, how would I tell.

Kev

Creative Line Design


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

In the Page Inspector, you can choose from a set of options in the
Output picker. Some of these include the word Strict in their names.
Those correspond to the DOCTYPE tag that Freeway writes out to the
HTML it generates, and triggers a different set of expectations in a
browser.

There are a whole host of things you can’t do in a Strict DOCTYPE that
you can do in a “loose” one. iframes, link targets, document.write, etc.

There’s no better/worse here, just different. Don’t choose Strict out
of some cargo-cult idea that it’s better than the alternative.
Browsers don’t care at all which one you use, as long as you use one
and stick to it.

Walter

On Aug 4, 2011, at 2:06 PM, Kevin McElligott wrote:

That’s great Walt and is working well.

I may seem a little dim but what is a strict or non-strct page, how
would I tell.

Kev

Creative Line Design


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walt
I’m on Freeway 5.6 on a Mac. There is no Output picker in the Page Inspector as far as I can see - Am I still being dim?

Kev


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No, I am. The Output tab (third from the left) is home to the HTML
picker, which has the list of different DOCTYPEs. My mistake. You can
also set this property in the New Document dialog, where it will apply
to every page you create in that document. (You can change individual
pages to a different HTML format, they don’t all have to be the same.)

Walter

On Aug 4, 2011, at 6:03 PM, Kevin McElligott wrote:

Hi Walt
I’m on Freeway 5.6 on a Mac. There is no Output picker in the Page
Inspector as far as I can see - Am I still being dim?

Kev


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options