Edit Mode and other Ajax functions (Solved)

Permalink
Hi All,


I'm just starting to port my html and ajax to C5. But, the C5 edit mode seems to conflict with other AJAX scripts that I'd like to use make the user experience rich.

For instance, I can use the same jquery package that the C5 editor uses to power a jquery based accordion script, but both won't work at the same time. Location of the editor loader within the <head> tags makes no difference. Only one will work

Is there a way for the Editor to play nice with other ajax effects? Are other jquery functions off limits too?

I'm not a programmer and I'm not sure how to troubleshoot this problem.

Thanks,

Marc


Problem solved:

OK, I was adding a link to a separate version of jquery. Once i realized that c5 was always accessing jquery, it became obvious that my scripts could piggyback on the same one c5 uses. So now, the edit mode works fine and my accordion works when I'm not in edit mode.

Marc

 
stevemiller replied on at Permalink Reply
stevemiller
Hi, I am running in to the same issues with my js.

Are you using the $(document).ready(function(){ ??

If so, where did you place your script?
in a block or a php file?

Thank you for your help sir.

Steve


Problem Solved:

I used the banner ad addon to put my script in the page.
You did help me, because I was calling duplicate js files also.
Thanks!