I'm trying to fire an event on spacebar press if an url is found in the last word typed and kill that event if there is a result so if the user keeps typing... the function doesn't keep on sending requests to the server. I'm tired and hope this makes sense... Basically I'm trying to accomplish what facebook has when you submit a post a...
I would like to send data using jQuery ajax API
var myData = {"param1" : $('#txtParam1').val(), "param2" : $('#txtParam2').val()};
$.ajax({
url: 'DataService.php?action=SomeAction',
type: 'POST',
data: myData,
dataType: 'json',
contentType: "application/json; charset=utf-8",
success: ...
This code doesn't work
jQuery.each(["Alloggio","Macchina","Aereo","Treno"], function(){
t = this;
$("#ChkPrenotazione" + t + "Default").change(function(){
$(".Chk" + t).val($(this).val());
});
});
I want that t inner on change event is equal to "Alloggio" or "Macchin...
I tend to use jQuery because of jQuery UI, which is pretty nice. But unfortunately a lot of things are missing, like beautiful form components (i.e. autocompleting select-fields with search-string-input in the root, or multiselect fields with search, password fields with security strength checker, etc.)
I'd like to collect all framework...
I'm using a JScrollPane on a login page, basically after successfull login, it'll go to the second page where I should see the ScrollBar but the scrollbar dosn't show on first load, I have to refresh the page one more time, does anyone know why this happens?
Has anyone used JScrollPane before?
Thanks for your help.
$(function()
{
...
I just found a JQuery plugin for DropDown, but I am not following how to use it. It's documentation is also not available.
http://code.google.com/p/jqueryselectcombo/
Is there any other similar free plugin?
...
I am using following code to populate DropDown:
$(document).ready(function(){
$('#inDistrict').sSelect();
$("#inDistrict").change(function(){
$.getJSON("filldistricts.php",{id: $(this).val(), ajax: 'true'}, function(j){
var options = '';
for (var i = 0; i < j.length; i++) {
options += '<option value="' + j[...
I have problem hiding certain popup wich are based on divs. when i click out side those divs they dont hid. Here is the sample code what i m doing..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title...
Hello,
I would like to set a value to input tag on which I create a datepicker. When datepicker is initialized I want to set it. Here is an some pseudo example what I want:
HTML:
<input id="test" value=""></input>
Javascript:
$('#text').datepicker({ dateFormat: 'dd.mm.yy'});
var currentDate = $('#text').datepicker('getDate');
$('#te...
hey folks,
i'm working on a site at the moment: companhiadopijama.com.br/new and i'm having the weirdest issues with IE (7 & 8).. 6 i don't care so much about atm.
my PNG's are displaying with a partial black background on hover (in my menu) & my JPG's in the jquery roundabout are first showing up, then changing to white to black gradi...
Hi i am using :
$(window).resize(foo())
to detect when the window is resizeing...
the foo() works fine but it only fires foo() after the resize has finished so it's not while resizeing.
is there a way to make the resize smoothly. maybe a cancelBubble could be something to do with it but im not familiar with it.
any help is appricii...
i have this script below that will resize the ".content" on window resize it works fine but the only problem is that it jerks it waits until the resize has finished and then resizes the ".content" is there a wait to smooth the resizing that it resizes while the window resizes?
javascript
function foo(){
//e.cancelBubble = true;
...
I have a requirement to put together an application which will generate a web slide show.
It needs to be able to do fancy transitions between multiple images (in a browser) and also provide audio while those images are being displayed. The transitions between images must be delayed until the audio is finished (each image will have its o...
I have a Border Layout. When i click any link i am trying to open a Div popup.
Problem is the div popup is not appearing in the screen.
Below is the style of div popup.
.divclose {
color:#993300;
text-decoration:none;
float:right;
}
.divbody {
width:70%;
padding:5px;
border:2px solid #EFEFEF;
background-co...
I want to know what are the necessary files are required to attach as a Script while writing JQuery or parsing JSON. In some examples I see developers referencing to: jquery-1.3.2.min.js and some use jquery.min.js. For JSON, some use json2.js.
...
I'm attempting to make a table that has header rows that can be collapsed and expanded by using jQuery. Here is the entirety of my code thus far:
<html>
<head>
<script type="text/javascript" src="jquery.js...
Hello
I have two divs. One is position:absolute (.buttonEffectWrapper), over the top of the other div (called .rightColumnButtonHighlighted).
I also have the following JS code:
$(function(){
$('.buttonEffectWrapper')
.mouseover(function(){
$('.rightColumnButtonHighlighted').stop().animate({opacity: 1}, {duration:300})
})
.mo...
Hi all,
I'm currently generating and returning a fairly large file from a controller on a button click from a view.
What i'd like to be able to do is display an overlay stating "Generating File" while the file is being generated and once it's done have the overlay disappear.
How would i go about doing something like this?
Here's a samp...
For example, I have the following string:
var string = 'watch this video http://vimeo.com/8122132 and then see this picture http://www.flickr.com/photos/pmorgan/32606683/';
I wish to find all the valid URLs and place them in an array, done in JavaScript (and jQuery), so in this case:
url[0] = http://vimeo.com/8122132
url[1] = http://...
I am trying to add !important in the css attribute in jQuery like
$("tabs").css('height','650px;!important');
but There is no effect of !important. How to include !important in jquery?
...