0

Dynamically create iframe with jQuery

Posted by Uzbekjon on Feb 13, 2010 in - Ajax, - Javascript, - Silver Light  | View Original Article
 This article explains and shows how to dynamically create an iframe in your HTML document’s DOM using jQuery and/or JavaScript. It also gives you an example code. This post is not extensive explanation of how to manage and work with iframes using jQuery. This post simply shows you how to dynamically create iframes using jQuery and JavaScript and serves as a note. Creating iframe is similar to

Tags: , , , , , , ,

 
-

diggthis.js + jQuery .wrap() is not working, causing Firefox to freeze and Safari to crush

Posted by Uzbekjon on May 25, 2009 in - Ajax, - Javascript  | View Original Article
 I came across a forum post where user was experiencing problems while using Digg this (diggthis.js) button code with jQuery’s .wrap() method. According to him Mozilla Firefox (FF) is freezing and Apple Safari is crushing when he tries to wrap the div that contains diggthis.js file with another new div like so:
 
-

Remove n’th table column – jQuery plugin

Posted by Uzbekjon on May 22, 2009 in - Ajax, - Javascript  | View Original Article
 My usual short Friday post. Today I would like to share with you a new utility I wrote to work with HTML tables. We already have jQuery functions to add table row, remove table row (on user click), add table row number plugin and now here is jQuery code to remove table column. jQuery utility to remove table’s n’th column: $.fn.removeCol = function(col){ // Make sure col has value if(!

Tags: , , , , ,

 
-

Remove table row on user click

Posted by Uzbekjon on May 21, 2009 in - Ajax, - Javascript  | View Original Article
 This post is about removing a table row on user click. I needed this functionality for a project of mine. Online application had a table with data that user can dynamically add and remove. With progressive enhancement I also need to add a functionality to one of the tables that enables users to delete table rows when that table row is clicked. jQuery code to delete clicked table row came out to

Tags: , , ,

 
-

Remove the bottom table row using jQuery

Posted by Uzbekjon on May 1, 2009 in - Ajax, - Javascript  | View Original Article
 I have posted a small jQuery code a while ago which adds a table row at the bottom of any given table. The code takes into the consideration tbody tag and also can be used as a jQuery plugin. Recently I was asked to write a jQuery or JavaScript code that removes the last/bottom row from the given table. The jQuery code I wrote was surprisingly small. jQuery code to remove bottom/last table row

Tags: , , , , , , ,

 
-

jQuery image swap or How to replace an image with another one using jQuery

Posted by Uzbekjon on Apr 11, 2009 in - Ajax, - Javascript  | View Original Article
 Swapping one image with another is probably one of the most used javascript techniques. Also Dreamweaver made “image replacement” even easier for non HTML/Javascript programmers by including this feature out of the box. One thing about Dreamweaver’s image swapping javascript is that it’s not the most beautiful javascript code. Well, as always with anything javascript related, jQuery is to the

Tags: , , , , , ,

Copyright © 2010 Answer My Query All rights reserved. Maintained by Orange Brains .