I have the following in my code, but I'm not getting an alert message, even though I can see the $.ajax call is working correctly.
(function($) {
$('.debug').ajaxStart(function() {
alert('ajaxStart');
});
})(jQuery);
And of course, in the html, I have:
<div class="debug">
<h3>debug info:</h3>
</div>
Maybe it's because I use:
goog...
Say I have the following code:
<div onclick='location.href="http://www.example.com/"'>
<a href='#' onclick='alert("blah")'>click</a>
</div>
Is there a way to only have the anchor evaluated when I click the 'click' text and not have the div's onclick evaluated?
...
Hello, I have an Ul of item. I want to alternate there background color
here is the html
<html>
<head>
<title>JQuery Problem 1</title>
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="problem1.js"></script>
</head>
<body>
<ol>
<li>Comp 250
<u...
I work on Asp.Net VS08 C#. Clicking on Button want to show popup. popup contain a button ,Clicking on button perform serverside event but popup not close,popup close only click on cancel button .My problem is .i can call a popup but clicking on button not Perform server side event.
Aspx Code
<%@ Page Language="C#" AutoEventWireup="true...
I have textbox and checkbox in asp.net page.
if the check box checked should have an input mask and if its uncheck should have another input mask. my code is always picking up second condition and I've been advised that I should add click event to run the code whenever the checkbox is clicked and because I'm new with jquery i need help t...
I have an ASP.NET 3.5 page which has multiple span elements with ID containing lblError. How can I get all the span elements whose IDs contain lblError?
...
I have been using Jquery alot lately an was wondering if I should use listeners or functions for my clicks.
Normally I do the following:
<head>
<script type="text/javascipt">
function buttonclicked() {
alert("You Clicked it");
}
</script>
</head>
<button onclick="buttonclicked()">Click Me</button>
...
Hi.
I am trying to do the next thing in Jquery.
I have 2 comboboxes and i want to make sure that their selected values is identical. If user chooses a value in one of the combo like the other one, i want to alert "invalid op" and set the combo selected value to its previous value.
so i wrote:
$("#SelectGroupMargin").live("onchange", fu...
Hi,
I have the following code and its working (as usual) in everything but IE. Its giving me a unexpected call to method or property access in Jquery and I have no idea how to debug it. Ive been using the IE developer toolbar, which is useless for this error and just gives me a line no 12 (inside the jquery script).
Any help is v much ...
I do not understand this error, do not generate error in "JsonResult Test ()", I am doing other projects as ASP.NET MVC
Thanks
Error:
System.InvalidOperationException: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set J...
Ive noticed that if i mouse-down on a button, move my pointer from the button area, then return to it without releasing the button it still remembers that i have 'mouse-downed' on the button.
Im trying to set button styles appropriatly, could anyone enlighten me as the correct javascript/jquery event to use for this?
I would really hat...
I have a jquery autocomplete field working fine followed by a date input field. Whenever a user selects an item from autocomplete list it correctly selects the item and fires result() but it also creates "collateral damage" in my date field, inserting ID of the selected autocomplete item into it. This is one case of it but I also noticed...
i have the following javascript to post a form through ajax without refreshing the screen. Since the post take a little while, i wanted to add a loading image during processing.
I see this article but it seems to only list .load() or .get() but not $.post.
<script type="text/javascript">
$(document).ready(function() {
...
Hi Guys,
I am using an iframe in my project and it seems that whenever it loads content on a opacity background - it flashes "white" for around 1 second before correctly appearing.
It seems that it fires loaded event before the jQuery script is ready. I have tried
style="visibility:hidden;" onload="this.style.visibility = 'visible';"...
Suppose I have the following HTML:
<div id="test">
<span style="display:inline;">foo</span>
<span style="display:none;">bar</span>
<span style="display:inline;">baz</span>
</div>
.. is there some way in JavaScript for me to get the output "foo baz" (not "foo bar baz")?
$('test').textContent returns the latter, and innerHTML doe...
hey
i have problem with jQuery-ui Dialog when using ajax
$.ajax({
url: "folders.php",
cache: false,
data: {
'do' : 'Ajax'
,'_a' : 'ChangeMoviesFolder'
,'MovieIDS' : Mov...
Hi,
I have created a horizontal menu with 5 tab options using a ul and 5 li tags that is held inside a div
Below this area, I have also create a separate div (id="content1") that will be used to display the content html files based on the tab options selected.
What I am unsure how to accomplish using both JavaScript and jQuery, how ca...
Hello everybody!
I have a very weird problem. I am using jQuery and i am using the $(function () to load functions when the dom is loaded. But with a unknown reason the code in the $(function () will run a second time. A preview is at: http://development.devhouse.nl/news/3/het-nieuwste-nieuwsbericht you will get 2 alert prompts, but the...
to gather the value from the check boxes:
var filtersArray = $("input[@name='filters']:checked").map(function(i,n){
return $(n).val();
}).get();
Posting to php file
$.post("php/performSearch.php", {
keywords: $('#keywords').val(),
'filters[]': filtersArray},
function(data){...
Why this javascript working fine in Firefox but not in IE 6 and 7 ( haven't checked on IE8)?
giving inner.html error. Can any jquery expert convert this whole code into jquery? as i'm already using jquery on same site for other things.
function twoDecPlaces(theValue) {
var nm = new Number( Math.round( theValue * 100 ) ) /100 ;
var par...