I have a script that makes me able to drag some content in a div.
But because you can drag around, no matter where you place the cursor in the div, I am not able to input some text in a text field.
Is it possible to allow that?
I can eaily click links in the div container. But not input text in a html input field.
This is the javas...
Hi guys,
I'm working with the following scenario:
I have an image map with hotspots. When you mouse over an <area> on the image map, shows a <div class="info-panel">. This div overlaps the <area>, so the div is hidden on mouseleave of <div class="info-panel">.
This mostly works, but on the odd occasion, for example if you go ballisti...
Hi guys,
I'm just learning how to utilise ajax/json with jquery and I've hit a brick wall that I just don't understand.
Here is my code - VERY simple code:
$("#click").click(function() {
$.getJSON("http://localhost/jsontest/a.json", function(data) {
alert("done");
});
});
Basically, load a.json and send an alert...
The element looks like this:
<li class="blah active"> ... </li>
jQuery.attr('class') will return both classes.
How can I get only the 1st class ('blah' in this case) with jQuery?
...
i binded the jqgrid using 'data type=local' its working fine but now i want to bind jqgrid using JSON datatype.
can anybody help me.
...
How can compare with flot 2 differents date range and one line appears above the other, because now i have one line and then the other after the first one.
Thank you.
...
Hi.
Most jQuery plugins have options like this one for example (cycle):
$("ul").cycle({
fx: 'fade',
startingSlide: 1,
speed: 500,
pause: true});
The plugin will do his thing on all elements with the class/ID you specify, in this case all <UL> elements.
How can I access this <UL>'s child elements from within one of th...
does jquery support multiples of
$(document).ready(function() {});
ie. can i make a few of these on the same page and they will all be executed? or does the newest one overwrite the last?
...
I'm trying to populate a DropDown from a Json result using jQuery.
I have the following class:
class MyOption
{
int Id { get; set; }
string Name { get; set; }
}
I'm not sure how to get a list of these into my Json result. At the moment I have the following, I'm not sure if it's correct but it compiles and runs:
return Json(...
I'm trying to hide tr's within a html table if the inputs inside them match a certain criteria.
The criteria is defined by a dropdown's selected value.
I'm doing it like so:
$(function () {
$('body').find('#p_Selection').live('change', function () {
var type = $('body').find('#p_Selection').attr('value');
var tableRow = $('....
Hi
I have a list like this one:
<li> .... </li>
<li> .... </li>
<li> .... </li>
<li class="active"> .... </li>
<li> .... </li>
I want to find out the index (number in the list) of the item with the "active" class element.
in this case the index would be 4 (or 3 if we're starting from 0)
How can I do that?
...
i have the following jquery code:
$(document).ready(function() {
$('.restrictiveOptions input[type!=checkbox], .restrictiveOptions select').change(function() {
// check off enabled for that row if anything changed
$(this).closest('.fieldRow').find('.restrictiveOptionEnabled').attr('checked','t...
Hi.
I'm face to face with this issue, and I don't know how I can resolve it. I found some similar solutions here but none of them is what I need. Let's say, I have some code that makes a simple wrapper around one-button jQuery UI dialogs. In this case all is simple:
$parent.keypress(function(e) {
switch ( e.keyCode ) {
case 13:...
Hi There
I am hoping that someone can help me. I have found this jquery script to load content into a pace using ajax
$(document).ready(function(){
//References
var sections = $("#menu li");
var loading = $("#loading");
var content = $("#content");
//Manage click events
sections.click(function(){
//show...
What's the fastest way possible to get a string like "fade" from the classes in the element below?
<div class="MyElement fx-fade"> ... </div>
...
Would it at all be possible to show the current applied filter parameter as a descriptive string appended to the main title in the title bar
i.e.
"Customer - [ Field1 = 'ABC' and Field2 = 'CDE' ]"
Can't find an event that could be hooked onto once a filter is applied?
...
Hi,
I have this xml file.
I would extract the first child of Status node and alert it.
How I can do it?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:ExecuteResponse xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.opengis.net/wps/1.0.0" statusLocation="http://r...
Hi,
I'm looking through a plugin that somebody else has written and for some reason all my click event handlers are destroyed. I'm going through the code and there are several uses of unbind which I've commented out to determine whether it is causing the issue. Unfortunately that is not enough, so I'm wondering if there are other ways...
I'm using jQuery to retrieve some JSON data from an URL. I feed that data into a Google DataTable, create a Google AreaChart and draw the chart using the DataTable. Initialization of the charts is done in a function registered via setOnLoadCallback (as it's done in the Google examples). Everything works fine in IE, but not in Firefox. So...
Hi, I'm dynamically switching a div's background-image with the jquery bit below. Works just fine in FF, but turns out in IE it does not. Any ideas why? Does IE not reload the image if a css property changed? Any pointers would be appreciated.
$(function(){
$('.header').each(function(){
$(this).hover(function(){
$('#he...