Javascript Confict?

Everything was working fine until…

I have a page with a carousel. Then I added some new code to embed a facebook wall. This new code uses:

Now the carousel is broken. I then tried to use the Target Show/Hide Layer action to have a fading sequence, which would be fine. But, it didn’t work either.

Any suggestions as to how to fix this or alternatives to show a sequence of images. I am still using Freeway 5.4.2. I purchased 5.5, but am hesitant to upgrade for fear of inducing other problems.

Appreciate any guidance. Jan


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

You should avoid using jQuery in a Freeway page unless you know
precisely what you are doing. The best possible scenario for including
jQuery on a Freeway page is that you wrote the jQuery code yourself by
hand (yes, you are that technical!) and you also knew how to engage
jQuery’s NoConflict mode and you did so. Otherwise, you can expect
things to go horribly wrong as this did. The second best scenario, if
you don’t meet the requirements of the first scenario, is that the
jQuery code is entirely alone on your page – you haven’t added any
other code of any sort, not even other jQuery, or applied any other
Actions to the page or any of its elements. If you can meet that
target, then you are probably safe.

Walter

On Apr 25, 2011, at 12:40 PM, jan smoot wrote:

Everything was working fine until…


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

I get that I shalt not to thus again!

Any suggestions for what I could now–to create a sequence of images?


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

Have a look at my NewsCycle or ScriptyFader Actions if you want to
stay in the Prototype/Scriptaculous fold. Otherwise, you’ll need to
strip out all other script – even and especially the script that you
didn’t write, and Actions added – from your page, and go ahead with
the jQuery solution you’ve already identified.

There shouldn’t be any conflict between the Target Show/Hide layer and
Prototype, because even if you use the Fade effect, you’re using
Scriptaculous for that effect, and that’s what all the Softpress FX
Actions use (or anything else that’s built for compatibility, like my
Scripty Actions).

Walter

On Apr 25, 2011, at 1:00 PM, jan smoot wrote:

I get that I shalt not to thus again!

Any suggestions for what I could now–to create a sequence of images?


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

Walter,
Would I be able to use jQuery animation techniques without a conflict?
Jan


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

Without a conflict with what? If you are writing all the script on the
entire page yourself, not using any Actions at all, then you can use
jQuery or any other non-Prototype library to your heart’s content. (Or
Prototype itself – maybe a newer version – for that matter.)

If you are using any of the Softpress Actions, or anything I have ever
written that uses JavaScript, then no, you can’t use jQuery for
anything, not without the ability to influence the load order of the
script libraries and the skill to rewrite any of the method calls that
may conflict.

It’s code ninja-level stuff to mix and match libraries, not to mention
a huge imposition on your visitors, as they have to download and
interpret two gigantic boluses of JS code, where one would do nicely.

Walter

On Apr 28, 2011, at 10:32 AM, jan smoot wrote:

Walter,
Would I be able to use jQuery animation techniques without a conflict?
Jan


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