Click here to Skip to main content
15,867,326 members
Articles / All Topics
Technical Blog

DLL Hell in JQuery Land

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
26 Jun 2013Apache2 min read 9.5K   4
About DLL hell in JQuery

I am trying to build a simple web application based on grids.

Like, have this widget occupy 1/3 of the screen on bottom, that one line of large bold text on top, and let another one occupy the rest of the screen.

While grid layouts were with us for ages in desktop applications, somehow it is a forbidden fruit in the world of the Web. When asking/searching on how to do it, you get an amazing mix of:

  • full screen grids are evil because they are against the Party Line
  • long discussions about separation of structure and behavior
  • pointers to gigantic galleries of half-working examples
  • suggestions to use CSS (totally brain dead idea: the notion of “and the rest of the available space goes to element X” is completely foreign to CSS)
  • complex ad hoc JavaScript snippets that work in this particular case, but not the other
  • some mix of the above

This “answer” on Stack Overflow is very indicative of the situation. It starts with “I must respectfully disagree with the answer that colspan is exclusively indicative of structure…” while the real answer is “no, you can’t do it with CSS”.

Finally, I find this: JQuery Layout plugin. Looks perfect. Alas, I can’t make it work with the latest JQuery. Reason? $.browser() has been removed. Apparently, it also crossed a Party Line. The suggestion is to use a plugin like Modernizr, but there is no version of JQuery.Layout that uses Modernizr, and rewrite of a major piece of complex JavaScript code is currently not in my plans.

So, my choice is to either use the layout plugin and get stuck with JQuery 1.2, or use the latest JQuery (1.10 at the time of writing) and do without the layout plugin.

Bottom line: DLL hell can be found anywhere, even in JavaScript land (surprise-surprise!). Especially when Party Lines get involved and people remove useful stuff they consider ideologically wrong.

P.S. There is a release candidate of JQuery.Layout that is compatible with JQUery 1.9+, but it looks like all development seized in January 2013. Too bad…

This article was originally posted at http://www.ikriv.com/blog?p=1312

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Technical Lead Thomson Reuters
United States United States
Ivan is a hands-on software architect/technical lead working for Thomson Reuters in the New York City area. At present I am mostly building complex multi-threaded WPF application for the financial sector, but I am also interested in cloud computing, web development, mobile development, etc.

Please visit my web site: www.ikriv.com.

Comments and Discussions

 
SuggestionOfficial jQuery-migrate plugin could fix that Pin
Nick Tortorelli28-Jun-13 5:05
Nick Tortorelli28-Jun-13 5:05 
GeneralRe: Official jQuery-migrate plugin could fix that Pin
Ivan Krivyakov1-Jul-13 9:45
Ivan Krivyakov1-Jul-13 9:45 
Questionjquery-migrate Pin
Member 167826-Jun-13 23:36
Member 167826-Jun-13 23:36 
AnswerRe: jquery-migrate Pin
Ivan Krivyakov1-Jul-13 9:47
Ivan Krivyakov1-Jul-13 9:47 
Yeah, I saw that one. I am a little hesitant to use it a new project though: starting off with something that requires "migration" leaves a bad taste.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.