Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Your favorite thing to do with JavaScript?

    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?

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    liquid design is may favourite application, I reckon...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DOM Manipulation, probably

    not got an outstanding favourite as such, but it does have to be said that bookmarklets are an exciting feature of JS.

    of great interest is the JSRS method you've mentioned. the same thing could be sort of done using LiveConnect (Javascript-to-Java Applet-to-Javascript) coding, but JSRS makes it one less step in the process.

    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!

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fred;

    I am intriqued by Bookmarklets and use them often.
    Can I see your Querring Bookmarklet?

    .....Willy

    BTW: To answer your question. I am of the same mindset as Jbot and enjoy client manipulation of the DOM as well as mathematics and writing javascripts to do something someone said couldn't be done. Javascript combined with Perl is a dangerous combination!

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts

    I like to use JavaScript for:

    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #7
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Garadon
    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?

  • #8
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    Willy Duitt, see next post. The purpose of this particular bookmarklet is to show the current standings of a poll without the need to constantly (well, manually) reload the page and it also tells you other things to (i.e., who's currently winning, and how many votes the loser needs to catch up). To run it go to <http://www.gamefaqs.com/poll/list.html>, go to the topmost poll, and paste the attached JavaScript code in the location bar and press Enter (I know you probably know this but this is for people who don't know how to use bookmarklets). The DOM Inspector was extremely useful during the creation of this script.

    Garadon, no problem. It's a simple concept. A bookmarklet is merely a piece of JavaScript code that you can execute via the location bar. However, they're usually stored as bookmarks, hence, "bookmarklets". In general, they're scripts that perform some kind of useful (or not) action in the page using JavaScript. For more information you might check <http://www.bookmarklets.com/>.

    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.
    Last edited by fredmv; 06-04-2004 at 10:56 PM.

  • #9
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Attachment system is acting weird. See <http://www.fredvaughn.org/query.txt> for the bookmarklet.

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    DOM. I am able to build pretty enhanced guis on the client working with js and the DOM.
    does this sig match?

  • #11
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Fred;

    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.

    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.

    .....Willy

  • #12
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by fredmv; 06-04-2004 at 10:56 PM.

  • #13
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    my favorite thing to do with javascript is a bookmarklet, as follows:

    javascript:for (i in self) { if (typeof self[i] == "function") { if (self[i].toString().indexOf('[native code]') < 0) {if (confirm(self[i]+"\n\nEnd this function?")) {self[i] = null;} } } }
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #14
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    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! Perhaps I will post one one day when I have a chance, they are quite usable.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #15
    New Coder
    Join Date
    Dec 2003
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •