I am getting a js error with Transition FX on a couple of pages that I have not altered but yet the error has just started appearing - the head has no properties - what does it mean exactly?
Hi David,
Looking at your screen shot of the error it looks like the action is
breaking because it can’t locate the head tag. The action should
really check for this with something like;
var headTag = fwDocument.fwTags.fwFind("head");
if (headTag){
...etc
Do you have any other actions applied to these pages that are either
destroying the head tag or converting it to text?
Regards,
Tim.
On 25 Mar 2010, at 21:48, DeltaDave wrote:
I am getting a js error with Transition FX on a couple of pages that
I have not altered but yet the error has just started appearing -
the head has no properties - what does it mean exactly?
No. I’m going to run and hide!
As I expected the Transition FX action is looking for the head tag in
the page but the Remote Resources action has got there before it,
converted the tag structure to a bunch of text, done it’s thing, and
left the page with a block of corrected code. Although this updates
the paths to your resources as expected it does so in a heavy handed
fashion and, as we’ve seen, blocks actions that run after the RR
action expecting to find tags in the page.
There are several things we can do;
Run away and forget this conversation ever happened,
We can try and get the RR action to run after all of the others
We can update the RR action so it does it’s thing without upsetting
the rest of the actions it shares a page with
I vote for option 1!
Both actions run at fwAfterEndBody so try applying the Transition FX
action first and then the Remote Resources action and see if that
helps. I could tell you how to edit a copy of the Transition FX action
so it runs before the Remote Resources action but I suspect i’d be
hunted down by the rest of the folks at Softpress!
Why is the Remote Resources action on the page? Are you trying to
build an HTML email with script effects or is it something more cunning?
Let me know how you get on with this.
Regards,
Tim.
On 25 Mar 2010, at 23:06, DeltaDave wrote:
I am sure you are going to tell me why RR screwed it up.