aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery silliness Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery silliness" Watch "jQuery silliness" New topic
Author

jQuery silliness

Michael Matola
whippersnapper
Ranch Hand

Joined: Mar 25, 2001
Posts: 1752
    
    2
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

Joined: Jan 10, 2002
Posts: 61606
    
  67

Bootstrapping!



Seriously, it is amazing how, once you get used to having jQuery around, how lost one can feel without it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery silliness