Skip to main content

Posts

Showing posts from March, 2013

How to delete first preceding element?

Here is the html from which I want to remove the div element 'div' by clicking the link. <div>     <a href="javascript:void(0)" class="link">My link</a> </div> To access   the preceding element I will use the .parents() method of jQuery and then call  the method .remove() to remove the 'div' element. Here is the code... $('a.link').click(function() { $(this).parents('div:first').remove(); });

HBootstrap Basics: A Simple Guide

Explore Bootstrap basics through a simple HTML setup. Let's create a foundational template: To start, ensure your HTML includes: Proper document structure with <!DOCTYPE html> Basic elements like <html> , <head> , and <body> Viewport meta tag for responsiveness Next, integrate Bootstrap CSS and JavaScript: <link href="css/bootstrap.min.css" rel="stylesheet"> <script src="js/bootstrap.min.js"></script> With these files added, you're ready to leverage Bootstrap's features. Pro Tip: Ensure your css/bootstrap.min.css and js/bootstrap.min.js files are correctly linked to access Bootstrap's styling and interactive components.

HTTP Status Code 501 - Not Implemented

The server either does not recognize the request method, or it lacks the ability to fulfill the request. Why it occurs The error occurs when the Web server does not understand or support the HTTP method found in the HTTP data stream sent by the client. The method should be one of GET, OPTIONS, HEAD, POST, PUT, DELETE, TRACE, or CONNECT as defined by the HTTP protocol. If the method is valid but not supported by the Web server, upgrading the server might resolve the issue. Fixing the 501 error code Clients should specify a valid request type. If the Web server continues to respond incorrectly, consider upgrading the server. If you're registered with 100pulse, you'll receive alerts via email or SMS when a 501 status code error occurs.