Tags » JQuery

Add and remove element in Jquery (Part 9)

One of the cool features of Jquery library is write less and do more. Yes it is true,There are so many handy methods are available for doing much functionalities with few line of code. 597 more words


jQuery Ajax calls to Python SimpleServer for GET, POST, DELETE

jQuery to POST data: to Save

              url: 'data/' + note ,
              type: "POST",
              data: jsonData,
              dataType: "json",
              beforeSend: function(x) {
                  if (x && x.overrideMimeType) {
              success: function(result) { }
… 179 more words

Press Enter key focus on next text box

Just use this code:

jQuery(function() {
            var inp = jQuery(‘input:text’);
            inp.bind(‘keydown’, function(e) {
                //var key = (e.keyCode ? e.keyCode : e.charCode);
                var key = e.which; 15 more words


jQuery Ajax Call to GET and POST

  1. Update your hosts Entry for localhost with some name: like this   localhost sudhakarweb.com

2. Run the WebServer created using Python Script in another blog post. 74 more words


WebServer with GET n POST

here is the sample code for WebServer using Python

import SimpleHTTPServer
import SocketServer
PORT = 8000
class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
    def do_GET(self):
    def do_POST(self):
        length = int(self.headers['Content-Length'])
        with open(self.path + '.json', 'w') as file_:
Handler = ServerHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "serving at port", PORT

Basic DOM manipulation with JQuery – II

This was originally published on Oct-31-2013

In my Basic DOM manipulation with JQuery – I post here, we discussed how to select elements from the DOM and do stuff with them. 1,567 more words


Basic DOM manipulation with JQuery - I

This was originally published on Oct-25-2013

I often find myself wanting to do simple things such as creating a reusable navigation menu across multiple views without having to duplicate the html for each. 1,477 more words