Blog Archives

Send file for download with ajax

No matter there are sources that state downloading a file with AJAX is not possible there are many queries to do that and of course there is a way to do it. Downloading a file with AJAX has a trick

Tagged with: , , ,
Posted in Articles, Browsers, JavaScript, Ruby On Rails

Load JavaScript dynamically

Load JavaScript dynamically This is the snippet you can use. function loadScript() {     var script = document.createElement(“script”);     script.type = “text/javascript”;     script.src = “http://example.com/some.js”;     document.body.appendChild(script); } The code is self explained. You have to add only onload

Tagged with: , ,
Posted in JavaScript

jQuery Short Functions Reference

jQuery HTML methods addClass()    Adds one or more classes (for CSS) to selected elements after()     Inserts content after selected elements append()     Inserts content at the end of (but still inside) selected elements appendTo()     Inserts content at the

Tagged with: ,
Posted in JavaScript

Most useful Mozilla Firefox plugins

Mozilla Firefox Add-ons Firebug is the most useful and esential plugin for Firefox, that web developers use. Wealth on functionality to debug CSS, HTML, JavaScript. It also can be used to view loading times of the resources with and optimize

Tagged with: ,
Posted in Articles, CSS, HTML, JavaScript

Prototype in Object Oriented JavaScript Code

Prototype Prototype is build-in JavaScript object whish is cild of all objects and is used to create methods and properties of all instancies of an object. function MyFunc(){     …} MyFunc.prototype.customEvent = function(e, obj, evt, args){     …}; You can

Tagged with: ,
Posted in JavaScript

Using JavaScript window.open Method

The syntax of window.open method is given below: open (URL, windowName[, windowFeatures]) URL The URL of the page to open in the new window. the argument could be blank. windowName A name to be given to the new window. this

Tagged with:
Posted in JavaScript

Resize Browser Window with JavaScript

Few days ago I was searching for tool to resize the browser window. It is mandatory that every web developer has one. The first ten result give the blog of Pete with the solution. Just type that in the browser

Posted in JavaScript

How to Redirect Parent iframe with JavaScript

JavaScript redirect code snippet If you have nested iframes and want to redirect the whole page from the nested frame use this: parent.document.location = ‘url_to_go’; If you have more than one nesting use “parent” as much as nested iframes are.

Tagged with: ,
Posted in JavaScript
Sites
Categories
Archives