Using the latest jQuery/UI that are hosted at Google. I've got the following markup:
<ul id="tree">
<li><a href="1/">One</a></li>
<li><a href="2/">Two</a></li>
</ul>
And the following javascript:
$(document).ready(function(){
// Droppable callbacks
function dragOver(overEvent, ui_object) {
$(this).mousemove(function(mov...
I have a horizontal menu on my site using nice-menus in drupal. When you hover over an li element, a background image is set for the link that displays. The problem I'm having is that this image disappears when you hover over a parent menu item's children. The image that is disappearing is set using this css style:
ul.nice-menu li ...
I've got the accordion working fine on pageload, however upon user interaction with some elements on the page, I am using ajax to rebuild the HTML of the accordion. Then, I try to re-initialize the accordion again with
$('#accordion').accordion({
active: false,
autoHeight: false,
clearStyle: true,
collapsible: true,
heade...
Can anyone recommend an article on sending and receiving JSON to an asp.net web service (any flavor) that uses more practical examples than "hello world".
Ideally, something that covers topics like:
Receive a single complex object from a web service (to display in a form)
Receive a collection of complex objects from a web service (to...
I am using this jQuery form validation plugin: http://docs.jquery.com/Plugins/Validation/Methods
I am trying to use the dependancy callback: http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-callback
What I am trying to do is only require "BAR" when "FOO" has a certain value.
Here's a basic example:
<select name="...
I'm trying to make a simple JQuery button from a div which will change background color when rolled onto/off of.
My code so far looks like this:
<html>
<head>
<title>Div Test</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$("div").hover(function(...
I have found no definite way to detect IE6 using jquery.support instead of jquery.browser which is not supported anymore. Also I need to account for Quirks mode, Ugh!!!
I have seen a couple of posts on Stack but they all refer to jquery.browser and the documentation for jquery.support is a little vague.
Any help on this would be great ...
In "Custom data tooltips in jqGrid 3.4" discussion, came to know how to use setcell to change the color of the text inside a cell of jqgrid. How can we change the background color of the cell?
Tried the following
jQuery("#list").setCell (row,col,'',{ background-color:'red'})
jQuery("#list").setCell (row,col,'','',{ bgcolor:'red'}
Tha...
i've got a foo.php file which retrieves client infomation and generates an xml output with the relevant client info.
i'm trying this ajax call which does not seem to want to work
$.get('http://www.foo.php','',function(xml){
$('samplenode',xml).each(function(i){
//stuff done here
});
}, 'xml');
i'm still new to javascript...
I'm trying to slide a div containing a table up, change the rows of the table with ajax calls, and then slide the containing table back down. I can't seem to get the series of callbacks to work effectively.
$("div#grid").slideUp('fast', function() {
//eaery row but the first
$("#testtable tr")
.not(":first")
.fi...
I have very simple div(1). I need other simple div(2) slide slowly on it(1) at once page loads. From bottom to top.
<div id="slideshow" class="reb_darkblue_bg">
<img alt="Slideshow" src="images/slideshow_home_1.jpg"/>
</div>
<div class="slidingdiv" style="background:black; color:white;">Pricing</div>
At internet examples too confus...
A certain variable might contain a relative path or an absolute path. Either way, I need to be able to pull the filename from the variable:
http://www.somesite.com/dir1/dir2/filename.gif
/dir1/dir2/filename.gif
The directory structure is also arbitrary. So basically given either of the url's above (with arbirtrary directory structur...
I have several divs for displaying demo boxes of graphics, and code boxes for displaying sample code for using the graphics. What I want to do is make the code boxes invisible until you click on the demo box - which should make the code box slide into view. (See here to see how it looks)
This should be super simple with jQuery, as I've ...
I have read the JQuery documentation, and while much attention is devoted to what you should pass the function, I don't see any information on what it actually returns.
In particular, does it always return an array, even if only one element is found? Does it return null when nothing is found? Where is this documented?
I understand th...
I have the following JQuery function being attached to the blur event of n textboxes on a webpage.
$(document).ready(function() {
$("input[id$='_txtTuitionAmt']").blur(function() {
alert(this.value);
})
});
It works just fine. When the user tabs out of any of the textboxes then an alert popups and displ...
Hi,
I am implementing a portlet/widget JQuery interface using Interface and JQuery. The user drags and drops widgets adn the screen can handle it.
I am able to use serialize which displays the order of the div elements on the screen.
I can save this in a cookie or DB - that doesnt matter yet.
My question is how is it possible to load a...
Hello, I'm relatively new to jQuery, so I apologize if I'm asking a rudimentary question, but I have a problem with event triggering. Right now I'm trying to design a kind of Image Panning tool, where the user can pan an image in any direction within a viewing window (a fixed div). On mouse down, the function will start to perform a co...
What percentage of browsers would probably have Google's cached version of JQuery already loaded?
I am asking this to figure out how fast my page would load on an "average" browser. My page needs both JQuery and JQuery UI. I believe most browsers would probably have JQuery already cached from Google's servers. Is this true? And what are...
Its pretty simple to see what I mean if you look at the image, which I also need to shrink back if you click it again, it needs to be animated as well:
...
Hi All, I am looking for info on the event and ui objects the jquery selectable events: "selecting", and "start" take as parameters. I cannot find this in the documentation and looping through the properties is no help.
$('#content_td_account').selectable({
filter: 'li:not(".non_draggable")',
...