What are the best resources on Design Patterns catering specifically to web development with JavaScript and JQuery?
I'm particularly interested in information on programming my own libraries, reusable components, widgets, etc. and the merits of various techniques (for instance in the case of components/widgets comparing those employed i...
Hi,
I have a button <a> that should toggle a drop-down
Then it should also bind (once) a click event to the document that when clicked it should slide it up.
I started with this HTML and JS...
Any suggestions how to make this work?
HTML
<a class="a" href="#">continue shopping</a>
<div class="b">
<a href="#">contin...
Hey guys, this is simple but I can't make it workn... blah!
I have a UL with many LI. Inside of each LI I have a and two :
<ul>
<li><span>Qualification</span> - <a class="editItem" href="get/14">edit</a> | <a class="deleteItem" href="delete/14">delete</a></li>
</ul>
When I click the delete anchor, I would like to hide the LI. ...
I'm having a hard time figuring this one out. Seems like no matter what I try, PHP always ends up returning an empty array. Here's the code of my main file(index.php):
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$(".ajaxlink").click(function() {
callServer();
return false; //Stop link ...
I'm working with a demo of two sortable jquery lists... but have a problem when one list is empty, I can no longer drag items onto it, because there is nothing there to drop on. I tried adding space to the margin, padding and line-height of the ul, but nothing seems to work. Any ideas?
<style type="text/css">
#sortable1, #sortable2 {
...
I've managed to use the cycle plugin for jquery to successfully make a rotating slide show with both a tabbed navigation tool, and a link whose information is gathered from the alt tags of the images.
Both these elements work fine on their own, but when together it seems to break down.
I've narrowed it down to a possible issue with the ...
does anyone know how can i get all styles applied to an id using jquery (so i can reuse it later in another tag)? something like
css:
div#myid{
width:100px;
height:100px;}
so i can later do something like:
for (var parts in $('#myid').css())
alert ('all parts of the style' + parts);
...
Hi, I'm embedding YouTube videos onto my webpage with something like this
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/RU-bMtPz1cY"></param>
<param name="allowFullScreen" value="false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www...
I have a big jQuery code and I am thinking at speed performance of my functions. When an element is clicked (mousedown) i need to assign an image as background. I can do this by 2 ways:
$('#element li.class').css({"background":"someimageURL"});
or
$('#element li.class').addClass("someclass");
where "someclass" have the actual CSS b...
I have a function that prepends a li tag to a parent div just fine...however, after the prepend, i want to act upon this prepended list item by changing css properties when hovered on but the jQuery selector can't find it (seemingly because the .hover function is searching for list items available to act upon when the page loads..and the...
Im trying to use this page slider jquery plugin, you can see the demo here:
http://www.derekperez.com/jquery-pageslide/demo/
I can get it to work, but it works when you click a link. I would like to make it automatically run when they go to a certain page, is this possible? I am very new to this and searched google but couldnt find a s...
Greetings!
I'm trying to combine several JS files into one and serve it through JSP but I'm running into a problem with the jquery validation plugin 1.6
The JSP aggregating various .js files:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/javascript" pageEncoding="UTF-8" %>
<c:if test="$...
You are using ASP.NET MVC with jQuery. You make a lot of AJAX calls. You want to notify the user if they click something and the session has timed out. Does anyone have a good existing solution to this that also includes notifying the user of timeout after initiating an AJAX request?
(There are known solutions for non-AJAX ASP.NET ...
Hi there, I'm using the following code:
$.each($dataObj, function(index, value) {
$(index).html(value);
});
Which of course does not work since $(index) is not a valid syntax.
Each index in the object corresponds to a a unique div-id on the webpage, so what I want to do is to replace the html in all of the div-id's listed i...
Hello, I have created an online magazine (that I hope will take off someday) using wordpress. I would like to be able to track the number of page views of each item without using a wordpress plugin.
What is the best solution??
Should I use jQuery to track page views and then insert that data into a custom wordpress table?
Or is it p...
Hello,
Live Demo with visible code; http://jsfiddle.net/3eEgb/4/
The demo should be fairly self explanatory; I'm finding the length of a sentence inside a wrapper with the overflow hidden, and if it's wider than the wrapper I'm running an animation function that slides it along, revealing the remaining text.
However I'm having problem...
Not really even sure what to call what I am trying to do so I will just explain. I have a section at the top of my site that I want to display announcement type messages. Theses messages will only be relevant to members of the site. As such, I would like for when they begin to type in their username and password, the div/message to appea...
I have a drop-down box that populates itself based on the value of another drop-down, using jQuery's ajaxy goodness. I do this with the $(document).ready function, with this being the relevant code...
$(document).ready(function() {
populateFirstDropDownBox();
$("#firstBox").change(function() {
populateSecondDropDownBox($("#firs...
I have a div that looks good when animated with slideToggle, and slideDown, but slideUp looks bad.
By bad I mean that while the boundaries of the div change smoothly, the words inside the div shift position and disappear quickly one by one.
Highlighting the div in Chrome Developer Tools/Firebug, it appears something is reducing the w...
Hi all,
I'm pretty new to MVC so this may seem like an obvious question, but when posting to my ActionResult, the ActionResult gets called, but the View doesn't change.
What I'm doing is having a basic search page where a user can search my database and the results are returned and paginated.
Here is javascript that calls that ActionR...