I use jQueryUI's tabs and when a user changes a form in the tab, it promprts the user that a change has been made.
My question is, how do I revert the values before being changed when the user presses 'OK' on my confirm() prompt?
...
I am trying to use jquery validation to validate some input values on the form.
On one of the form I have to make a remote call to the server to check if the required
entered value is valid or not.
So I have something like:
$("#myform").validate({
rules: {
zip: {
required: true,
zip: true,
remote: "check-zip.action"
}
}
});
N...
$(document).ready(function() {
$("#ddlprod").change(function() {
var pk= $("#ddlprod").val();
$.ajax({
url: "ajaxprintdropdown.php",
type: "POST",
data: 'pk='+pk,
timeout: 5000,
success: function(output) {
$('#divtesting').show...
I am using jquery's .post ajax call to pull an form input value and pass it to a php file that starts a session and stores the value in it. The session value is then called on a different page.
The problem is, this all takes place without a page refresh, so the session value is always one page refresh behind. I.E. the first time the ses...
I'm able to hide the 'tr' when 'Remove' is clicked. with the following code.
$("a#minus").bind("click", function(e){
$(this).closest('tr').hide();
});
But I also want to clear the content of the 2 text boxes (id of the textbox's are dynamic [frm_Expense_expensesVO_*__strAmount and frm_Expense_expensesVO_*__memo] here '*' goes from...
Hi,
I'm just wondering..is it possible to receive multiple responses from a single ajax call?
I'm thinking purely for aesthetic purposes to update the status on the client side.
I have a single ajax method that's called on form submit
$.ajax({
url: 'ajax-process.php',
data: data,
dataType: 'json',
type: 'post',
success: func...
I have the following two HTML which is generated by PHP.
I want to append the second one to the first table td. I want to add class="date_has_event" to td if there are events. Each event has number which is the date in div id.
I am using jquery, but I am not sure. Could anyone tell me how to approach this one please?
HTML
<tr>
<td>1...
Hi all, I'm trying to create a small form that submits a form and passes a value from a text link.. Here's what I've got so far..
<form id="calendar" name="calendar" action="" method="post">
<a href="<?php echo $next_month; ?>" class="submitCal">»</a>
</form>
<script type="text/javascript">
jQuery.noConflict();
jQuery('.submitCal...
jQuery's AJAX error function has the following parameters:
error(XMLHttpRequest, textStatus, errorThrown)
What's the best cross-browser way to get the response body?
Does this work (reliably in all browsers)?
$.ajax({
error: function(http) {
alert(http.responseText);
}
});
...
I have a php calendar script that moves through the months using get vatiables e.g.
if(isset($_GET['chm'])) :
$m = ($_GET['prm'])+($_GET['chm']);
else:
$m = date("m");
$y = date("Y"); // Find today's year
endif;
$d= date("d"); // Find today's date
$y= date("Y"); // Find today's year
$no_of_days = date('t',mktime(0,0,0,$m,1,$y)); //...
I have Page A which calls Page B using AJAX. Page B will be put in a div container in Page A. Within the result (which is Page B), there's a code that will initiate a jQuery UI Dialog. The div for the dialog is also in Page B. However, it doesn't work. I'd have to put the initiation code in Page A. So, if I want to put the initiation cod...
hey guys,
i've been trying to sort a table using ajax for sometime now but the table doesn't sort at all. what could be the problem?
im using sorttable.js (http://www.kryogenix.org/code/browser/sorttable/)
this is the code im using
any help offered will be appreciated
<script src="resources/sorttable.js" type="text/javascript"></scr...
I'm looking for a JQuery plugin that will assist in an incremental search e.g. - the user starts typing into a textbox and an AJAX call is made to dynamically get results as the user types.
...
Hi, I have a JSon array as below which I need to filter to get the correct child values from the test data below.
var arrChildOptions2 = [{Parent:'opt1',Value:'opt1',Text:'Parent1 - Child 1'},{Parent:'opt2',Value:'opt1',Text:'Parent 2 - Child 1'},{Parent:'opt2',Value:'opt2',Text:'Parent 2 - Child 2'}];
The values are used to populate...
I have one content page where there are links to different documents like .doc, .docx, .ppt .pptx, .txt.
I want to apply/add class dynamically not manual. like as per the link content.
<h3><a href="document.pdf" class="pdf-file">Document.pdf</a></h3>
.pdf-file {
background:url(../images/pdf-file.png) right center no-repeat; padding-rig...
I have the following html in page:
<head>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script>
function hideIt() {
$(this).hide("slow");
return true;
}
</script>
</head>
<body>
<div onclick="hideIt();">
hello world
</div>
</body>
When I click ...
Hello,
I'm trying to replicate a Facebook wall-like effect where hovering over a feed item displays a "Delete" button. The button is invisible on page load, but hovering over the item displays that particular item's delete button. This is achieved with jQuery and the CSS display property.
This works all well and good in browsers such a...
I'm pretty new to jQuery (and javascript for that matter), so this is probably just something stupid I'm doing, but it's really annoying me!
All I'm trying to do is add a speed to jQuery's hide and show functions. The code I'm using is:
for (var i in clouds) {
$(clouds[i]).click(function() {
$(this).hide();
});
}
to hid...
Hi,
I am loading a set of checkboxes into a div using Jquery and the load function. My code is
$("#cb-list").load('www.someurl.com');
where www.someurl.com returns html for a bunch of checkboxes e.g.
<input type="checkbox" value="sddfdsf" name="cb[]" id="a1" />
<input type="checkbox" value="sddfdsf" name="cb[]" id="b2" />
I want t...
Hi!
I have a .NET application that access methods located on handlers through AJAX calls. This AJAX calls are fired, generally, when the user clicks on certain buttons. My problem happens when the user clicks the buttons more than once. It messes up with all my object´s state.
How do u take care of it? I know I can block the user click...