Hi all, I'm writing my first real bit of jQuery, so bear with me here...
What I'm doing is this:
Creating 12 instances of the Cycle plugin (the feature is a grid of product images)
Within a repeating interval: pausing all instances of cycle, choosing 2 at random, and resuming those. So at any one time, there's only 2 active instances...
hi,all
I have an html table with a few rows, I have included a jquery function as
$('tr').mouseover(function() {
$(this).addClass('row_over');
});
so that on mouse over the css class of that particular row changes. then I have added one more row using jquery, but the mouse over function doesn't work on the dynamically added row, mo...
Hi,
is it possible to move from asp.net validations to j Query validations without much effort .I also need a validation summary like control.
...
I have basic form site with swfupload.swf upload component. In this form I only use swfupload single file html basic upload feature - meaning that only one file uploaded at time - this was done in order to make sure it works on all browsers - i had lots of problems with multiple file flash upload.
I would like to view the uploaded ima...
Hey there,
So I've got this .load setup for an image with a .fadeIn() callback, that works just fine. The problem is if I fire the .load twice in a row on the same image, it doesn't get to the callback!
Here's a snippet of the code:
$('#thumbs a').click( function() {
imageSrc = $(this).attr('href').substring(1)+'.jpg'; // grab src...
I'm looping through cells in a table row. each cell has a text box in it, and I want to take the value of the text box and push it onto an array.
function dothing() {
var tds = $('#'+selected+' td');
var submitvals = new Array();
tds.each(function(i) {
var val = $(this).children('input')[0].val();
...
.load() will delete all script tags from the load html content(Both in Chrome and Firefox). But I have to use .load() to refresh part of the web pages and the loaded contents always contain <script src="xxxxxx"></script> and <script> , which cannot be put to external files. Can anyone give some advice?
...
Why am I getting an error in my json use in ie6 and ie7, but no other browser?
I'm parsing with:
$.getJSON('http://www.brettbarros.com/wordpress/?post_type=projects&json=get_post&include=title,content,attachments&post_id=8', function(data) {
alert(data);
});
I'm parsing a json feed from the wordpress plugin JSON API:
...
I want a calendar that shows the whole year starting from Jan-Dec regardless of what month today is.
At the moment, this will show the date from July 2010 to June 2011.
jQuery('.calendar').datepicker({
numberOfMonths: [3, 4],
stepMonths: 12
});
When I added showCurrentAtPos: <? echo date('n')-1 ?>, it seems to place the curren...
I'm using TCP keepalive on the server side to keep the connection alive, and notify the server if the client dies. How can I configure jQuery.get() to disconnect the connection after a certain period of idle time?
Edit - I would like to consider "idle time" as time where no TCP packets are exchanged. Since the Server has TCP keepalive, ...
Hi,
Firstly - thanks a lot. I have used your suggestions from
#703783: Hide jQuery Accordion while loading
for keeping the accordion menu closed while loading and it has solved the problem, but not fully. The accordion menu used to load as a gray box over the other contents. After implementing your solution the box is gone, but the men...
I just stumbled over a small problem when extending javascript objects using jQuery. When executing
var item = $.extend(options.itemDefaults, item);
options.itemDefaults is extended with the properties that are already in item and the result is passed to item. So far, so good.
But the next time this line is executed, options.itemDefa...
I've got an HTML page with a few divs hidden withdisplay:none;that I'd like to be able to.fadeIn()and.fadeOut()replacing one with the other.
I've currently got a link setup that should do just that, here is the Javascript I'm trying:
$('#footer a').click(function() {
$('#content > *').fadeOut('fast', function(){
...
I have the following PHP script:
$OperMode = $_POST['oper'];
switch($OperMode) {
/* [...] */
case 'ManAdd':
// get data
$Firma = $_POST['Name'];
$Adresse = $_POST['Address'];
$PLZ = $_POST['PLZ'];
$Ort = $_POST['Ort'];
$TelNr = $_POST['TelNr'];
/* [...]...
I have the following code:
$("li.item").live('click',function() {
$('#menu').animate({
}, 500);
});
Now, I would like to move the character to the li.item you clicked on, but I cannot use $(this) as that would get the #menu item.
I also cannot use li.item as there are 60 of them on the page. Is it possible to pull the speci...
Hi folks,
I'm trying to build a simple heatmap for one of my sites, but it seems a lot trickier that I thought!
1) There are different themes for the site, 1 is aligned to the left, another one is aligned to the centre.
2) Screen sizes change throughout the users.
I need to track clicks on the site, but unfortunately event.PageX and ...
i have a variable $visitRecord->getReferallist() which get the list of doctors in an array . i need to send the array to a php file and do foreach action in php file.. how do i send this array variable in the jquery . This code did not work.
function seekOpinion()
{
var queryUrl = "<?php echo $this->url(array('controller' => ...
Hi!
I've created a custom Action Result in my MVC application, where I generate a CSV file according to the configuration that the user provides.
However. The problem I have now is that if I create a download link like this:
<a ID="lnkDownload" href="<%= Url.Action("DownloadFile", "Download", new { id = Model.Id, userId = Model.userI...
public string DefString { set; private get; }
private string path = "http://someuri.org/search?Par1=15&Par2=55";
public string GetAnswer()
{
WebRequest myRequest = WebRequest.Create(path);
WebResponse myResponse = myRequest.GetResponse();
StreamReader sr = new StreamReader(myResponse.GetResponse...
I have a room div with some toy divs arranged on it, see
Toys are absolutly positioned and are drag-able with in the walls of the room . The room container div has a fixed height and height, so the room has horizontal as well as vertical scrolls. I use jquery event drag plug-in for setting up DnD. I managed to set up the toys drag only...