jquery

kelvinluck jQuery datePicker: 2 inline calendars - i need to set EndDate of 2nd on selecting 1st calendar

Hi all I'm stuck. Tried all the angles but i cant seem to get it working. I have 2 inline calendars. When i select a date from the dtFrm calendar it sets the date on the dtTo calendar as expected. I just cant seem to set the EndDate of the dtTo calendar. Anyone manage to solve this one? Thanks! Lance using:jquery.datePicker.min-2...

jQuery ajax only works first time

I have a table of data that on a button click certain values are saved to the database, while other values are retrieved. I need the process to be continuous, but I can only get it to work the first time. At first I was using .ajax() and .replaceWith() to rewrite the entire table, but because this overwrites the DOM it was losing events...

iPad: Mobile Safari, HTML5 <video>, and jquery transitions

I'm building a simple proof-of-concept for an iPad-specific website that would use video transitions to bring users from section to section. For purposes of the proof of concept, each "section" is just an image with a semitransparent content text box positioned above it. There are just 2 sections, "home" and "contact", and they've got a...

Follow the links of the tab in jquery ui tab

Hello, I have jquery tabs like <ul id="tabsList"> <li><a href="#tab-1">Name 1</a></li> <li><a href="#tab-2">Name 2</a></li> <li><a href="http://www.google.com/"&gt;Name 3</a></li> </ul> <div id="tab-1">content 1</div> <div id="tab-2">content 2</div> the first two tabs load the respective divs. But the third one should go ...

With Jquery on page loading I want to move a div from its original place.

I'm trying to do the following: Get a DIV that is inside a hidden div in the page and put it next to another element via jquery. Is there any simple way to do that? ...

Doing a DELETE request from <a> tag without constructing forms?

Is there any way to force an <a href> to do a delete request when clicked instead of a regular GET? The "Rails" way is to dynamically generate a <form> tag that adds the appropriate params so that it gets routed to the right place, however I'm not too fond of that much DOM manipulation for such a simple task. I thought about going the ...

Django: How do I go about changing my simple app to use Ajax?

I currently have a web page where the user enters some data and then clicks a submit button. I process the data in views.py and then use the same Django template to return and display the original data and the results. What I would like to do is try to give it a bit more of a modern look and feel. You know the sort of thing, the page doe...

Different width result in different browser $("#div1").width() ?

I am using jquery to determine the width of the control:- $("#div1").width(); There is a difference in width of the div between IE8 (in compatibility view) and Firefox. Width is not same. e.g ie : 1887 FF : 1898 How to tackle it? ...

Error in jquery attribute selector and IE6-7

Hi, I'm trying to implement a JQuery script to process some areas inside an image map. I'm using $('area[shape="poly"]') as a selector to obtain the areas I'm interested in. It is working fine in IE8 and Firefox, but it is not selecting the elements in IE6 or IE7. This is a test page that shows this problem. I don't know if this is a JQu...

Check if an input item text is already selected?

I have text input item and using select() I can highlight the text inside it, however sometimes the text is already selected for a valid reasons and when I run select(), it deselects it I think, is it possible to check if the input item is selected ? ...

Is there a way to share a jQuery context?

I'm trying to use jQuery Button to build a button bar for each item on my page; however following the examples I get poor performance when the number of items goes over 100. I've added context to my calls which helped a little but it bugs me that I'm revisting the same context for each button built. Below is an example of the code used ...

Having trouble using jQuery's .animate() to animate a div from left to right, right to left?

Hello, I seem to be having difficulties using jQuery .animate() to animate an absolutely positioned div from right to left on a button click, and left to right on another button click. I was wondering if you would be willing to help me understand what I'm doing wrong? Thanks. Below is my relevant CSS, HTML, and jQuery code. I can click ...

How do I select a class element based on its id in jQuery?

I have multiple dynamically generated buttons with a class name of ".button". Each of these are given an unknown ID value used to uniquely identify them. In jQuery I must select one and alert the values. <div class="button" id="3"></div> The ID value is dynamically generated, therefore I do not know it. I'm new to jQuery but am basica...

Looking for jquery/javascript image rotator controlled by XML file

I'm trying to find something like this: http://coffeescripter.com/code/ad-gallery/ that is controlled by an xml file that can simply contain the image location, thumbnail location and the text for title/description. Has to be pure jquery or javascript though - no flash based stuff. I've found loads of great components but can't find one...

jQuery 1.4.2 $.ajax with specified jsonpCallback crashes IE6/7

I posted a similiar thread before here, but after further investigation I've found that the problem is with $.ajax jsonpCallback parameter. In the following simple code it crashes every time on the 2nd request (cache problem?) <html> <head> <title>Hello world</title> </head> <body> <span id="ClickMe">Click Me</span> </body> <script s...

Inserting HTML5 video using JavaScript for iPad

Hello, I am trying to insert a video into HTML using jQuery for iPad but all I see is a black screen. If I add the video tag directly to the HTML page all seems to work fine. Here is what I have in my JavaScript and I call this using a function for onClick event. var html = ""; html += '<video id="someVideo" width="'+settings.width+'"...

How can you tell if an HTML dropdown is displaying the list of options

Is there a way to determine if a given drop down is currently active and displaying it's list of options? I am currently binding to the mousedown event of the dropdown and populating the options when the user clicks on it. Unfortunately the mousedown event fires when the user selects the option as well. If I can determine if the drop d...

jQuery session in ASP.NET

Hi everybody, I write a countdown timer in jQuery and i need to keep some datas in a session when countdown ends. Datas have to be sent to server to update. How can i handle this situation. I am new in jQuery and asp.net so could you explain this briefly ...

How do you populate a DIV with URL from another domain?

Hi. I know it's not possible on the client to fill a DIV with content from another domain. However, I've used the Google Feeds code and it's pulling information from other domains into a DIV (no iframe) without resorting to server-side code, so I'm assuming somehow it's doable. Thanks. ...

Perform function on form submit

Hopefully this is a pretty simple question! I've got the code working in jQuery to listen for a specific form on a page to be submitted and perform an alert when it is.. I.e.: The form itself doesn't have an ID so I am targeting the form within a specific DIV ID. $("#content form").submit(function() { alert("lorem ipsum dolor?");...