jquery

jquery ajax post callback - manipulation stops after the "third" call

EDIT: The problem is not related to Boxy, I've run into the same issue when I've used JQuery 's load method. EDIT 2: When I take out link.remove() from inside the ajax callback and place it before ajax load, the problem is no more. Are there restrictions for manipulating elements inside an ajax callback function. I am using JQuery with...

jquery - make a div appear where I click?

Hey, I'm trying to make a little feature where I can click on an icon, and a box will appear that is similar to lightbox, but anchored on the icon. Is there a way to Tell where the icon is on the screen, and then Have the top left corner of my box placed where the icon is, and then Have my box appear in that location? Thanks! ...

Why are elements null in jquery, yet exist with document.getelementbyid()

Hello, I"m trying to attached some jquery to checkboxes in a gridview, using document.ready: $(document).ready(function() { var chkBox= document.getElementById("gvTimeSheet_ctl01_chkAll1"); //I can alert chkBox.id, element exists var name = $("input[name='gvTimeSheet$ctl01$chkAll1']"); //Here,...

Flash elements problem with Internet Explorer

I have two flash object hidden behind my web applications main element. These flash objects are hidden, because I need to save flash as picture and flash must be "visible", because otherwise I cannot save image. My flash objects are Open Flash Chart 2 charts. Saving images works perfectly in Firefox and other browsesrs, but in IE image...

How to fade in appended HTML with jQuery?

I have the following line of code: var html = "..."; $("#id_name").append(html).fadeIn("slow"); This causes the entire div #id_name to fade in. I want only the appended HTML to fade in. How can this be accomplished? ...

jquery ajax loading overlay plugin

Hi, Does anybody know of a nice plugin for ajax loading overlay preventing any other action in the browser till the data gets loaded. Thnks Coool ...

Best way to do captcha with an Ajax form in jquery?

I am working on a comment script using ajax, json and jquery. I have most of it done except the hardest part, If a user post X ammount of comments in X ammount of time, my php script will return a "captcha" trigger to my javascript code below, telling it that this user needs to enter a captcha code before we will post there comment t...

Javascript regular expression match on string followed by number?

I have a string of the format: string:num where num is any number but string is a known string that I need to match on. I'd like to have this in an if statement as: if( it matches 'string:' followed by a number) { //do something } ...

jQuery "active" class assignment

All I am trying to accomplish is to be able to have an unordered list of links in which one is clicked, the parent list item is assigned the class "active." Once another link is clicked within that list, it checked to see if "active" is assigned, remove it from that list item, and add it to the most recent clicked links parent list item....

Jquery empty() div except for matched elements

Is there a way to empty a div leaving only elements with a specific class name? Or, is there a way to remove all elements within a div leaving only elements with a specified class? ...

How to temporarily disable a click handler in jQuery?

Say I have something like the following to trap the click even of a button: $("#button_id").click(function() { //disable click event //do something //re-enable click event } How do I temporarily disable the click event of the button until the end of the processing of the original click occurs? I basically have the div disappear ...

jquery timed chage of item class

Is it possible to change an items class or ID based on some type of timer? Every 1500ms it would go to hey-there-1, then 1500ms later hey-there-2.. etc.. something that I could possibly control how many intervals it goes through.. hey-there hey-there-1 hey-there-2 hey-there-3 (back to beginning) hey-there etc Thanks ...

How do I scroll down to specified ID Tag on page load?

as title suggests. id string is passed to view as ViewData variable. ...

Jquery embedded quote in attribute

I have a custom attribute that is being filled from a database. This attribute can contain an embedded single quote like this, MYATT='Tony\'s Test' At some pont in my code I use jquery to copy this attribute to a field like this, $('#MY_DESC').val($(recdata).attr('MYATT')); MY_DESC is a text field in a dialog box. When I display...

Search zip-codes fast with jQuery

I have a list of zip-codes that I need to search trough using jQuery. I have the zip-codes in a CSV file like this: 2407;ELVERUM 2425;TRYSIL 2427;TRYSIL 2446;ENGERDAL 2448;ENGERDAL The list is pretty big, over 4000 entries, zip-code and corresponding city. What the fastest way to search trough the list in the browser? JSON? If that...

jquery index() - hover list item, show content with same index

I'm having a jquery issue with a small menu I have. I have a list of menu items. When I hover over one of the list items, I would like to show the content from a list of divs that shares the same index as the list item. This needs to be dynamic do allow any number of menu items and content items. $(document).ready(function() { $(...

Any reason to use Mouse click vs Keyboard to post?

I have a textbox that posts data with js keyboard enter event. Is there any practical reason not to do this and instead create a submit button? ...

jQuery/javascript: how to use 'contains' in an if statement?

I have HTML that looks like this: <div class="item-list"> <h3>Monday Sep 21</h3> <h3>Tuesday Sep 22</h3> <h3>Wednesday Sep 23</h3> If today's date is on the list, then that date should be red. If today is not on the list (hey, it's still August!), then the 21st should be red. I used this code to successfully turn Sept 21 red, but...

Guidelines for using jQuery plugins and their dependencies

jQuery plugins often have dependencies on extrnal files: jQuery library, style sheets (CSS), images, other plugins, etc. What are the guidelines for using (and writing) jQuery plugins that would address the placement of the dependencies? In the other words, where should the required files go: under main app folders (Img, Css, JS, or what...

JQuery UI DatePicker using 2 date fields trying to get date difference

I have 2 JQuery Date fields Arrival Departure Arrival date must not be todays date - i got this sorted using minDate: 1 in the javascript The Departure date must always be a minimum of 2 days ahead of arrival date. i thought minDate: 3 would work but thats querying off of todays date. it works fine if the user picks tomorrows date ...