jquery

JavaScript: when I pass array from iframe function the array lose his type!

I have an iframe in a form. The iframe contains some info that I want deliver to the form parent by instance of Array. The problem: the Array instance loses it's type and becomes an object! The iframe function: function getIDS2() { return new Array(); } The parent call code: alert(top.frames["sup_search"].getIDS2() instanceof Array);...

Problems with sIFR not displaying the correct text

I'm trying to use sIFR (with the jQuery sIFR plugin) on my website, but have run into problems right from the start. I was able to create the swf with my chosen font, but when I run the script, I just get the default "Rendered with sIFR3" message instead of the text of my element. Any ideas? As Novemberborn himself pointed out, I did...

How to set a timer in javascript

I want to run the following code: ajaxUpdate(10); With a delay of 1 second between each iteration. How can I do this? ...

Mouse over events not fired when using jQuery ui.sortable

I'm using jQuery UI Sortables to sort items between lists and drag / drop items from one list to the other. The lists are collapsible with header DIVs that control the expand / collapse operations. I would like to have the lists expand automatically when hovering over their title DIVs with the mouse, but only when I'm currently sorting...

JQuery with WPF? Possible as on Adobe AIR?

From what I understand about Adobe AIR, you can use Javascript/HTML to develop desktop applications. Does WPF also allow the use of Javascript/JQuery to build controls? Or is Microsoft's solution for interactivity here solely XAML? ...

jquery slideDown rather than slideAndPush

I have a div where I click on a link to slideDown. As expected it does what it promises however, I prefer it to slide open without pushing the other elements down as well. so like a layer on top of other layers. is this possible ? ...

jquery finish one animation then start the other one

I have one two divs and two seperate links that triggers slideDown and slideUp for the divs. When one of the divs are slided down and I click the other one, I hide the first div (slidingUp) and then open the other div (slidingDown) but, at the moment its like while one div is sliding down, the other, also in the same time, is sliding up...

Is there a jQuery event that fires when all effects are done running

The title explains the question, otherwise is there way to call a function when all the effects on a page are done running? ...

Narrow a list of items as you type with javascript

I am trying to find a plugin or a solid way to narrow a list of items as a user types. Essentially there would be a list that is always visible containing product names for users to scroll through. At the bottom would be a form where you can type in the name of a product. As you type the list is narrowed down. I have been trying to fin...

I'm creating and then hiding a jquery time entry using two onready() handlers and it leads to critical errors in IE7 and Firefox

I'm creating a jquery time entry in an onready() handler and hiding it in another onready() handler in jquery. (The reason that the code is being called in two different onread() handlers is that the time entry is being created via a reusable Django widget renderer and hidden via local screen application logic.) The jquery time entry g...

How do I get the value of a textbox using jquery?

I can get the element like this $("txtEmail") but I'm not sure how to get the actual value. Update If .val() is the answer, can you give me the context on how to use it? Thanks! ...

jQuery - Edit a table row inline

Hi, I have a table with arbitrary columns and rows. This fact is irrelevant though really, all I want to do is develop a function that will turn a row (or multiple rows) into a series of text inputs containing the data in the table (or empty if no data in cell). I can't find any examples of people explicitly doing this, so I wondered w...

ASP.NET MVC & JQuery Dynamic Form Content

I would like to dynamically add fields to an ASP.NET MVC form with JQuery. Example: <script language="javascript" type="text/javascript"> var widgets; $(document).ready(function() { widgets = 0; AddWidget(); }); function AddWidget() { $('#widgets').append("<li><input type='text' name='widget" +...

How to eliminate post-render "flicker"?

I've tried my best to be a purist with my usage of Javascript/Ajax techniques, ensuring that all Ajax-y behavior is an enhancement of base functionality, while the site is also fully functional when Javascript is disabled. However, this causes some problems. In some cases, a DOM node should only be visible when Javascript is enabled in...

jQuery $(document).ready() failing in IE6

I have the following code: // Creates a timer to check for elements popping into the dom timer = setInterval(function () { for (p in pixelTypes) { checkElems(pixelTypes[p]); } }, 10); // Add Document finished callback. $(document).ready(f...

Inserting HTML as a last child of a selected tag using JQuery

I am new to JQuery. I'm reading JQuery in action, but only up to page 39 and need some quick help! Please note: I'm simplifying my actual requirement, so what I'm asking for may sound odd but I'm just tryin to get to the crux of the JQuery expression and not my situation (related to an animation plugin). I have my HTML code (which is g...

jquery datepicker display problem in IE 6.0

Hello all, I have a display problem with jquery datepicker in IE 6.0. The border of the datepicker pop-up is not shown in IE 6.0, the background of the pop-up window is white (should be gray) and the back- and forward navigation icons are shown in a wrong color. FF and later versions of IE are showing the expected correct result. Am I ...

Looking for jQuery plugin (or code) to automatically scroll Carousel items on mousover

Does anyone know of a plugin for Jquery that can replicate this functionality? Dynamic Drive Cmotion Gallery The idea is you have a list of images and only X number of them are visible at a time, and instead of clicking next/previous to scroll thru the images they scroll relative to the offset from center position of your mouse. I've ...

JSON in JQuery

Dear all i am using php and JQuery, and JSON.Now i need to know how to parseThe JQuery data in javascript. load.php <?php ... $json =json_encode($array); ?> It Returns jQuery by following data [{"name":"STA","distance":"250","code":25}, {"name":"GIS","distance":"500","code":45}] jQuery $.getJSON("load.php", function(json...

Jquery form plugin (adding ajax form validation)

I am creating a register form that is submitted via the Jquery form plugin. I am attempting to validate the form fields through ajax with a backend php file. Here is my Javascript. It only works if I set it to return false no matter what otherwise it submits it without validating it if I return it true. $(document).ready(function(){ ...