when i use google.load() to load jquery, what do i use in place of
$(function() {
...
});
is ...
google.setOnLoadCallback(function() {
...
});
the same thing? this may be too slow if i am loading alot with google.load()?
then will
google.load("jquery", "1.3.2", {callback: docLoaded()});
run AFTER the whole document is loade...
Consider the following code, in theory the click event should bind to each element but for some reason (unbeknown to me) it will only bind to the last link. does anyone have any ideas?
$.each(data, function(i,aitem){
linkid = 'address'+i;
$("#SearchResults").html($("#SearchResults").html()+'<p><a id="'+linkid+'" href="#">'+ aitem...
Been struggling with this simple selector problem a couple of hours now and must be missing something obvious. I have a <ul> in which some <li>s have nested <ul>s. Each <li> contains a link and when this is clicked I want to execute a function (rather than navigate), but importantly, this should only happen for the links contained in the...
I currently work on a magento webshop, which loads PrototypeJS as framework.
However i need jQuery at some point to do some custom stuff.
jQuery is loaded after prototype and runs in noConflict mode.
Now, here's my demo HTML:
<div id="someID">
<div>child</div>
<div>child</div>
<div>child</div>
</div>
An external JS file is loaded a...
I have a variable (div element) which contains some table html.
I can use this javascript to add a class to each cell that has a background set.
var tds = tempDiv.getElementsByTagName("TD");
for (var j = 0; j < tds.length; j++) {
var oTd = tds[j];
if (oTd.style.background.length > 0) {
oTd.className = 'faketh';
...
Hi all,
I was wondering if anyone happens to know of a jQuery (or pure javascript) mind map. I found this one a few times, but it uses MooTools, unfortunately.
...
Hello,
Divs of class=message are generated using a post which pulls data and puts it in the page. Now, I want to remove the lower divs after it reaches 20
<div class="message">test</div>
<div class="message">test</div>
<div class="message">test</div>
.
.
.
<div class="message">test</div>
So i need a sort of function to remove the rem...
What the best/accurate/free service to convert the IP from the following script to country/city/lat/long?
$.getJSON("http://jsonip.appspot.com?callback=?",
function(data){
alert( "Data Returned: " + data.ip);
});
...
I have a div containing nested divs, like so:
<div id="tree" class="tree">
<div class="node"><div class="handle"></div>Node 1<div class="ignore"></div>
<div class="node"><div class="handle"></div>Node 2<div class="ignore"></div>
<div class="node"><div class="handle"></div>Node 3<div class="ignore"></div>
</div>
Then, to add sortable()...
Hi,
I'm looking for a JQuery plugin that supports adding resizable drop shadows to divs, tables, text, etc. I really only want the shadow to resize when the user resizes the browser window (the elements with the shadows are not draggable).
I've tried this plugin but it doesn't seem to shrink the width of a shadow when a user narrows th...
I'm trying to iterate over checkboxes in an ASP.Net web page, and if any of the checkboxes are checked, then I want to enable the button on the page, but if none are checked, I want to disable the button. I'm working on the sample code below to enable the button, but it isn't working correctly. Any ideas on how to fix it?
<html xmln...
I have a module that submits a form request which unfortunately needs to be pulled in as a iframe.. The problem is that the result loads inside the frame when I want it to take over the same page.
form target="_top" and target="_parent" don't work..
is there a way I can achieve this through jQuery, since its loaded anyway?
...
Am in the process of implementing a fairly conventional shopping checkout flow. Currently it steps thru like:
User adds an item to the cart and is
presented with Step1 (login or
register as new customer)
User is presented with summary of current the order and a handful of controls that modify the order. After confirming the desired co...
Hey,
I have a jquery scroller i made with thumbnails and I am trying to create a mini script.
When a user clicks on the thumb nail, it updates code like this:
<div id="big_image">
<img src="HERE.jpg" alt="my image"/>
</div
So when you click a thumbnail on the scroller it updates the SRC of the IMG tag on the page? Any ideas how ...
Can JQuery UI and JQuery tools work together? I.e. If I include both libraries on one page, will it still work?
...
I would like to change a header css background image every few seconds, so its look like a slideshow.
For example first 2 seconds be:
body#home h1#siteH1 { background:url(../images/header1.jpg) no-repeat;}
Next 2 seconds be:
body#home h1#siteH1 { background:url(../images/header2.jpg) no-repeat;}
Next 2 seconds be:
body#home h1...
I'm using CSS selectors to generate custom pop-ups for a web templates - basically, some some the producers aren't comfortable with JS and I need an easy way for them to set pop-up sizes etc. I'm not really interested in the merits of this approach, but rather wish to understand why jquery seems to be unable to get the width and height a...
jCarousel documentation states the following:
By passing the callback function itemLoadCallback as configuration option, you are able to dynamically create (li) items for the content.
{...}
jCarousel contains a convenience method add() that can be passed the index of the item to create and the innerHTML string of the item to b...
A function is bound to an event for many objects. One of those objects fires the event and jQuery kicks in. How do I find out who fired the event inside the JavaScript function?
I've tried using function [name](event){} and poking at event but I get "'data' is null or not an object".
Here's my code right now:
<script type="text/javasc...
I was given the code below to disable a button on an ASP.Net page if none of the checkboxes are checked, and to enable it if any checkboxes get checked. It disables the button fine when the page loads and no boxes are checked, but never hits the $('.cb').change(setButton) code to enable the button when I check one of the checkboxes. An...