I'm using Channel Form to post entries from the front end. It works fine locally, but on the development and production server JQueryit isn't working at times: Channel images, WYGWAM, Tagger, and/or Grid. All but WYGWAM look right (the WYGWAM field shows as a basic text box, not the WYWAMY look) but don't work. If you click on a suggested tag it does not get added, if you click an "add row" icon for a Grid it just takes you to the top of the page.
In console I getsee the following error whenever it breaks (not when it works):
[Error] SyntaxError: Unexpected token '<' (www.example.com, line 40)
When I hover over the "wwwStrange part is it is very inconsistent.example It will work fine, then break.com Then won't work on any browser (Mac, line 40 part I seePC, Chrome/Safari), then will start working again.
I've set up a test account:
http: //www.example.com/ACT=10?&ui=core,widget,mouse,position dragable, resizable, etc, etc,....&include_jquery=y:40
username: [email protected]
If I click on the link to the code where there error is I see this blockpassword: eecms
$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="' +
EE.THEME_URL + 'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');
$(".close_formatting_buttons a").toggle(function() {
$(this).parent().parent().children(":not(.close_formatting_buttons)").hide();
$(this).parent().parent().css("height", "13px");
$(this).children("img").attr("src", EE.THEME_URL + "images/publish_plus.png")
}, function() {
$(this).parent().parent().children().show();
$(this).parent().parent().css("height", "auto");
$(this).children("img").attr("src", EE.THEME_URL + "images/publish_minus.gif")
});
http://www.rcdevotee.com/contribute/model
Feel free to see if it works, doesn't work, and if you see any issues that can help figure it out when it isn't working.
The template does not have jQuery, the form includes it (include_jquery=="yes"). So no double jQuery issues in this case.
If I remove the form altogether I don't get the error I listed above. If I have just the form tags, but no fields it will give the error when it isn't working. So it has something to do with the Channel Form tag and not any of the fields it would seem.
Any help or ideas where to look for help much appreciated.