06-04-2004, 09:31 AM
I personally think appending a hidden iframe node in the document, transparently querying the server and then reporting data from the server on the containing page very cool stuff; just did that with a recent bookmarklet I wrote.
So what's your favorite thing to do with The World's Most Misunderstood Programming Language? ;)
liquid design is may favourite application, I reckon...
not got an outstanding favourite as such, but it does have to be said that bookmarklets are an exciting feature of JS.
DOM-manipulation is cool to. Being able to add and remove elements on the fly is sweet. this is particularly useful working on JSP/Struts webplications. if you need a specific script on a particular screen, you can call a function in a global JS file which then appends a screen-specific file to the head. this helps keep the size of your JS files down and also means you don't automatically need to include them in each page. you just create the node when the script's needed. sweet! :thumbsup:
06-04-2004, 11:07 AM
I am intriqued by Bookmarklets and use them often.
Can I see your Querring Bookmarklet?
06-04-2004, 02:56 PM
Don't know what a bookmarklet is :P
I like to make graphical things and interfaces.
IE:3d sphere,Div windows,Dynamic Tables etc...
oh and I usualy use script blocks run php scripts in.
06-04-2004, 03:17 PM
oh and I usualy use script blocks run php scripts in.
you mean like JSRS? or do you mean something else?
gonna give us an example?
06-04-2004, 06:12 PM
Thanks for the responses guys.
Kor, liquid design, huh? That sounds more like a job for CSS, unless you're referring to something else.
jbot, definitely; bookmarklets have proven to not only be very cool, but very useful as well. And I wholeheartedly agree — the power to manipulate the DOM makes pretty much anything possible. It's incredible.
A1ien51, pretty cool stuff. Games rock, but I've only built very simple ones (e.g., Tic-Tac-Toe). Perhaps I'll try a more complex project someday.
P.S. The bookmarklet provided below only runs correctly in Mozilla.
06-04-2004, 07:06 PM
Attachment system is acting weird. See <http://www.fredvaughn.org/query.txt> for the bookmarklet.
06-04-2004, 07:51 PM
DOM. I am able to build pretty enhanced guis on the client working with js and the DOM.
06-04-2004, 08:42 PM
I haven't had a chance to check it out yet and I'm leaving the office soon. But I just wanted to say that I appreciate your sharing. :thumbsup:
I do have a question tho. I realize IE has a limit (I think it is 256) on character length for Bookmarklets. Will this work as a Bookmarklet in Mozilla based browsers? Or is there a limit also?
Regardless, I know I can still use it with IE by calling an external file, but curious minds want to know. ;)
06-04-2004, 09:08 PM
allida77, for sure. DOM functionality seems to be a common favorite and it's quite easy to see why.
Willy Duitt, no problem whatsoever. It will indeed work in Mozilla. In fact, it will only work in Mozilla. I've tested it in IE6 and Opera 7.51, but they both can't handle it.
06-04-2004, 09:25 PM
06-05-2004, 01:40 AM
My favorite thing to do is make little clientside apps that pull data to an HTML page, LOL - I guess that's the only thing I do. Make seemingly serverside apps that are all clientside. Makes for some scripts that do things lots say cannot be done with JS. Far less secure but they work and they've made me famous at work! :cool: Perhaps I will post one one day when I have a chance, they are quite usable.
06-05-2004, 01:57 AM
this is gonna make me sound like a n00b, but i like to make scripts with never-ending alert messages to piss off my friends :D
06-05-2004, 02:59 AM
heh.. what i do at school when my mates move away from a pc, is type in the address window:
and when they get back they wonder whats goin on lol.
06-05-2004, 03:02 AM
Save yourself some typing. ;)
06-05-2004, 06:49 AM
06-05-2004, 08:35 PM
I know it's basic, but my fave thing is multi-dimensional arrays. Partly because one of my friends (a non-scripter) thinks that I've just made up that phrase to make him feel insignificant.........
06-06-2004, 08:44 PM
06-07-2004, 04:57 AM
Me too. Check out my sig. :cool:
I developed my js skills in creating js games. And I honed it when I joined CF. :)
I've also made other games such as memory, (a not-so-intelligent) Othello and Master Mind.
06-07-2004, 02:08 PM
And I honed it when I joined CF. :)
06-07-2004, 04:34 PM
Besides writing games , my other favorite thing is writing this: http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764574973.html
(I did not write the description of the book which I am yelling at the Tech editors to change!)
I have the book 75% done....should be 100% complete in 2 weeks...
06-08-2004, 02:52 AM
What's wrong with hone (http://www.google.com/search?hl=en&ie=UTF-8&q=define%3A+hone)? It can also be a verb.
just occurred to me that one of the best things to do with JS is to prototype your own methods and properties, thereby creating extensions which overcome cross-browser problems more easily.
IE's really useful insertAdjacentHTML, insertAdjacentText and insertAdjacentElement methods don't exist in Mozilla, but it's possible make them so by prototyping a method based on HTMLElement. this way we don't need to write long-winded JS files, we simply call the method we need, since it's already been initialised in our extension library.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.