The script works perfectly in the c5 page but the page is no longer editable. If I want to change it I have to restore a previous version and put everything back in.
It appears that c5 will have to be changed to make this work but wanted to post here and see if anyone else has resolved this problem.
Here is the JS code that is being called buy FatFreeCart:
<!-- FatFreeCart.com AddToCart Snippet @version: 0.1 @date: 07/30/2007 @author: Ropu (rovagnati at gmail) //--> <table cellspacing="2" cellpadding="2" bgcolor="#ffffff" style="border: thin solid rgb(100,100,100);font-family: Verdana; font-size: 11px; color: rgb(0, 0, 0);"> <tr align="center"> <th bgcolor="#dddddd" style="color: rgb(0, 0, 0);">Class Registration Fee</th> </tr> <tr> <td align="center"> <!-- ADD TO CART button code. --> <form target="ej_ejc" action="https://www.e-junkie.com/ecom/fgb.php?c=cart&cl=1&ejc=2" method="post"> <div style="background:#eeeeee">
Code tags hate me the source file is just the url+/concrete/js/ccm.dialog.js
Error: jQuery.fn.dialog is undefined Source File: http://www.site.com/concrete/js/ccm.dialog.js Line: 374
Don't know if that means anything to you or not but its beyond me.
Thank you for your help.
Still doens't solve the page edit problem though! :)
You could try linking to the js files in the head of the template, rather than inside your php block at the end.
I figured that it was down to loading jquery twice.
First time its loaded it in header_required and second time in page_controls_header.
Maybe it was me editing those files and I might have added one of those includes. If not then it is probably something you guys should look at and fix it.
i'm using concrete 22.214.171.124
so far I can use 2 solution :
-delete conflicted js, and
-put reference js before header_required
dunno if there is any other simple solution?
Yes as mkharisecario said remove JQuery supporting file or it may conflict. Jquery supporting file is inbuilt in concrete5.
if yes, I think you must delete that script. I've had same problem before because of that line. But it fixed after I deleted it.