Adding Archive
-
adding rows dynamically to table using for loop in jQuery
Posted on February 4, 2012 | No CommentsI want to use jQuery 1.3.2 in an html file and create a dynamic table. For this, I create the first row, then create a for loop running 10 times... -
setTimeout not adding a delay
Posted on January 27, 2012 | No CommentsThis is my code: function transition(index){ $ ("#right-panel").find("img").each(function(){ if ($ (this).index() === index){ setTimeout(function(){ $ (this).fadeIn(750); }, 100000000); }else{ $ (this).fadeOut(750); } }); } For some reason, the setTimeout in... -
Adding ‘Fade out/Fade in’ to Responsive Media Queries
Posted on January 23, 2012 | No CommentsI’m wondering how to add the ‘Fade in/Fade out’ effects to elements that I make appear or disappear with a responsive web site using CSS3 media queries. I’ve figured out... -
adding class to this href .. not working?
Posted on January 20, 2012 | No CommentsWe have uplaod function on our site. And uploaded file, displays link which on click user can see file they have uploaded in new window. We also use divbox http://jquery.phpbasic.com/divbox... -
Add show(“slow”) while adding new field using jQuery
Posted on January 14, 2012 | No CommentsI have the following script: function add_fields(link, association, content) { var new_id = new Date().getTime(); var regexp = new RegExp("new_" + association, "g"); $ (link).parent().before(content.replace(regexp, new_id)).show("slow"); } I’ve added .show("slow")... -
event delegation vs direct binding when adding complex elements to a page
Posted on January 11, 2012 | No CommentsI have some markup like this (classes are just for explication): <ol id="root" class="sortable"> <li> <header class="show-after-collapse">Top-Line Info</header> <section class="hide-after-collapse"> <ol class="sortable-connected"> <li> <header class="show-after-collapse">Top-Line Info</header> <section class="hide-after-collapse"> <div>Content A</div>... -
dynamically adding input on click but there’s a while loop
Posted on January 11, 2012 | No CommentsI have a while loop in a form <?php <select> while($ select = $ sql->fetchObject()) { $ name=$ select->name; $ alt = $ select->alt; echo "<option value='".$ alt."'>".$ name."</option>"; }... -
Adding a click event inside jquery plugin while maintain access to main jquery object
Posted on January 7, 2012 | No CommentsIn the below code I have a simple unordered list, and in the plugin I am attempting to fire a click event when the li element is clicked. How can... -
jQuery array populating mailto link adding commas
Posted on January 6, 2012 | No CommentsI have a list of links to pdfs. Users can check a checkbox for each pdf, and then submitting the form will launch an email (using mailto:) with the items... -
Adding additional css class to auto-generated iframe from youtube or vimeo
Posted on January 6, 2012 | No CommentsI have a small Ruby on Rails app with a textbox which allows users to place auto-generated embed code from youtube or vimeo. It’s later displayed in a different view....