jquery

How does one hide content from a user until a stylesheet is loaded and executed?

Hi all smart people! I'm using a jQuery plugin for sliding panes of content. For about 400ms all the page elements flashes up (text, images, etc.) on top of themselves making for a messy garbled jumble...a brouhaha you could say. Then the stylesheet comes along and sorts it all out. But for the sake of professionalism and perfectioni...

Stackoverflow like modal popup in jquery...

Which jquery modal plugin does stackoverflow uses (ie) When i try to close a question? Any suggestion.. ...

jQuery.get callback not called in IE6

I have some Javascript code containing calls to jQuery.get(). I'm passing a callback to receive the response from the server. In Firefox 3.5 (Windows and Linux) and IE8, the callback is called reliably. In IE6, it's never called. I've tried jQuery 1.3 and 1.4 -- same result. Is there some setting in IE6 that could cause such a probl...

How to access / select / attach event to an autocomplete combobox with JavaScript?

The situation: I have a dropdown navigation which contains a login form. The form is only visible when the dropdown (son of suckerfish) is open. The problem: When the user has already filled out the login form once, the browser saves his form input for future logins. Now when the login field receives focus, the browser's own autocomplet...

jQuery UI Date Picker

Hi, I am showing the birthday option and have used the jquery ui date picker. The problem is that I want show past dates for example starting from 1950 till 2000 but I don't know how to do that, i tried this but it did not work: $('#dob').datepicker({ showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: tr...

open Colorbox from text link

[EDITED QUESTION] I am using an image preview tooltip, which is making use of the rel attribute, so for the colorbox i am using the class="slideshow" to group the images together. I have this working fine, but i'd like to be able to open the slideshow from a text link, seen below. (rel="medium.jpg" is the image used for the image prev...

How to pass object/template as parameter in Javascript/jQuery

I'm attempting my first forray into jQuery. I'm trying to acheive the following, though I'm not sure of the terminology so will try to explain with an example using a kind of C#/pseudocode syntax. Say I want an (anonymous) object as parameter, looking something like: elemParameter { elemId, arg1, optionalArg2 } and I wan...

Run Javascript inside jQuery

I have the following function in Javascript: $find('mainWindow').repaint(); I need to run that inside this jQuery function: $("#tools").click(function() { if(get_cookie('visible')== null) { set_cookie('visible','no',2020,1,1,'/','.domain'); $("#WinMain").animate({top: "25px"}, 200); **<...

jQuery conflict between Coda Slider and Tabs

Hi, does anybody have any idea what the conflict is between these two jQuery scripts? I'm using the horizontal Coda slider, for the main homepage feature, and I'm also using some jQuery for switching between the tabs on the news panel in the sidebar. When I click on one of the news panel tabs it causes the main homepage feature to move...

jQuery KeyPress limiting my input on TextArea

I have this code: $('#typer').keypress(function(e){ var code = (e.keyCode ? e.keyCode : e.which); if (code == '13') { $.sound.play("cr.wav",{timeout:1000}); } else if (code == '8') { $.sound.play("del.wav",{timeout:1000}); } else if (code == '27') { ...

How do I remove javascript validation from my eclipse project ?

I am using eclipse on my project and while messing around with my eclipse settings, I turned on Javascript support. Now eclipse complains that JQuery library has errors in it and is not letting me compile the project. Does anyone know how to turn javascript validation off? ...

I can't get jQuery's jScrollPane to work! :(

Oh, the frustration! I have literally had the most frustrating morning ever. I've spent 4 and a half hours trying to get this to work. The jQuery plugin in question is jScrollPane: http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html My webpage is http://furnace.howcode.com - please just ignore the test data there duri...

How can I feed in X amount of items via jQuery then feed in a different x of items?

Hello guys, I was just wondering how I could read items from an XML file to feed in 12 items into an unordered list, then slide those out and feed in another 12 or the remaining amount that is left in the XML, a good example would be http://www.issuu.com - check out the magazines on the wooden background. Any help would be deeply apprec...

How to display ui timepickr on front using z-index?

Inside colorbox, I am using timepickr. The problem is timepickr content cut down at edge of colorbox due to overflow: hidden. Here I pasted some code, // javascript code written by me jQuery(".transportPopup").colorbox({ initialWidth: 150, initialHeight: 150, width: 920, scrolling: false, transition: "elastic", opacity: 0.3 }, funct...

jQuery Grid 3.5.3 issue

Hello, Today I installed a new version of the Grid 3.5.3 . I noticed that if the results have none rows but try to set a new width, I'll get the following error from Firebug : $t.grid.cols[lvc] is undefined Thanks, Vishnu. ...

jQuery plugin to highlight source code

Are there any jQuery plugins to highlight the source code shown in an HTML page? If there are more than one, which one is better to adopt? ...

highlight the current week in date_popup drupal

Is there any way to highlight the current week starting from Monday to next Sunday ? Thanks in advance ...

created tooltips with jquery not working

i am have create a tooltip for somwe divs but the div donot work.can any help me to find out where the problem my be.but i donot know if the new p created takes a position depending on the main div .because i floated all my div to the the left. thanks $('div#myiris').tooltip({ track: true, delay: 0, showURL: false, ...

form is not submitted on enter key when there is no submit button inside

is there some fix for this <form> <input type="text" ... </form> hitting the enter key inside the textfield when there is no submit button inside doesn't submit the form, is there some fix for this ? ...

jQuerys $.trim(), bug or poorly written ?

$.trim() uses the following RegExp to trim a string: /^(\s|\u00A0)+|(\s|\u00A0)+$/g As it turns out, this can be pretty ugly, Example: var mystr = ' some test -- more text new test xxx'; mystr = mystr.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g, ""); This code hangs Firefox ...