I need to programmatically trigger a click event that's being handled by jQuery. Here's the current code:
var $thumbs = $('#PhotoGalleryThumbs .tile');
var $zoom = $('#PhotoGallery #PhotoGalleryZoom img');
var $description = $('#PhotoGallery #PhotoGalleryDescription');
$thumbs.click(function(event) {
event.preventDefault();
va...
I've looked at a lot of various jQuery plugins that I thought I could tweak to get working the way I want but so far have been unsuccessful. I'm not sure if there is a plugin out there that meets these requirements or if I should just write my own (although I'm a bit of a novice!).
The requirements:
Scroll HTML containers left/right ...
I'd looking to emulate the standard google visualization table header row behavior, but have it apply to the first column. This doesn't seem to be a built-in feature, but I'm wondering if it can be accomplished with some custom CSS?
...
Here's the problem:
The ecommerce system we uses generates a line item for each product purchased. It gives line item's quantity input the name attribute "qty0", "qty1", "qty2", and so on as the line items go down the page.
I need to check these qtyX inputs for validity, but I don't know how to pass either the name attribute as a rela...
Hey all
Basically I want to replicate the page changing effect found here, at http://timvandamme.com/
But instead of using #values I want to use PHP includes, mainly because I want the site to be as uber-seo-friendly as possible... but still have this nice effect.
So is there a way of doing this? I have a main index file which include...
Hi all,
I was wondering if i could get some help with filtering a select list using an input box via jquery.
Here's what my js looks like, but it doesnt seem to work.
I'm guessing this is because options within a select list are not hide-able.
<script type="text/javascript">
$(document).ready(function() {
$("#inputFilt...
Hi,
I can't figure out why function() does not execute after .animate. Example jQuery code is below:
$('#spotlight_img_' + thisSpotId).css('z-index', zIndex).animate({ bottom: 0 }, { duration: 500, queue: true }, function() { alert('animation complete'); });
$('#spotlight_img_' + lastSpotId).animate({ bottom: "-400px" }, { duration: 0,...
I need a way to create an object from a location value. For example if I have the value:
'http://www.legis.state.pa.us/cfdocs/billinfo/bill_history.cfm?syear=2007&sind=0&body=*S*&type=B&bn=1'
which I get from doc.location.href();
I would like to make the following object:
myObject = {
syear : '2007',
snid : '0'...
i have one text field and setting its name & values from php, like:
<input type="text" id="qtyProductID_' . $productID . '"
size="3" value="' . $totalItems . '" >
i also have image button for click event
<a href=fun.php?action=update&productID=' . $productID . '
onClick="return false;"><img
src="images/update.jpg" id="update...
I am trying to get a simple effect working in jQuery, and only have a few hours of experience with it, so have a lot to learn.
I managed to get this code working:
<script type="text/javascript" >
$(document).ready(function() {
lastBlock = $("#a1");
maxWidth = 415;
minWidth = 75;
$("ul li a").hov...
I have the following code:
$('a.btn-slide').toggle(function() {
$("#SliderDIV").slideDown("fast");
$(this).text('Hide/Show');
});
Only in Firefox, when I click the a href link to hide/show the DIV, Firefox display a dotted border around the href link (which I don't understand why and it shouldn't be).
However, in IE and Chrom...
Using jquery I have a clicking tab mechanism that are nothing but anchor tags that return false but call javascript functions to run some events on the page. The problem is I am using jquery to apply an opacity style to the active anchor. and the other sibling anchor get a lesser opacity view. My code looks like this
$("#menutab li a")....
My goal here is to cut down the number of cookies I'm using to store things like persistent states into a single cookie by setting and retrieving multiple key/value pairs within a single cookie using an array.
I'm mostly interested in knowing if someone else has already done this and has written a plugin for it, as I would think this ha...
So, I'm looking to implement the ability for a plugin I wrote to read a touch "swipe" from a touch-capable internet device, like an iPhone, iPad or android.
Is there anything out there? I'm not looking for something as full as jQtouch, though was considering reverse engineering the code I would need out of it.
Any suggestions on the be...
hi,
what's the best way to customize html-css tooltips ? (I mean an easy cross-browser solution).
I need to reduce the fade-in delay and change the style. (also, could you suggest a good jQuery plug-in for it ?
thanks
...
Why would POST work but not GET? I'm not using [AcceptVerbs(HttpVerbs.Post)]. I'm calling this:
public ActionResult GetTest(string key)
{
var test = new { HelpTest = key };
return Json(test);
}
And it works when I do this:
$.post("/Home/GetTest", { key: options.key },
...
Start date: user can select start date as back as 6 months. example: if today is 04/23/2010 then i can go back up to 11/23/2009 but not more than 6 months.
<script type="text/javascript">
$(document).ready(function () {
$('#endDate').datepicker({ showOn: 'button',
buttonImage: '../images/Calendar.png',
buttonImageOnly...
I'm having a really irritating problem doing something that I'm sure I've done before. The setup is this:
There's a form which is submitted via a "click" handler on a button, though the submit is ultimately a simple call to the form's native submit() function.
The form's target is an iframe, which is initially filled with an empty page...
I have the following fields:
<label>Company Type:</label>
<label for="primary"><input onclick="javascript: $('#sec').hide('slow');$('#primary_company').find('option:first').attr('selected','selected');" type="radio" runat="server" name="companyType" id="primary" />Primary</label>
<label for="secondary...
Hi there, I have this:
function validateEmail(){
// ###############################
$("#contato_form").validate({
errorContainer: "#wrapperError",
errorLabelContainer: "#wrapperError span.error",
debug:true,
rules: {
nome: { required:true },
email: { required:true },
mensagem: { required:true }
},
...