2012-12-14

Michel Poisson posted a discussion

Can't figure what's wrong with this code...

This is a cool tip I picked here on JenSocial to add content at the bottom of every forum post.

I've modified it to add a simple red line in view of eventually putting short site-wide messages when needed. It worked great except that...It took us two weeks with the help of Mayra from Ning support to figure out that it was that bit of code that caused our Advanced panel to give us weird intermittent LESS compile errors when just hitting Preview,  that without making any change to either LESS or CSS, just Preview!Chrome was unusable, Safari and Firefox barely, only Opera could be used to make any CSS change.Ning said they couldn't reproduce the problem and that it was up to me to figure it out by elimination. It took me a while, going through my CSS, LESS and Custom Code to find out which bit was causing the Advanced panel to malfunction.Now I know a little bit of JavaScript, jQuery and the Ning API, and I've been staring at that bit of code for a few days and can't figure how in the world it can screw up so weirdly the Developer Mode's Advanced Panel for some browsers, sometimes while displaying a perfectly valid webpage.Ning works in mysterious ways!Anyone has a clue?See More

Show more