code Archive
-
Set jQuery code to fire after function has completed
Posted on September 12, 2011 | No CommentsI have the following function (I’ve removed code from the middle that is not important to my question): function shadowBoxRefresh(){ $ ("#sb-nav-next, #sb-nav-previous").click(function(){ $ ('#sb-container').addClass("visibility_stay"); $ ('#sb-overlay').addClass("opacity_stay"); Shadowbox.close(); Shadowbox.clearCache(); shadowBoxSetup();... -
Communication by JSFIDDLE with PHP code and database on server
Posted on September 11, 2011 | No CommentsI want communication by JSFIDDLE (jQuery AJAX call => url:…) with PHP code in my server but have following error. An error has occured: [object Object] error Demo: http://jsfiddle.net/mmJNq/ what... -
regular expression to check if zip code text is not from a particular state
Posted on September 10, 2011 | No CommentsSo I want to write a validation that checks a zip code in a html input text. I want to check if a zip code is from a particular state... -
How can I reduce this Javascript/HTML/jQuery code?
Posted on September 9, 2011 | No CommentsI have hundreds, maybe thousands of charts for stores. The only difference is the name of the store and the product. The HTML code is dynamically generated once/day. Even minified,... -
Adding Additional Div breaks Existing Jquery Code
Posted on September 4, 2011 | No CommentsI have a very simple div with an image inside: <div class="stack4"> <img src="images/002m.jpg" width=200> </div> And a very simple Jquery function for when you hover over the image: $... -
Should I worry about standards compliant code on dynamically generated input fields?
Posted on August 31, 2011 | No CommentsQuestion by Aaron: Should I worry about standards compliant code on dynamically generated input fields? I am looking to create an address book type of application in (x)HTML/PHP/CSS/JavaScript (jQuery)/MySQL. I... -
Translate my code from plain JavaScript to jQuery for me
Posted on August 29, 2011 | No CommentsI’m not very good with jQuery. I want to put the JavaScript code into jQuery. Here is my code: function showokui(whoami, input) { var arrRows = new Array(); var postvalue... -
Weird problem with javascript/jQuery code which get fixed using alert();
Posted on August 28, 2011 | No Commentshere’s my code $ ('ul.container_12 li ul li div ul li.icon_export').click(function (e) { e.preventDefault(); var anchorHrefValue2 = $ ('a', this).attr('href'); var mycat2 = $ (this).parents('li.current').attr('class').split(' ')[0]; window.location = anchorHrefValue2+"?active="+mycat2; });... -
Ways of writing jQuery code
Posted on August 27, 2011 | No CommentsIs there any documented or some kind of standard way of writing jQuery code in any web application? I am asking this more in the context of jQuery binding which... -
Q&A: How do i set up lol code?
Posted on August 27, 2011 | 1 CommentQuestion by rtoot3: How do i set up lol code? I love finding new programming languages to learn, and i was browsing ubuntu forums and found a thread that was...