Looking at this jQuery example, how can I modify the code so that it only changes the color of the cell if the value of the submit button in that cell is a certain value.
i.e.-
var submitEl = $("td :submit")
//Only do the below if the submit buttons value is "XYZ"
.parent('td')
.css({background...
I am trying to set a focus on a dropdown within GridView(gridViewDropDown class) when page loads:
if ($('select.gridViewDropDown').length)
{
alert("Found my dropdown");
//$('select.gridViewDropDown:first').focus();
setTimeout(function() { $('select.gridViewDropDown').focus(); }, 10);
}
I can see the alert which means...
I'm calling a web service and returning the following data in JSON format:
[{"OrderNumber":"12345","CustomerId":"555"}]
In my web service success method, I'm trying to parse both:
$.ajax({
type: "POST",
url: "MyService.asmx/ServiceName",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",...
I'm trying to horizontally and vertically center a modal window inside a div. I want it to be cross browser compatible. You can see from the picture below that when I resize IE8 then click, "show modal" button it displays not exactly horizontally centered. This does not seem to be an issue with Chrome. Any thoughts? How would you gu...
So I am trying to use jQuery to insert data from an ajax call.
I actually use the jquery.form plugin, and have the ajax form submitted with a dataType: 'script'.
The response is a jquery expression which contains a <%= javascript_escape(render ...) %> erb tag (similar to what the railscasts episode 136 instructs to do). However the end...
My problem is a bit complicated:
I am writing in c#, asp.net and using jquery
I have a page that sends requests to
the server using jquery's ajax
method.
I have a ashx file (handler) to
respond to these request.
User can perform several changes on
several pages, then use some method
that will call the ajax method.
My ashx file reads so...
I'm looking for a good jQuery plugin that allows HTML5 video playback, with graceful fallback to Flash (and potentially further, to default system player, etc). I've googled, but nothing I've found has been quite what I'm looking for. Any suggestions?
...
I have yet another strange need. I have a jQuery dialog that has a dynamic button (
My Button that will be "fired":
<asp:Button ID="RenewSubscriptionButton" runat="server" Visible="false" />
My Hidden input with the postback val:
<input type="hidden" id="RenewSubscriptionPostBackValue" runat="server" />
In my page_load:
Me.Renew...
I'm building a custom CMS where you can add and delete clients using ajax and jquery 1.4.2.
My problem lies after I delete a div. The ajax is used to complete this and refresh automatically.. But when I go to create a new div (without a hard refresh) it puts it back in the slot of the div I just deleted.
How can I get this to completel...
Hi Everyone,
I'm using JqueryUI for drag and drop on one of my pages and for some reason I can't seem to get an attribute of the ui.draggable object being passed into my droppable drop event.
ui.draggable.attr("src") and $(ui.draggable).attr("src") both return undefined, however if I type ui.draggable.html() I will get the html back. ...
I have a span and an anchor inside a table cell. I have the anchor set up to show a tooltip. I would like the text inside the span to be used for the tooltip. How can I select this text in jQuery?
<td class="row-head" colspan="5"><span class="tip-text">Complete Coverage</span><a href="#" class="help"></a></td>
JQuery code - the curr...
Hello,
I am trying to make an image pan & scan system. I have a slider that zooms the image (that can be dragged) and also a small map in the corner of the image (that can also be dragged).
You can see a rough example here (sorry, I am not allowed to use the design, so it's not formatted):
http://lighe.madetokill.com/test/test.html
My ...
I have received numerous calls from users lately, stating that they are not able to access the conference sites with IE7. These sites are created from a template, and they are managed on Joomla.
Previously on other sites, there have no problems or complaints. However, with the recent complaints , I suspect that the culprit is my simple ...
Hello,
How do I remove the oldItems from the newItems string? (remove Blue and Green) newItems is generated from jQuery autocomplete and I would like to remove already selected items from the select list.
newItems = Blue \n Red \n Black \n Yellow \n Green \n
oldItems = Blue,Yellow,Orange,Green
Best regards.
Asbjørn Morell.
...
I have an image on the page:
<img id="foobar" src="emptySpace.gif" />
The image has an absolute position of left: 0 and top: 0 in a .css file.
When I try this in JavaScript onmouseover, the height and width don't change. What am I missing?
var image = jQuery("#foobar");
image.height(500).width(500);
What gives?
...
i have a jquery toggle that animates and displays a DIV. i have a transparent PNG , drop shadow type background image, and when it first appears, i see a black background then it dissapears once the image loads...
is there a way around that? is that a bug? i have it animating slow, so maybe that has something to do with it...
should ...
Can someone please share a extremely simple version of JQuery Ajax with pagination??
...
Okay, I feel like a bit of a 800 pound gorilla trying to thread a needle when it comes to jQuery. I need a script that will preform a simple show/hide (preferably with a nice sliding in and out) on a list.
My markup looks like this:
<div id="themes">
<h2>Research Themes</h2>
<ul>
<li class=...
I have a div that contains 3 fields
You can see the image here
http://imgur.com/A3tbd.jpg
I'm cloning this div with this plugin
http://sroucheray.org/blog/demos/jquery-dynamic-form/
My problems are:
It doesn't clone correctly datePicker.
I'm using validate form plugin, but I guess this plugin is not prepared to validate cloned ...
Hello there!
I made this counter that I think is cool because it only makes visible changes to the numbers being changed between each time it is triggered.
This is the code
// counter
$('a').click(function(){
var u = '';
var newStr = '';
$('.counter').each(function(){
var len = $(this).children('span').length;
...