SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    525
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Creating your own JavaScript library/framework

    There are a few things I do often in JavaScript (like Ajax calls, emptying elements within an element, etc...) that I'd like to make a custom lightweight library for. What are some good ideas for how to structure such a library?

    Thanks!

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,999
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Quote Originally Posted by NokX View Post
    What are some good ideas for how to structure such a library?
    Namespace it, so that it doesn't clash with third party scripts.

    Don't forget though, that there are JS libraries for almost everything: http://www.jsdb.io/
    So sometimes writing your own isn't the best way to go.


Bookmarks

Posting Permissions

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