I have a project coming up to build an interface which allows a user to construct content with pre-defined templates and code snippets.
We've already decided to use the jQuery and jQuery UI frameworks to help us with the dragging/dropping/sorting parts. There also needs to be some edit-in-place, and I'm going to use contenteditable
combined with jQuery's CSS functions.
I already have quite a bit of experience with both frameworks (and love them), but my typical project so far has run to about 50 lines whereas this one will run to a lot more than that, using more of the functions and writing my own plugins.
Before I start work on the project I'm wondering if there are any common pitfalls with jQuery - kind of like 'jQuery - the Bad Parts'. Are there functions that are just best avoided? Are there functions which need working around?
I read this link but it's now 2 years old and a lot has changed in jQuery (and browsers) since then.
Any 'Use this framework instead' or 'Don't use a framework' answers will be ignored - I have to use jQuery. Any 'jQuery is rubbish' rants that don't provide solutions will also be ignored. Constructive comments only please. If I knew how to do better in JavaScript what jQuery does, I wouldn't be using jQuery.
Advantages of jQueryExcellent API Documentation: jQuery provides excellent online API documentation. Cross-browser support: jQuery provides excellent cross-browser support without writing extra code. Unobtrusive: jQuery is unobtrusive which allows separation of concerns by separating html and jQuery code.
jQuery is a JavaScript library that helps to simplify and standardize interactions between JavaScript code and HTML elements. JavaScript allows websites to be interactive and dynamic, and jQuery is a tool that helps streamline that process.
I'll answer half of your question. Here's a laundry list of pitfalls based on painful experience, not all of which I have solutions to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With