Insert Javascript

I have a web site created using Adobe Golive CS2. I want to convert it to Freeway 5.

On one page, http://www.dancin-fool.com/events.html, I have a javascript that displays a calendar of the current month. I cannot figure out how to insert the javascript to display the calendar on a Freeway page.


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

Go to the following URL:

http://javascript.internet.com/time-date/basic-calendar.html

It’s a 2 piece set of instructions indicating how to set up a calendar not unlike the one you’re using. Your existing calendar should be pretty much the same as this in terms of function.

Put the Javascript (.js) file in the same folder with your HTML pages as it will be referenced by the HTML inserted into the code of the page you’re creating in Freeway. To insert the HTML(the actual calendar location), go to the ‘Insert’ menu in Freeway and select Markup item… Paste the provided HTML (and the included reference to the Javascript file) into the small window that opens. Once it’s closed you will now see a yellow outlined box on the page, with a small ‘H’ tag in the top LH corner. This box is where the calendar will reside. Just move it into position on the page, re-publish and if things go to plan, you should see the calendar in Preview. You may need to tweak and move the box a bit to get the right positioning.


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

I am new to Freeway and would like to understand your instructions:

Put the .js file in the same folder with your HTML pages. Is this done
some place in Freeway or do I upload this separately using an FTP
program?

Thanks,

Sam

On Jun 20, 2008, at 7:36 AM, madmacstoo wrote:

Go to the following URL:

http://javascript.internet.com/time-date/basic-calendar.html

It’s a 2 piece set of instructions indicating how to set up a
calendar not unlike the one you’re using. Your existing calendar
should be pretty much the same as this in terms of function.

Put the Javascript (.js) file in the same folder with your HTML
pages as it will be referenced by the HTML inserted into the code of
the page you’re creating in Freeway. To insert the HTML(the actual
calendar location), go to the ‘Insert’ menu in Freeway and select
Markup item… Paste the provided HTML (and the included reference
to the Javascript file) into the small window that opens. Once it’s
closed you will now see a yellow outlined box on the page, with a
small ‘H’ tag in the top LH corner. This box is where the calendar
will reside. Just move it into position on the page, re-publish and
if things go to plan, you should see the calendar in Preview. You
may need to tweak and move the box a bit to get the right positioning.


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


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

Just put it in site folder of the project you’re working on. When you upload using either the resident upload facility in FW, or if you use a standalone FTP client, it will go up with the rest of the site.
Just make sure that you have published the site first to ensure that the link between the Javascript file and the HTML on the page has been firmly established.


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

Just an additional comment: obviously, you need to have copied and pasted the javascript into a new text edit document and saved it as ‘calendar.js’, or whatever you’re supposed to name it. This is the file you then put into the site folder.
The name of the .js file and how it’s named in the HTML must be the same, of course.


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

Still having trouble. I followed your instructions best I could.

  1. Went to the web site you referenced and copied the javascript text.

  2. Pasted into BBEdit and saved as calendar.js

  3. Placed the .js file in the site folder along side index.html

  4. Opened a Markup item in Freeway and pasted the same javascript text into the box. I made no changes. Where I am confused is when you say “and the included reference to the Javascript file”. What reference?

  5. Got a “green” outlined box with the small “H” tag.

  6. Published the site and looked in Preview. All I see are the words. “Free JavaScripts provided by The JavaScript Source”


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

Followup to previous message:

I went back and inserted my original “calendarscript.js” using your instruction and it worked fine.

It must be some of the extraneous garbage in the one you referenced that’s causing the problem.

Thanks madmacstoo – I really appreciate your help in working this problem (and table graphics too)


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

Hiya

Just for the record; the code you found on the site I sent you to was split into 2 parts. The first 80% was the javascript, the rest was the HTML. I have to admit that the instructions were not very clear and that it would have been an easy mistake to put the whole lot into the Markup box, instead of splitting it into the 2 components, as required. It will teach me to realise that not everybody recognises visually the difference between Javascript and HTML. I prostrate myself at your feet.

That said, I’m very pleased for you that it all turned out OK.


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