TGIF,
I have a website I'm developing which is using ASP.NET masterpage/sitemap/content pages setup. I hate the "blinking" the site does when navigating between content pages using the asp:menu control. Any suggestions on how to use jQuery ajax instead of AJAX.NET updatepanels? I've used updatepanels in the past and I hate it; clunky an...
Is there a way I can use a jQuery pseudo selector like :empty or :not(:checked) on an input/textarea/select element, or any other way I can return an object that is empty?
...
This code validates a set of form elements,
var objects = $(".validated").filter(function (){
return $(this).val() == '';
});
Is there i could also filter for a length of >10, for example?
Thanks!
...
I'm trying to make a div fadeIn when another div is clicked and fadeOut again when another div is clicked (which would be the close button) but my code doesn't work, did I forget something?
Here's the CSS:
body{
margin: 0;
padding: 0;
text-align: center;
background-color:#f0f2df;
}
#container{
border: solid 1px #f0...
What is wrong with this code...
var objects = $(".validated").filter(function(){
return $(this).attr("name") == 'name';
}).filter(function (){
return $(this).val() == '';
});
Its really bugging me :(
...
Is this the right way to make 2 divs fadeIn together? (contact_close should be infront of contact_box to serve as a close button for contact_box.
EDIT: fixed some divnames.
Javascript
$(document).ready(function(){
$(".button_contact").click(function() {
$("#contact_box").fadeIn("slow");
$(".contact_close").fadeIn("slow");
});...
I'm using jQuery.getJSON(...) to make a call/process response for a slightly large data set. The response time being a couple of seconds is expected(there's an animated loading graphic to placate the user).
All being said, the loading graphic, response, process, etc are working fine in all browsers. In Internet Explorer(6/7/8), however,...
When I call in a page via ajax that has a ready funtion on it, I can only get it to work using this method:
$('div#tab1').empty().html('<img src="Loading.gif">');
$.ajax({
url: "external.html",
cache: false,
success: function(html){
setTimeout(function(){$('div#tab1').load('external.html')}, 2000);
}
});
The problem is that ...
I'm using the following script to toggle between divs. Functionally it works but I'm getting the following error when I check it: 'Unknown pseudo-class or pseudo-element 'eq'. Dangling combinator.'
$(document).ready(function() {
$('#slide2, #slide3').hide();
$('#navCol a').each(function(index) {
$(this).click(function() ...
Can someone help me understand this commit
What is \u00A0 ?
...
Background: I am creating a table reminiscent of whenisgood.net, in that it has click-n-drag toggling for table elements. I want to call different types of toggling code when the left, middle, and right mouse buttons activate a mousedown event.
By using JQuery, I'm off to a good start.
$(".togglable").bind("contextmenu", function() {re...
<script type="text/javascript">
$(document).ready(function() {
$("#paradigm_all").click(function() {
var checked_status = this.checked;
$("input[@name=paradigm]").each(function() {
this.checked = checked_status;
});
});
});
</script>
<table class="data-table">
<tr>
<th>
...
With a div on an HTML page, I used jQuery to add a click event handler:
$(document).ready(function(){
$("div").click(function() { alert("clicked!"); });
});
Then I used the Visual Studio 2008 (or IE8) debugger to step through the javascript/jquery. I expected to see a value in the debugger for:
$(“div”)[0].onclick
(...
I am learning, please be kind if it is an obvious mistake.
/*set cookie*/
function setCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+v...
Let's say you have two images that use the same image map.
<img src="/test/image1.jpg" id="image1" useMap="map-name">
<img src="/test/image2.jpg" id="image2" useMap="map-name">
<map name="map-name">
<area shape="rect" coords="0,0,82,126" alt="Sun" onmouseover="testFunction();"/>
<area shape="circle" coords="90,58,3" alt="Mercury" ...
Thanks in advance for helping me out (for those who have time and are willing).
I've written this script:
$(document).ready(function() {
// hides the slickbox as soon as the DOM is ready
// (a little sooner than page load)
$('.foliobtn').hide();
$('.folionamedate').show();
// shows the slickbox on clicking the noted link
...
I have three rotators on the front page and I'd like them to start 1 second after each other.
$(document).ready(function(){
$('#rot_top').cycle({
speed: 500,
timeout: 2000
});
$('#rot_mid').cycle({
speed: 500,
timeout: 2000
});
$('#rot_btm').cycle({
speed: 500,
timeout: 2000
});
});
after the initial start - th...
I am using JQuery to toggle the visibility of a in a webforms application. I am using an update panel to suppress the postback when my is clicked. What I would like to do when this is clicked is call the JQuery code that I use to toggle the once the postback has completed. What code(client-side or server-side) do I need to impleme...
I have a url that looks like this : http://mysite.com/1/2/Simpson and I want to create a variable that contains just Simpson...
Not sure how to do it here...
I have:
var myvar = window.location.pathname
and have tried something using substring, but can't seem to get it to work?
...
I am building out an ajax enabled UI using webforms in asp.net. I really want this interaction to be extremely light. What I would like to do is make a call to get the data and then bind it to my form client side.
Here is my working example.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD...