jquery

Adobe AIR - What is the proper method for using an EventListener on a newly created window?

I'm very new to AIR development, and have just started seriously building my first simply application. I'd like to open a new window to prompt the user for desired settings upon first run. In testing the new window and detecting its closed state, I've done the following (some jQuery code included): The following code is used to open t...

jQuery Fading Opacity Problem

Hi Everyone: For a client, I am attempting to get this site to work in IE and other web browsers (currently only works in Safari and Firefox for Mac): http://www.randomscripts.net/think_company_world/main.php I am using JQuery's fadeIn and fadeOut functions on the pictures to cycle them through in the background. For every other brows...

jQuery slideToggle doesn't work with colspan in Firefox?

<script type="text/javascript"> $(document).ready(function() { $('#description').show(); $('#extender').click(function() { $('#description').slideToggle("fast"); }); }); </script> <tr> <td>cell1</td> <td><a href="#" id="extender">link</a></td> </tr> <tr id="description"> <td colspan="2" class="desc...

CSS fixed header, scrollable body

Hi, this is not a question, actually it's a simple solution to get your table body vertically scrollable using purely css, tested only in Firefox 3.5.2, assuming correct Table DOM definitions (table, thead, tbody). <style> .someTBODYclassName { height: 100px, overflow-x: hidden, overflow-y: visible } </style> Of ...

What is a simple jquery way to select a radio when checkbox is checked and then deselect the radio when checkbox unchecked?

<input id="myCheckbox" type="checkbox" /> Please, please check me <input id="myRadio" type="radio" /> Am I selected ? I would like the following behavior: When myCheckbox is checked then myRadio is going to get selected. When myCheckbox is unchecked then myRadio is going to become unselected. How will I do this in a very simple...

Removing appended html using jQuery?

Using jquery, I currently append html to a div on a click event. The following code allows me to fade in only the appended portion of the div: var html = ".."; $('<div></div>').appendTo("#id").hide().append(html).fadeIn('slow'); This portion works perfectly. But how can I later remove (fade out) only the appended portion? I tried h...

JQuery UI Dialog won't change width in IE7

I have a JQuery UI Dialog set up on my page that gets populated with some information (a table and a form) and then displayed with $("#dialogbox").dialog({ autoOpen: false, resizable: false, modal: true, width: 500 }); This works perfectly fine in FF but fails horribly in IE7. The problem is that, no matter what I do,...

Can this Jquery script be simplified?

Hi all, I have the following Jquery script: $(document).ready(function() { // When the submit button of the new team form is clicked... $('#new_team').submit(function() { // Disable & rename the save button $('input#save_button', this).attr('disabled', 'disabled').val('Saving...'); // Fade in the saving message $("#saving-msg")...

How can I see all results from a jquery Ajax response?

I am trying to make an Ajax call with jquery, if I put an alert in the success part, it launches the alert, so I know the call is working and there is no errors but if I try to u a value returned from the Ajax call it is null, I would post code but I'm on an iPhone. How can I basicly see all the results returned? Basicly what php's pr...

Accordion Menu - How do I know that it will slide up or down??

Hi I have a question I got an accordion menu(code below) and under the accordion menu I have a tag box. When accordion menu extends, I want to make my tag box go below the extended menu instead of extended menu covering up my tag box. So I change the value of css property "top" for my tag box after I count the # of sub-items being opene...

jQuery and Plugin Namespacing and Inheritance

Hey guys. There has been a lot of activity lately on the jQuery Dev Group about prototypal inheritance and plugin namespacing, and I want to see who has the best answer for it. Group link: http://groups.google.com/group/jquery-dev/browse_thread/thread/620c6a18a16d9665 Questions: What do you guys think should be done about this and why...

Selecting text on focus using jQuery not working in Safari and Chrome

I have the following jQuery code (similar to this question) that works in Firefox and IE, but fails (no errors, just doesn't work) in Chrome and Safari. Any ideas for a workaround? $("#souper_fancy").focus(function() { $(this).select() }); ...

jQuery Filter Allowed Parameters

Hi, Can someone pls point me to the documentation that provides/explains all possible filter parameters allowed. Some of the examples I have seen are :first and :last - anymore? Thanks. Tony. ...

Icon trigger datepicker

I'm using jqueryui datepicker to replace my existing popup date picker. I copy 100% from this sample http://jqueryui.com/demos/datepicker/#icon-trigger The problem is the icon is not centered with the datefield. I try change something in the css file but fail. ...

how to test if two elements are the same

I have a list of items that can be hidden/unhidden via JS be clicking them. The currently open item is stored in a variable, openActivity. Only one item can be opened at a time. I want to check in the click() event whether the clicked item is the same as the already opened item, so that it does not do a double-animation of it closing ...

jQuery Scrollable Plugin - Removing specific Carousel Panes

Hi, Can anyone who may have used this plugin at: http://flowplayer.org/tools/scrollable.html know how to go about actaully removing a carousel pane from the carousel group. As an example, if I have 5 carousel windows - how can I programmatically remove the carouosel window 2? Any help would be much appreciated. Thanks. Tony. ...

Returned value from first Ajax call is not shown in the second ajax call

Hi, I am new to JQuery and Ajax I am trying to use the value returned from the Ajax call to the another Ajax call. Example: $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ //alert( "Data...

jquery ajaxSubmit jquery file tree

Hi, I'm using a jquery file tree and I'd like to allow users to upload files to whatever directory they're currently in. I am having an issue binding the form within the tree, though, since the tree is loading dynamically and obviously can't bind a form that doesn't exist. Any ideas would be greatly appreciated! ...

when importing multiple javascript files the javascript seems to break

I am trying to incorperate several different js files into one page. For some reason though whichever ones are first, seem to break. Here is the code I am using: <link href="inc/css/style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="inc/css/lightbox.css" type="text/css" media="screen" /> <script type="text/javas...

jQuery Accordion: divs with scrollbars not sliding nicely

I am using the following code to get an accordion happening: $(".accordion h2").eq(2).addClass("active"); $(".accordion-content").eq(2).show(); $(".accordion h2").click(function(){ $(this).next(".accordion-content").slideToggle("slow") .siblings("div:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).sibli...