I'm having some issues catching error messages from a controller via .ajax error. The script is called by a jQuery UI Dialog popup. Any help would be appreciated.
Here's the code snippet from my controller
Response.StatusCode = (int)HttpStatusCode.BadRequest;
return Content("There was an error in your request.",...
I have a select field that shows different elements of my form based on the selected value, I have three "classes" that each show the required portions of the filed. I currently have the selects bound to a .click() and it works fine except that if I want to load the page with the value preselected, it won't show the required parts of the...
Hello, is there a JQuery visual diff plugin that anybody knows about. Something like you would see on GitHub, BitBucket, or any standard source control site?
I have found this http://snowtide.com/jsdifflib and it looks pretty good, but wonder if there are more out there like it.
Thank You.
...
I have a jquery script which animates the background position of each element within a parent when rolled over. I am using backgroundPosition in my script which handles the animation of the background image. I am using $.event.special.hover to handle the hovering as it takes care of a lot of the usability quirks of a jquery nav.
My prob...
I have two events that need to be executed in this order:
tabs toggled into/out of view
the browser navigating to a hash tag as it would normally (jumping down the page to the anchor)
And I need it to work with the back button.
I wrote my own function gotoanchor() which accomplishes the first two and because I am navigating to the p...
I have a jqgrid and on button click I just want to send two column values instead of sending the whole values...how can I achieve is using getRowData ....any suggestion will be appreciated..
Thanks!
...
Hi Everyone
I am having trouble finding a simple example that demonstrates how to query the msn or yahoo weather api using ajax or jquery.
I want to understand how I can pass a query to these api's and then retrieve string information back which I can then present to the user on a html page.
I have been searching the internet for two ...
The Modularity Wordpress theme includes a "post slider" built around jQuery Cycle. It uses pager to display a small number above the sliders. I would love to be able to change that number into the post title.
The code in the theme is as follows:
$doc_ready_script .= '
jQuery(function() {
jQuery("#slider-posts").cycle({
fx...
Getting a JS error when I load the following script:
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function() {
$( "#dialog" ).live('dialog',function() {
autoOpen: false,
show: "blind",
hide: "explode"
});
$( "#opener" ).live('click',function() {
...
I'm trying to change the ID of an element here:
http://moemonty.com/chirp/CHIRP-JSON-test.html
By using this line:
$('.databaseID').attr('id', 'test');
I would like to change the id of this line to test, so I can proceed to put in a pre-fix via a string and a variable from JSON data. But for now, I just wanted to see if I could repl...
Possible Duplicate:
jQuery custom validation method issue
I have a select list that is required. It is validating fine, but doesn't remove the error message when you change the select's value. I don't know why, I've used this same code before and not had this issue.
The HTML:
<table border="0" cellspacing="0" cellpadding="0" c...
So I'm trying to add a certain number of days to a date, and I'm getting a strange issue:
var date = new Date();
var newdate = date.getDate() + $('#ddlDays option:selected').val();
date.setDate(newdate);
So if today is 09/29/2010, the Date is 29. But if a user selects "5" from ddlDays, it will assume I am adding strings together, ad...
We were having a discussion internally here at work about jQuery having built-in support for $.get() and $.post(), but not for $.put() and $.delete().
Some think that its to keep the js library size smaller. Others think that its not a feature that is often asked for, so is left to plugin developers to make.
What are some thoughts fro...
I have a jquery dialog in which I display a form. The form has a "picture_fields" div in it that I append new fields to if the user clicks on "Add More Pictures", i.e. the form displays with one "Picture" file-field, but the users can add more be clicking the "Add More Pictures" link.
This all works great the first time the dialog with...
I have a anchor tag, with id="click_me". When i click on this i should enable input text (<input type="text" id="summary" class="summary">), which is disabled first.
even i can do it using javascript function, by calling these javascript function() using onclick in the tag; but in my application i shld not use these.
I am newbie to p...
I am using jquery datepicker widget all over my application always initializing it with the same method, the simplest one
$("[ID$=dueDate]").datepicker();
I have checked the documentation and there is nothing that seems to help on it. How can I have the datepicker to close when I click on a day?
...
I am using the Quicksand jquery scripts on an HTML page and using simple select controls:
<select name="sort" style="vertical-align:middle;" id="cboSort">
<option value="1" selected="selected">Low to High</option>
<option value="2">High to Low</option>
</select>
I want to be able to have the quicksand scripts run on page load ...
Hi all,
I have a strange problem with absolute positioning and sizing elements to fit around a div.
I have some div that's set in position and size on an existing page (it's given to me). I want to adorn it from the left and bottom with two divs, so that they'd "hug" it and create an "L" shape. I need to do this dynamically, as the div ...
For whatever reason the following request gets no response from google. However if I paste the URL into the address bar it works fine. I'm not sure why this would happen. Is google filtering out requests by referrer headers?
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=3122%2C%20Australia
$.ajax({
...
I have a problem with html().replace:
<script type="text/javascript">
jQuery(function() {
jQuery(".post_meta_front").html(jQuery(".post_meta_front").html().replace(/\<p>Beschreibung:</p> /g, '<span></span>'));
});
</script>
what is wrong in my script?
...