I've the following code to fetch events:
$('#calendar').fullCalendar({
theme: true,
slotMinutes: 10,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay',
},
defaultView: 'agendaDay',
allDaySlot: false,
editable: false,
events: "/cgi-bin/shlk/getshlkruns.pl"
});
The output from getshlkruns.pl is fairl...
The intent is to use an html dialog box as a settings page for a program. In this settings page, the user can create a list of salespeople that can be selected later on from a drop-down box. My goal now, is to add a checkbox that indicates witch salesperson is the default selection in that drop-down list.
Here's what i have so far:
Thi...
Please, considere this CSS code:
a { color: #ffcc00; }
a:hover { color: #ccff00; }
This HTML code:
<a href="#" id="link">Link</a>
<button id="btn">Click here</button>
And, finally, this JS code:
$("#btn").click(function() {
$("#link").trigger("hover");
});
I would like to make my link uses its pseudo-class :hover when the but...
I want to pass the value of the file to catch php using jQuery.
Is there a way to pass the value of the file to catch.php, so that var_dump($_FILES) will output somthing?
------index.php------------
<p>Name: <input type="text" name="name" id="name" /></p>
<p>Picture: <input type="file" name="pic" id="pic" />)</p>
<p><a href="#" id="sub...
I have a list of links. When one of the links is clicked, I would like to change the visibility of the div associated with it. My html looks like the following:
<div id="tab">
<ul>
<li id="tab1" class="active"><a href="#">Link 1</a></li>
<li id="tab2"><a href="#">Link 2</a></li>
<li id="tab3"><a href="#">Link 3</a></li>
<li id="tab4"><...
flot has built-in support for multiple data series (sample code) and also dual-axis (sample code).
Assuming multiple data series (water, electricity, etc) that each have an amount (usage) and a dollar value (charge for that usage), what would the best way be to to use flot to display either the amount or dollar values for all the data ...
Is there any such function to get all form tags?
by form tags I mean all <input>, <select> etc?
Thanks
...
Another short Q, is there any short piece of code to get all DIVs on a page which have the visibility set to 'block' or 'inline'?
Thanks
...
I am using jquery ajax to delete a customer from a table. How would I show a confirmation box before submitting the form? I would preferably like to use jQuery's dialog.
I have seen questions like this before but none of them have helped.
This is my code:
$.ajax({
type: "POST",
url: "delete/process.php",
da...
If someone is using this jquery combobox http://jonathan.tang.name/code/jquery_combobox, I am trying to get a solution for
Make it's width set dynamically based on the longest element.
"lazy load" the values when the element is clicked or user tabs into it.
If this isn't possible, is there another solution i can use that has similar ...
I am using Access 2007 with a pass-through query. The data values that I am retrieving are from a bit column (0, 1) but when the pass-through query runs the data that is returned is either 0 or -1. I am calling a stored procedure on my SQL database for this pass-through query, this stored procedure works and returns the positive bit numb...
I've created an Object, and have a method setup() in the object.
this.debug = function (){...}
this.setup = function(){
var fieldsets = form.children("fieldset");
fieldsets.each(function(){
this.debug($(this).attr("class")));
});
}
I'm trying to call this.debug which is in the scope of the Object but not in...
I am learning how to write jQuery plugin. So why I am doing what I am doing does not matter.
I writing a plugin called live2 which does nothing else but internally calls live method.
(function($) {
$.fn.live2 = function() {
/* if there are no elements then just return */
if (!this.length) return this;
ret...
Say I have the following markup:
<div>
<h3><a href="">link I want to select</a></h3>
<div>
<h3><a href="">link</a></h3>
</div>
<h3><a href="">link I want to select</a></h3>
<h3><a href="">link I want to select</a></h3>
<a href="">link</a>
</div>
Assuming the following...
The elements I w...
Any ideas on how I would test if prepend() succeeds? Prepend() doesn't work on an image tag of course so I need to perform before().
I'm trying to prepend an image to all spans with a class of .query, but cannot get it to work on spans that contain self closing tags like images.
Tried this:
$('.query').each(function(i) {
var elm=...
I have a page that has an iFrame embedded inside a JQuery accordion.
JS:
$(function() {
$("#doc_accordion").accordion();
});
HTML:
<div id="doc_accordion">
<h3><a href="#">1</a></h3>
<div>
<iframe src="http://test.com/view.do?url=http://test2.com/...
I'm using JQuery to try to select the textboxs on a form that are not disabled. My efforts have been fruitless since I don't know how to select all the input[type="text"] but also are not set to disabled.
result so far:
$('#signature INPUT[type="text"]');
...
Hi everybody :)
There is a div:
<div id="question">ddddd</div>
I have written a code that hide the other div:
$(document).ready(function()
{
$('div#dialog').hide();
$('div#question').click(function()
{
$('div#dialog').show('slow');
return fals...
Is there a way to temporarily unbind event handlers that were bound via a 3rd party (ie, I didn't bind them myself) and then restore them?
For example, I'm using jQuery UI's tabs.
I'd like to disable all the tabs default bindings until a certain point that I'd then like to bind them back up.
So, for instance:
jquery UI creates the ...
Hi
I am looking for advice on how to create an autoscrolling effect using jQuery which would enable an entire div within a page to begin scrolling vertically upon loading at a constant slow speed. This would be a div with a large amount of content of which only a small amount was visible on the screen at any one time.
The scroll needs...