File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery silliness

 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1796
4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I'm dinking around in the browser console trying to figure out something on a web page and think to myself how much easier it would be if this page had jQuery on it. So, I'm a programmer, right? I should be able to write a console script to add jQuery to whatever page I want! So I start. Hmm, I'll use $('<script></script>') to create the script element, then, let's see, attr() to set the type and point src to a jQuery file. Then I'll probably want to use appendTo() or something like that to add it to the head.

Then it dawns on me.

(I Googled and found a POJS snippet that does exactly what I want, so I'm all set. Just wanted to share my Friday morning moment.)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bootstrapping!



Seriously, it is amazing how, once you get used to having jQuery around, how lost one can feel without it.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic