jquery

YUI Calendar, How can I implement it like the jQuery UI Calendar?

With jQuery UI I can simply use .datePicker() or similar and it will automatically attach it to the focus and blur events of a text field. How can I do this with YUI calendar, sample code would be great!! Thanks. ...

jquery's event.stopImmediatePropagation() doesn't seem to be working

I'm working with some existing javascript code which takes an LI and makes it droppable to an input field. I wanted to add an additional constraint to this, and enforce this by making my own event handler, and calling event.stopImmediatePropagation() if the constraint is not met. This existing javascript is look like this: $input.droppa...

problem with serialize

I dont think I could explain it in the title. Its very hard to explain it. There is an area where there are multiple forms and I use serialize there. When a user responds to one of the forms, an output comes and replaces the form. But I want it to replace the friendlist div. I needed to create a facebook like social network for a school...

Cookies and Jquery: Dialog Boxes

I am having difficulties creating a cookie (using the jquery cookie plugin) that will remember the position of all dialog boxes on the page (class .dialog). The dialog boxes are draggable. This is what I have tried: <script> jQuery(document).ready(function() { // cookie period var days = 1; // load positions form cookies ...

jquery.autocomplete.js - how does autocomplete work?

Hi, I call the autocomplete jquery with the result of a GET request. The autocomplete function call looks like this: $('#id_project_owner_externally').autocomplete('/pm/contact_autocomplete'); The url /pm/contact_autocomplete returns a list of tuples. The first part of the tuple is the name of the contact and the second part of the ...

Making a 'mobile/cell' version of a PHP/Javascript website?

I'm about to potentially start work on a website, but the client has a requirement that the website should also be accessible from mobiles/cell phones. He hasn't mentioned which mobiles he wants to support in particular but I assume it would be smart phones like iphone, blackberry, android, etc. My question is, how much work will this t...

jquery fancybox triggered click only working once

I am calling a jquery.fancybox link from the click event bound to a table row. The action works fine the first time, however, if I close the fancybox and click again on any row the anonymous function bound to the row still fires, but fancybox doesn't start up. Here's the javascript I'm using: $jq(document).ready(function() { $jq('a...

jquery get image size

I am creating a photo gallery using jquery. I am taking and resizing the images on load to create thumbnails. I want to get the original value of the image's size so that later on I can take it back to its original size. Anyone know how to do this? I have the following code: obj.find("img").each(function(){ }); This loops through...

Encapsulating UI components with jQuery

I'm building an app that involves creating several unique UI "widgets", and I'm having trouble figuring out a good practice for encapsulating the logic behind these UI components with jQuery. These are mostly one-off components that aren't reused several places in the app. I've been experimenting with the lowpro plugin, and while it doe...

jQuery UI Tabs adds classes to wrong div?

I'm trying to use jQuery UI 1.7.2 to add tabs on the fly. First, I create the div that holds the content that belongs in the tab, and then I call $('#tabs').tabs("add",...). jQuery UI correctly adds a new li in the tabs list. However, instead of creating a class attribute on my tab div, it creates a whole new tab div with some bogus id, ...

horizontally scrolling calendar

I've used the following script http://valums.com/scroll-menu-jquery/ to build a horizontally scrolling calender. Here is how I've implemented it. http://zifimusic.com/testing/horizontalCalendar.html 90% of the calendar activity I am expecting is within a month or two of the current date. However, I think I need to provide the ability...

jQuery MultiSelect , how to get information about selected options

I have a problem , i know only the basics of jQuery , and i need to get the information with JavaScript about selected options from the list , i wasted 2 days searching for a good method , but without success , please help ... script of MultiSelect is here link text , I need only to get the title of selected option and numbers of select...

prettyphoto not working

I can't get it working anyone out there can help I use this in the head <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen"/> <script src="js/jquery.prettyPhoto.js" type="text/javascript"></script> I use this for photos rel="prettyPhot...

On Document Ready, Trigger a function that is binded by a click

Hello, I have a function in a JavaScript like so: $("#table-filters li").click(function(){ *** Lots of stuff here... }); What I would like to happen is when the page loads, to one-time, run that function. Something contained in: $(document).ready(function() { }); Suggestions? Thanks! ...

Element targeting with jQuery

I am trying to use jQuery to show a div when the user clicks an "a" element. I´m struggling however because I´m not able to target the div precisely. Looking at the code below, you see that my program lists offers (Offer#1 & Offer#2). Right below the offer div, there is the comments div (where the comments for the offer is shown). The ...

typing date into jquery datepicker

Hi, besides being able to select a date from jQuery datepicker widget I also want to be able to type a date into the datepicker's textfield. But every time I type a date and hit enter, datepicker overrides my entry with today's date. I can't figure out how to have datepicker accept typed in entry. thanks, martin ...

Ajax entire page - display only one div and retain CSS and other header material?

A client wants a merch shop on their site, and has set one up. I could iFrame in the whole page to the merch page, but frankly the merch site is an eyesore, and their site has a very particular feel to it. So I'm considering using an AJAX GET to grab the whole page, then javascript to display only the div with the merchandise in it. H...

URI and jQuery help

Is it possible o get the URI with javascript or is possible to break apart the href of the link and if so how, I am trying to run some ajax that has hover and click events and the method call for each ajax is the same so I need to be able get the unique ID that is passed in the URI. ...

Same function for multiple jQuery objects

I want the same functions to run for 2 jQuery objects: ('input[type="text"]') and $('textarea[type=text]'). How can I combine those two in the code below? (currently, only input is included). $('input[type="text"]').focus(function() { if (this.value == this.defaultValue){ this.value = ''; } i...

SimpleModal confirm before closing dialog

I'm using SimpleModal (http://www.ericmmartin.com/projects/simplemodal/) and I have a form that displays in a dialog. What I want to do is be able to have a confirmation come up each time that the user tries to close the dialog (either by escape or clicking on the close icon) and asks them if they really want to close it without saving t...