This code is straight from the original page of the jQuery.Path plugin, only I added a hash in front of the selector after i gave my tag an id of "my_elem" because it wasn't working.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="path.aspx.cs" Inherits="path" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...
Is there a way to use jQuery (or generic javascript) to disable CSS inheritance on a block level? For example, if I am pulling in an external resource via javascript, say pastie.org, they will have their own CSS that my CSS overrides. I would like to place the embed code into its own container that has CSS inheritance disabled.
This is ...
General:
How can I select the first matching ancestor of an element in jQuery?
Example:
Take this HTML block
<table>
<tbody>
<tr>
<td>
<a href="#" class="remove">Remove</a>
</td>
</tr>
<tr>
<td>
<a href="#" class="remove">Remove</a>
...
<area shape="poly" coords="63,10,64,38,89,37,91,10" class={"strokeColor:'0000ff',strokeWidth:5, fillColor:'ff0000',fillOpacity:0.6}" href="#" id="x1">
There is a imagemap in my html and I want to dynamicly add a new configuration "alwaysOn:true" to the class attribute.
I cannot figure out how to add config option
How can I do that with...
I have a spring MVC application using JSP as my view technologies with Jquery for AJAX. I have a table such as the following:
<table>
<tr>
<td>name1</td>
<td>value1</td>
<td>setting1</td>
</tr>
<tr>
<td>name2</td>
<td>value2</td>
<td>setting2</td>
</tr>
</table>
I need to serialize this table so that it...
I'm looking for a jQuery plugin sidebar menu with horizontal collapse/expand and hopefully drag-n-drop resize. It would nice if it take the following list for menu options:
<ul>
<li><a href="#">option 1</a></li>
<ul>
<li><a href="#">sub-option A</a></li>
</ul>
<li><a href="#">option 2</a></li>
<li><a href="#">option 3</...
I am working with jQuery Pagination, and a popup form. On saving the data in the form, how would I go about forcing the Pagination plugin to reload the data it would load for whatever page I am on, without reloading the entire webpage?
Ex:
Item 1
Item 2
Item 3
Add Item->Item 23->Save->Reload List
Item 1
Item 2
Item 3
Item 23
http://d...
ie being quite baffling at the mo!
really domn't know how;
$("#info").delay(500).animate({
'left': "0px",
}, 250 );
can throw an erro but it does? Thinks its the animate but not sure how?
link http://rundell.modernactivity.co.uk/
(line 175-177)
works fine in all other browsers.
any help welcome...
...
i able to show a status message and works without any issue but there is one usability issue.
once it shows the message the div disappears but it still holds the space, how can i remove that space or move up the my label/textbox up?
<div id="status"></div>
<asp:Label runat="server" ID='Label1' >Name:</asp:Label>
<asp:Tex...
Hello,
I would like to have the same behaviour 'live' has, but without using events. Is this possible? I need this because I'm using a different javascript file that creates some elements to which I need to append css classes.
The following code should execute once such an element is added to the dom:
$(".myClass").addClass("myNewClass...
Hello,
I have two different jqGrids in the same page.
In the first grid I've set custom functions for the add and edit buttons in the navigator bar, using the following code:
$.jgrid.nav.addfunc =
function() {
$('#btninsreset').click();
};
$.jgrid.nav.editfunc =
...
hey guys ,
i have used the popular treemenu plugin for my project ,but the only problem i have is with direction .
as you may see , it shows menus in LTR direction and icons of folder and file floating left side
http://jquery.bassistance.de/treeview/demo/
question is how can i change the directio to rtl
believe me , it takes me on...
I need to send some other data, ideally wrapped in a JSON object, down to the client. As well as that however I need to send a Partial view. Now I can only think of two ways:
Send JSON object and then make another call to load contents of partial view into div.
Send HTML for Partial View as a property of the JSON object and then load i...
Need to disable already selected options in select box using jQuery. I'd like it to grey out like asmselect.
Test my example here.
//JS
$("#theSelect").change(function(){
var value = $("#theSelect option:selected").val();
var theDiv = $(".is" + value);
theDiv.slideDown().removeClass("hidden");
});
$("div a.remove").c...
Hi All,
I've been working on an usercontrol with a jquery timer in it. At first I had the jquery within the usercontrol. But when I add 2 of those controls to my page the second usercontrol isn't showing it's data very well.
Now I've put the jquery into the mainpage and the usercontrol only uses the id's of the jquery.
Here is my user...
Hi guys,
I am using contenteditable div elements in my web application and I am trying to come up with a solution to limit the amount of characters allowed in the area, and once the limit is hit, attempting to enter characters simply does nothing. This is what I have so far:
var content_id = 'editable_div';
//binding keyup/down events...
I'm designing a template creation tool, which uses a jQuery Ajax request that posts parameters to a PHP file. The PHP does the actual generation of the template's HTML.
// Send for processing. Expect JS back to execute.
function generate() {
$.ajax({
type: "POST",
url: "generate.php",
data: $('#genform :input').serialize(),
...
I have image map like this
<map name="imgmap">
<area shape="poly" coords="63,10,64,38,89,37,91,10" href="#" id="x1"></map>
and how can I color that area dynamically with jquery like
("#x1").color('red')
?
...
Hi,
I have a list of input type="file" with their names as list[]. Following this question, I was able to make the rules and messages working in my jQuery.
But I do need at least 2 elements of list[] to be filled and adding the rule required: true only works for the irst element of the list, any idea how do I do that?
Cheers,
Nicolas.
...
I'm using jQuery's .getJSON function to parse a set of search results from a Google Search Appliance. The search appliance has an xslt stylesheet that returns the results as JSON data, which I validated with both JSONLint and Curious Concept's JSON Formatter.
According to FireBug, the full result set is returned from the XMLHTTPRequest,...