www.webdeveloper.com
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 80

Thread: Attn: Expert coders!

  1. #46
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    Quote Originally Posted by ythamwong
    Hi All
    I am looking for javascript to attached image file from any server to each record. Any idea??
    Thanks
    Youth
    You'll need to start a new thread and not hijack this one.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill
    Share on Google+

  2. #47
    Join Date
    Oct 2006
    Posts
    150
    I have a bunch of different snippets lying around, and sooner or later I'll probably assemble some sort of framework. My question: Is such a collection of code welcome, or must each submission be a solution to a specific problem. (Like a some certain form of array sorting or whatever it can be)
    And even if this is not allowed, are scripts that rely on some framework allowed? As it is now, I have a library of functions, which makes some things easier to do, but picking out just the functions needed for a certain snipper, just to make legal to submit might be too much work. (The library functions are collections of functions, like array related functions, DOM related functions etc, and they depend on each other to some degree)
    There are only 10 kinds of people in the world, those who don't understand binary, those who do, and those who know other number bases than 2, 10 and 16.
    Things you should know about my replies: I usually don't test code before I post it. I use bold text for key words like document.getElementsByTagName.
    Blog: Gameboy Genius
    If you're happy with my response, say thanks. If not, ask again.
    Share on Google+

  3. #48
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    If it's a related library, that's fine to submit all at once. Otherwise, you can just post them on your site and I can download individually as I post them or you could just send them to all at once (via an attachment -- we could discuss) and I could post them that way. We have a section for snippets on the JSS site. The idea of having them separated (unless, as I said, they are related), is that someone can grab the one they need without having to download a lot of extra code.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill
    Share on Google+

  4. #49
    Join Date
    Oct 2007
    Location
    Western Massachusetts, USA
    Posts
    387
    Maybe at some point I could make a PHP or Perl validator, to run and see what old functions, properties, and methods are used that are deprecated or broswer specific. This would be fairly easy, and I would make it in an external text file or two, so that you can add thousands and change 'librauries' when needed to update it. But I'm not sure if I'll remain active on this forum... don't want to get tied up either in projects when my time is mostly full atm.
    Share on Google+

  5. #50
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367

    Check Box

    http://javascript.internet.com/forms/checkbox-text.html


    This whole bit of JavaScrript seems rather pointless to me when you could just use <label for=""> and an id=""

    Was it really 2003 I joined these forums. And they still almost look identical! I think a new website design while we're talking about things to fix and improve. Yes I know Lee I'm off-topic - nooo dont attack me pleaseeeeeeeeeeeeeeeeeee.
    Last edited by GavinPearce; 01-30-2008 at 04:47 AM.
    Share on Google+

  6. #51
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by GavinPearce
    http://javascript.internet.com/forms/checkbox-text.html


    This whole bit of JavaScrript seems rather pointless to me when you could just use <label for=""> and an id=""
    yeap. And the eval() there is medieval :-)

    About the forum's design... It looks ok for me... It has to be simply functional, hasn't it?
    Share on Google+

  7. #52
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Meant the JavaScript source site. Sorry my fault for confusing things!
    Share on Google+

  8. #53
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    The scripts section of the site (JSS) has been re-designed. I am in the (slow) process of moving them all over. I had started another thread for updating scripts. If you see any you want to update, just submit them over there and I'll give you credit. (BTW, we can always use freelance writers over at WebReference.com ... and we pay!)

    Many of the scripts posted are for demo purposes, to teach, and also to help solve problems in general. There are also some older ones that I need to remove. I have also had many coders tell me they also use the site for inspiration for their own scripts, and that they sometimes gather snippets of scripts to use. Also, sometimes, people can't use server-side languages.

    As to it being pointless, sometimes there are many different ways of accomplishing the same thing. For instance, to place the date on a Web page, we could use JavaScript, PHP, Perl, Java, ASP and several combinations. So which one is pointless?
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill
    Share on Google+

  9. #54
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Well that very much depends if you want the local or server date.

    Let's assume you wanted local - then say there was a <date> tag in HTML6 and that tag worked on 98% of the major browsers and produced the same output and JavaScript only worked on 90% ? Then it would be pointless to use JavaScript for the same effect, as well as bad education to encourage people to do it that way when a simple/valid HTML tag would produce the same output.

    On the flip side - using JavaScipt to display the server-time would also be pointless.

    I do however agree with your point of it being a good code snippet for demostrating how to control form fields via JS as part of a larger project.
    Share on Google+

  10. #55
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    Yes, you're right. I was just making a general point. Yes, the date tag would be a nice addition.

    So, should I wait for your scripts/snippets? ;->
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill
    Share on Google+

  11. #56
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Hmph fineeee I suppose i had better submit some things then!

    While you're reading:
    http://javascript.internet.com/snipp...l-disable.html
    doesn't actually block the CapsLock key as the description says, it just displays a message informing the user not to use caps lock.
    Share on Google+

  12. #57
    Join Date
    Mar 2008
    Posts
    1
    [removed by admin]
    Share on Google+

  13. #58
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Please read the forum guides, and learn how to post properly in forums.

    Then you may get a reply.
    Have I really been coming here for 6 years? You would have thought I would have learnt something by now!
    Share on Google+

  14. #59
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    raju_bhatiya, what Gavin is saying is don't highjack the thread. You'll need to open a new thread in the proper forum for your question.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill
    Share on Google+

  15. #60
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    Share on Google+

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

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



Recent Articles