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.
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.
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.
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.
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.
Still having trouble. I followed your instructions best I could.
Went to the web site you referenced and copied the javascript text.
Pasted into BBEdit and saved as calendar.js
Placed the .js file in the site folder along side index.html
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?
Got a “green” outlined box with the small “H” tag.
Published the site and looked in Preview. All I see are the words. “Free JavaScripts provided by The JavaScript Source”
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.