You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Flashembed conflict with jquery.cycle plugin Created Nov 20, 2009

This thread is solved

Views: 3250     Replies: 1     Last reply Dec 9, 2009  
You must login first before you can use this feature

masonjo

Posts: 7

Registered:
Jan 8, 2009

Flashembed conflict with jquery.cycle plugin

Posted: Nov 20, 2009

I use the jquery tools a fair amount and love what it can do. I also like the jquery.cycle plugin for slideshows. I have a site that is trying to use both on the same page. It works fine in FF, but not on IE8. You get a 'constructor' is null or not an object error from jquery.cycle, but it I do not use flashembed it works fine - so it seems to be a conflict and I am hoping that you can help.

BOTH WORK IN FF

Here is a page with both turned on and it errors:
http://d352896.host30.mastifftech.com/services2

Here is a page with flashembed not turned on (but jquery tools with flashembed is still loaded) and the cycle plugin works:
http://d352896.host30.mastifftech.com/services

Any ideas? It seems like flashembed overwrites a variable that cycle uses.

x3.js is my code and it loads flashembed from the swfinsert function and uses some on dom load logic to determine what needs to run.

Our systems are built so that we can use simple html tags with classes and metadata to fire off things like cycle, flashembed, video, etc. - but you can see this in firebug (where it does work).

Thanks,
John Mason

rism

Posts: 1

Registered:
Dec 9, 2009

Same problem here

Posted: Dec 9, 2009

Reply to: Flashembed conflict with jquery.cycle plugin, from masonjo
Im experiencing the same problem. Everything was fine until I started using the CDN download for jquery.tools which includes the Flash Embed code. Previously i was just localhosting the files I need.

My specific errors are:

$.fn.cycle.defaults is null or not an object. If i remove this line the next line that i try to call $("#myobject").cycle on fails.

Seems the flash embed code preventing/overwriting an action in the constructor for jquery.cycle.... or jquery.cycle is exposing/using a global var that it shouldn't.

So the current "fix" for me is NOT to use the jquery.tools CDN which includes "everything" in those pages in which i want to use jquery.cycle as well.

i.e. replace:

<script language="javascript" type="text/javascript" src=http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js"></script>

with

<script language="javascript" type="text/javascript" src="/scripts/jquery.tools.min.js"></script>

Where jquery.tools.min.js doesn't contain flash embed code.

Of course if the 2 projects integrated, well that'd just be great!!
;)