[Pro] scrolling layer issues in pro 6

I got it working but only in Firefox and Safari not Chrome and IE I don’t know because I’m on a Mac.
I moved the iFrame to the left of the page (white container) I also put a carousel on the page. Could that be the reason that Chrome doesn’t display the output of the script?

Btw; is it good practice to put the output of scripts like this in an iFrame? And should I always insert the markup item on a new blank page, ie should each markup item have its own blank page or can I combine them on the one page?

Thanks again,
Nicolet


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

Btw; is it good practice to put the output of scripts like this in an iFrame? And should I always insert the markup item on a new blank page, ie should each markup item have its own blank page or can I combine them on the one page?

No - I only suggested doing it this way because you have some dodgy code in there and that is the way that I got it to work.

Markup is usually added onto the page using Insert>Markup Item or in Page>Html Markup and by choosing one of the slots like ‘before ’

David


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

I got it working but only in Firefox and Safari

Works for me on Chrome and also IE8

D


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

it’s all working fine now.
Thanks a lot for your help Dave.

One last question; can you explain what’s dodgy about the code and how I could change that?


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

can you explain what’s dodgy about the code and how I could change that?

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

I suspect that this is an old snippet of code that has been reused and abused.

Not sure that I would change it but instead replace it but in the meantime if it is working you have time to search out and/or replace it with different code or a different method ie PHP like my example at http://www.deltadesign.co/FW6Test/whatdayisit.php

D


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

If you’re following along in the Gist, here’s the errors I see:

Line 1: This is not a proper opening tag. You can’t have spaces between a < and the word script – it just isn’t a real tag that way. Write it as just like that. Language as an attribute for a script tag is deprecated in any version of HTML after 3.

Line 2: This is an HTML comment, inside a JavaScript block. It won’t do anything there. It used to be popular when Netscape Navigator used to be popular, because other browsers of that era would choke on inline JavaScript, but it is not needed or used any more.

Line 7: Another HTML comment opening block, invalidating the first one (you cannot nest comments inside other comments in HTML). Line 7 also includes a closing comment tag, but because of the nested comment, it’s ambiguous which one it is closing. This will probably cause an error.

Line 13 - 20: Multiple instances of document.write() and writeln(). This is deprecated in any version of HTML over 4 Transitional. If your page is HTML 4 Strict, XHTML Transitional or Strict, or HTML5, you will probably not get what you expect with this approach to writing a visible element into the page. The correct modern way to do this is with createElement/addChild or innerHTML=, both of which modify the DOM, rather than trying to write HTML into the tag tree before the DOM is rendered.

Line 27: Another closing comment, again, ambiguous what if anything it will do.

Walter

On Nov 25, 2013, at 2:44 PM, DeltaDave wrote:

can you explain what’s dodgy about the code and how I could change that?

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


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

I have a very basic understanding of Java script, but I see what you mean Walter. I will need some time to further study js.
The php method is entirely new to me and I don’t know how to use it.
But for now the script is working fine and happy with that.
Thank you, Dave and Walter, for your help.
All the best,
Nicolet


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