I have a website which is loading thumbnails and then using the jQuery pluggin Masonry to shuffle them into a grid. See http://www.kalpaitch.com for an example of what is happening at the moment.
My concern is the delay between loading all the content and the masonry call which is triggered on page .load(). What would be the best approa...
I have a table layout with the following code
<table cellspacing="0" class="photogalleryTable">
<tbody>
<tr>
<td class="photogalleryItem"><a title="" href="/images/varsity_basketball/alexdefending.jpg" rel="lightbox[12828]" onclick="myLightbox.start(this);return false;"><img border="0" alt="" src="/Utilities/ShowThumbnail.aspx?W=100&...
I found this code but its not working... any suggestions the parsexml is never being called
$(document).ready(function(){
$.ajax({
type: "GET",
url: "menuitems.xml",
dataType: "xml",
success: parseXml
});
// fourth example
$("#black").treeview({
persist: "location",
collapsed: true
});
})...
Hello
I am using jquery validation plugin for form validation. I have added a custom method to validate a date in the custom format. But somehow if users don't type anything in that date textbox, it doesn't give any error. Does anybody know how to check for blank or empty value?
EDIT : May be I didn't frame my question correctly. I want...
hi
i'm building something like a posts gallery and i want to do the following:
1. have thumbnail for each post
2. when a thumbnail is clicked, i want the new post to be loaded at a div at the top of the page w/o the posts gallery changing. to do that i want to pass the id of the clicked-on post to that div and then run the query_string t...
Ok I give up and would really appreciate it if you guys could cast their eye over this for me? I'll try not to ramble.
Goal is to have a 'rendered-view' showing 'rendered' HTML (clickable links) and 'source-view' showing the actual HTML of whatever is in the rendered view. When a link is clicked it is made not a link any more and simply...
I'm having trouble referring to the event object in a jQuery function:
// Execute a function when an image with the arrow class is clicked
$('.arrow').bind('click',update_support);
// Function tries to refer to the calling image using $(this)
function update_support() {
alert( $(this).src );
}
// Result: an alert of 'undefined'
Th...
I have multiple forms on a page, for each of them I want the user to confirm before form submission. but when the user confirms to submit, how do I let this dialog know which form the user is sumbitting? Does it take custom parameters? Thanks.
$("#dialog-confirm").dialog({
resizable: false,
height:140,
modal: tru...
Is there a way using jquery ui theme roller or otherwise to create more than one style for buttons (specifically jquery ui buttons)? If you look at the generated themes - it only seems to allow one button style.
Keywords being "jquery ui"; I understand how to do this in css, but using jquery ui helps keep widgets / css playing nicely.
...
I've completed writing a purpose-specific plugin and there are a few spots where I have duplicate code and due to the structure of the function, I'm not quite sure how to cleanly get rid of repetitious code.
You can see the code here:
http://jsbin.com/aboca3/8/edit
I am specifically referring to the 4 switch statements and wondering h...
Hi!
$("*").click(function(){
$(this); // how can i get selector from $(this) ?
});
Is there easy way to get selector from $(this) or something like that? There is a way, how to select element by selector, but how about getting selector from element?
Thanx for any help =)
...
Hello,
I have a result page loaded with jquery/ajax in a div, when i clicked the details of one of the results it load the details in the div. But now when you hit the back button it doesn't go to the previous results?? Or a simple go back with javascript:history(-1); doesn't work
How can i fix this??
...
In ASP.NET CheckBoxList is there any way to determine of a particular checkbox is checked using jquery? I need to know if "All" is checked for example, either by value or label text.
<asp:CheckBoxList ID ="ToyotaModels" runat="server">
<asp:ListItem Value = "0">Corolla<asp:ListItem>
<asp:ListItem ...
I have a drop down list, if someone selects an option I want to redirect to another page based on the selection.
How can I do this via jquery?
...
What wrong with the my code. When I click on the checkbox, nothing happen
$(document).ready(function(){
$('input:checkbox[name=drawingNo]').click(function(){alert('I am here');});
});
...
<body>
<form>
<input type="checkbox" name="drawingNo" value="1"> 1 <br>
<input type="checkbox" name="drawingNo"...
Hi,
I'm trying to achieve an effect similar to 37signals' ta-da list - I want my users to be able to check off items from a list just by checking a "done" box - in other words a form gets submitted to the server on checking the box. Does anyone know of a tutorial which covers something like this, or could point me in the right direction...
When I use JQuery's autocomplete and hardcode the array values in the page it works wonderful; but what I need to do is obtain the array values from either a web service or from a public function inside a controller. I have tried various way and can't seem to make it work. The farthest I got is pulling the data in to a long string and wh...
I am having trouble accessing a div element within a table.
// All within document ready ...
$('.ChangeStatus').click(function()
{
$('#status_display:100').html('Updated');
});
Here is the HTML
<td>
<div class="status_display" id="status_display:100">
open<br/>
<a href="#" class="ChangeStatus" id="...
is there a way to make the curvycorner effect but have no padding inside the div? when i apply the corners it makes the div its applied to bigger vertically and horizontally to implement the corners.
this is the plugin for jquery im talking about:
http://code.google.com/p/jquerycurvycorners/
...
I have some html extracted to a string var, and want to then use jQuery element selection just on that string. Is this possible?
For example:
HTML:
<div class=message>
This is a message. Click <a class=link id=link1 href=example.com>here</a>
</div>
jQuery:
$('div.message').each(function(i, item) {
myHtml = $(this).html();
//s...