[Pro] scrolling layer issues in pro 6

Does anyone know if there issues with the scrolling layer actions in Pro 6? I can’t get the scroll buttons to work.
Thanks!


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

Hi all,
Problem solved by updating action to current version properly.
I thought I had (updated) but the previous version was still in place.


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

I cant reply to the Custom Javascript question you posted because the code that you added to FWT has messed up the page.

If this code is to display date/time then there is a FW action for that ‘Current Date’

If it is something else then please repost.

David


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

Nicolet - are you trying to display activities dependant on what day it is?

Such as at http://www.deltadesign.co/FW6Test/whatdayisit.php

David


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

Hi David,
Yes I am trying to display activities dependant on day.
Like:
today is monday november 11, today’s yoga series is backbendings.

I have a script that works fine on an iWeb website but don’t know how to get it into my Freeway Pro 6 site.
I don’t know if you need to see the code?

Thanks for your help!

Nicolet


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

That was really strange. I had to edit the post in the database to make the formatter not freak out.

Walter

On Nov 10, 2013, at 1:12 PM, DeltaDave wrote:

I cant reply to the Custom Javascript question you posted because the code that you added to FWT has messed up the page.

If this code is to display date/time then there is a FW action for that ‘Current Date’

If it is something else then please repost.

David


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

Did i do something wrong Walt?
perhaps sending code is not a good idea?

Nicolet


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

It looked like you had some syntax errors in the script itself. For example, you had < script (note the space between the opening left-bracket and the word script. In addition, the script was marked language = “JavaScript”, which is not correct (hasn’t been since the 1990’s) you must either make your page HTML5 and use no other declaration than or use as the opening of the script.

Then, in order to add raw code like this to the page, there are two primary methods that Freeway offers you. If the script is self-contained – if there isn’t a separation between declaring the code and its variables and the output method where the program output is printed to the page – then you can place the whole thing into a single Markup Item.

To get one of these, either make sure nothing at all is selected on the page and choose Insert / Markup Item from the main menu, or at a flashing text cursor in an HTML box, choose Insert / Markup Item. In either case, you will see a dialog appear in the middle of the window where you may paste or type your code. After okaying this dialog, you will see (in the first case) a 100px square element on the page with a [ < H > ] in the upper-left corner, or (in the second case) a tiny inline box with the same glyph in it. These elements are the proxy for the code. You can click once on either kind and open the code editor again by choosing Item / Modify.

In the case of the stand-alone Markup Item, you can resize the 100px box by dragging its corner handles, just like any other HTML object. Use this technique when you need to reserve a bit of layout space for the output, for example if you were placing a calendar on the page that needed to be a certain size.

The inline (placed within text) technique is best suited for a script which will output some sort of text – without any HTML surrounding it. By wrapping this markup item between two spaces, you can add style to the output text using Freeway’s normal styling tools.

Sometimes scripts be structured as separate elements – a link or a library of code in the head of the page, and a separate element in the body where the output from that script will be displayed. In that case, you will want to use the Page / HTML Markup dialog (in the Before section) to add the library code outside of the visible part of the page, and then a Markup Item (as outlined above) in the body of the page where the visible output should appear.

Walter

On Nov 11, 2013, at 9:15 AM, Nicolet Schouten wrote:

Hi David,
Yes I am trying to display activities dependant on day.
Like:
today is monday november 11, today’s yoga series is backbendings.

I have a script that works fine on an iWeb website but don’t know how to get it into my Freeway Pro 6 site.
I don’t know if you need to see the code?

Thanks for your help!

Nicolet


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

The formatter isn’t perfect, and nothing you did was at fault! If you have large blocks of code to present in this forum, there are a number of options. The best is to use Gist or Pastie (https://gist.github.com and http://pastie.org) to paste the code, and then simply include a link to the page showing your code that either of those services will provide. The Web archive of this mailing list contains special support for those two services, so that your URL will be expanded into a lovely syntax-highlighted inline representation of the code. All you need to do is put the link all alone on its own line, like this:

https://gist.github.com/walterdavis/6937915

which will be expanded like this:

The other trick is to put a “fence” around your code. On a single line before the code begins in your message, type four tildes in a row, followed by a return, like this:

~~~~

Then the code, then another four tildes. The result will be a block highlighted in green and showing your code in a monospaced font.

Note that when I am demonstrating these tricks here, I am using another trick to make them visible – adding a single tab character before the line. That’s another shortcut to make a code block. If I hadn’t done that, you would not have seen the link to Gist or the four tildes, because they would have been expanded automatically, and all you would see is the output, not the code that made it.

Walter

On Nov 11, 2013, at 9:29 AM, Nicolet Schouten wrote:

Did i do something wrong Walt?
perhaps sending code is not a good idea?

Nicolet


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

I have a script that works fine on an iWeb website but don’t know how to get it into my Freeway Pro 6 site. I don’t know if you need to see the code?

The example that I posted at http://www.deltadesign.co/FW6Test/whatdayisit.php uses PHP to display the events of the day - if you visit the link tomorrow it will be different.

If you can tell us exactly what you want displayed - and on which day(s) - then I can put something together for you.

The only requirement for this to work on your FW page is a PHP enabled server and a your page having the .php suffix.

It can certainly also be done with javascript - and probably with your existing script - but we would have to be able to see the code. Is it still online somewhere?

David


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

Here’s the original as posted (just grabbed it out of e-mail):

Walter

On Nov 11, 2013, at 5:23 PM, DeltaDave wrote:

It can certainly also be done with javascript - and probably with your existing script - but we would have to be able to see the code. Is it still online somewhere?


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

Note this had several structural problems, and doesn’t work in any context as written.

Walter

On Nov 11, 2013, at 5:30 PM, Walter Lee Davis wrote:

Here’s the original as posted (just grabbed it out of e-mail):

gist:7421646 · GitHub

Walter

On Nov 11, 2013, at 5:23 PM, DeltaDave wrote:

It can certainly also be done with javascript - and probably with your existing script - but we would have to be able to see the code. Is it still online somewhere?


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

Note this had several structural problems, and doesn’t work in any context as written.

I did wonder as I had scraped it out of the FWT source code but thought it might have got mangled.

And then there was the language barrier!

D


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

Hi Dave,
The link you gave: http://www.deltadesign.co/FW6Test/whatdayisit.php
does exactly what I want it to do. It is the same as on this website: http://www.yogabonn.de/ In the top right corner of the home page it says Yoga zyklus heute (german for today’s yoga cycle) and below it tells the day and yoga series. The script not only shows the yoga cycle of the day but also let’s these cycles (there are 5 cycles) alternate so that every monday within a 5 week period will show a different cycle. I think they call it the weekoffset in the script.
I’m curious to see how you made this work in.php Would this be something I could do?

Nicolet


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

The script not only shows the yoga cycle of the day but also let’s these cycles (there are 5 cycles) alternate so that every monday within a 5 week period will show a different cycle. I think they call it the weekoffset in the script.

Is that what you want to do with yours?

Be specific as to exactly what YOU want to display and when.

D


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

If you want to use the script as you have it (I have it include in an iFrame at my original demo page).

Then on a new otherwise blank FW page insert a markup item and paste in the following code:

<script language="JavaScript">
															<!--// merci an cem!
															
															   var Wochentag = new Array("Sonntag", "Montag", "Dienstag",  "Mittwoch",  "Donnerstag", "Freitag", "Samstag");
															   var uebungen= new Array("Stehende Positionen","Handbalance","Rückwärtsbeugen","Sitzende Positionen & Drehungen","Vorwärtsbeugen");
															   var souebung="Sonntag - Pause!"
															   <!-- var miuebung="+ Pranayama!" -->
															    var miuebung=" "
															
															
															   function doOut(today ){
															    var dayofweek = today.getDay();
															    document.writeln(daystr = Wochentag[today.getDay()] + " " +
															    today.getDate() + "." + (today.getMonth()+1) + "." + (today.getYear() <1000?today.getYear()+1900:today.getYear())+ "<br>");
															    if (dayofweek==0) document.writeln("<b>" + souebung + "</b><br>");
															    else {
																day=dayofweek
																weekoffset=Math.floor((today.getTime()/(1000*60*60*24)-3)/7)%53
																index=(weekoffset*6+day)%uebungen.length
																document.writeln("<b>"+uebungen[index]+ "</b><br>");
																if (day==3) document.writeln("<b>" + miuebung + "</b><br>");
																}
																}
															
															   //for (i=1;i<100;i++) doOut(new Date(2006,0,i))
															   doOut(new Date());
															
															// -->
															</script>

Make sure the markup item is in the top left corner of the page and big enough to accommodate the output text. Set the page html level to 4.01 Transitional.

On the page you wish the text to appear insert/draw an instance of the iFrame action and set the URL/source as the page with the markup on it.

And that seems to work http://www.deltadesign.co/FW6Test/whatdayisit.php

No compatibility testing done and you might have to wait 5 weeks to check it!

And you wont need a .php suffix either.

D


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

Hi Dave,
I was out of town so sorry for the late reply.
I have done as you did: made an extra blank page, inserted the mark up element, copied the above script in it, and set the page to 4.01 transitional.
Then on the home page were I want the result of the script I inserted an iFrame element, sized it to the output and linked it to the newly made page.
But unlike yours nothing shows up on my page.
Don’t know what I did wrong.
Should i give the script a special position on the page, like before or after the Head element for instance?
By the way, the script does output exactly what I want it to output. It is in German, but I can translate that (Wochentag is weekday and uebungen are excercises)
N.


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

Then on the home page were I want the result of the script I inserted an iFrame element, sized it to the output and linked…

Can you repost a link to that page

D


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

Here is the link to the homepage of the website I’m working on.
www.wickedwitchwebdesign.nl
The iFrame is the one with the scroll bars above the Agenda.


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

I think because you copied from the post a couple above an error has been introduced into the script.

Go into the script pagina markup and where the code reads

//for (i=1;i<100;i++) doOut(new Date(2006,0,i))                                                                 doOut(new Date());   

Change it to

//for (i=1;i<100;i++) doOut(new Date(2006,0,i))
doOut(new Date());   

In other words make sure that doOut(new Date(2006,0,i)) is on the line below the one that starts //for (i=1;

D


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