jquery

Jquery fade in / out looping more than once

I've been using jquery to do some image swapping and fading. I have a div, with and id of cup-builder-error I use jquery to load images into divs, then on error fade in and out the error div $("#imgShell").attr("src","products/components/" + idArray[2] + ".png").error( function(){ ...

jQueryUI Autocomplete "waiting" in IE but FireFox is fine.

I've got some jQuery code in my page for a City AutoComplete. The problem I'm running into is that it works fine in FireFox but I only get the "waiting icon" in IE8. I've been pounding away at this for about 3 hours without any luck. I've even tried swapping out the AutoComplete for a different library, but I just can't seem to get it...

Is there any possibility of two asynchronous Javascript function instances executing two blocks of code at the same time?

I understand that Javascript doesn't have multiple threads, but I'd like to know if the following code has any chance of breaking. My understanding is that unless an asynchronous function is called, such as setTimeout or an AJAX call, that once a block of code starts executing there's no way for it to pause until it completes or does ca...

jquery add item to UL then sort, then highlight item that was added

this is my current code $('ul#attachmentlist>li').last().after("<li>new item on list</li>"); $('ul#attachmentlist>li').last().effect("highlight", {}, 2000); what i want is to have the newly inserted li element get highlighted after it is sorted $('ul#attachmentlist>li').last().after("new item on list"); $("ul#attachmentlist>li")....

What would this raw javascript selector be in JQuery?

Here is the piece of javascript that correctly identifies a UL element: $(this.parentNode.nextSibling.nextSibling.children[0]); The html it looks over is: (with 'this' referring to the .cs_previousArrow as the initial selector) <div id="cs_furlBar1"> <p class="cs_furlHeaderClosed">INVESTOR SERVICES</p> <p class="cs_se...

jquery window.parent

I can use this just fine in a window $('#dropDownSpan').css('visibility', 'visible'); but how can I use it in another window which is child of this window or may be opened by this window. I tried: $window.parent.('#dropDownSpan').css('visibility', 'visible'); but that didnt work, any idea? ...

How to scroll jQuery ui tabs?

Hello. I have a div with 600px X 150px and i need to paste there a jQuery ui tabs. There will be only 2 tabs, but each tab will contain a lot of text and images, but i don't want to resize div. If i insert overflow option in css to div or .ui-tabs there appear 2 scrolls - 1 from div and another in tab and it scrolls all tab panel. Questi...

Jquery closing dialog and removing div

Please help! I have designed a dashboard that uses gadgets. One of the gadgets creates a dialog but every time that the gadget is refreshed, it creates another dialog with the same id. This dialog contains a form, so there are issues with getting and submitting the value of my inputbox since there are identical id's on my page. What...

Checkbox list in columns via JQuery

How can I create a layout with a set of checkboxes evenly distributed into columns at the top of a page? I'm using jQuery and classic ASP. ...

Does anyone know of a jQuery magnification plugin for embedded pdf objects?

So far all the zoom of magnifying plugins I have found are for images and I need something that will work when hovered over an embedded object tag .pdf file. Any ideas? ...

Why returned JSON data is in different data format?

Hello all, In the following two different forms, both server side php script return something like this json_encode($results); So I assume that the client side should get JSON data. However, why in case I, the returned data is text and we have to make some conversion before we can access the JSON data. in case II, the returned data ...

How do I handle Two Submit buttons on One Form?

I have two submit buttons and one form. How do I check what submit button was selected in my jquery code? <% using (Html.BeginForm("UserInfo", "Home", FormMethod.Post, new { id = "formNext" })) { %> .... <input id="submitHome" type="submit" name="goHome" value="Home" /> <input id="submitNext" type="submit" name="getNext" value="N...

Using remote JavaScript in Chrome Extensions

Is there any way to get remote JS file to chrome extension? My manifest.json looks like this: { "name": "My Extension", "version": "0.1", "content_scripts": [ { "matches": ["http://*/*"], "js": ["jquery.js", "main.js"], "run_at": "document_end", "all_frames": true } ] } I want u...

Change link to another link in Jquery

A site I am working on has links for add to cart I would like to change that link to point to different page how can I achieve this in jquery. $(document).ready(function() { //alert('Welcome to StarTrackr! Now no longer under police …'); $("a[href='http://www.somesite.com/scAddItem.aspx?action=add&amp;BJID=421&amp;extra=type,jou...

Why does jQuery RTE plug-in change my URLs to relative links?

Can anyone figure out why jQuery rte plugin is changing my urls to relative links? Any external links are fine but if the page i'm on is here http://www.example.com/admin/input/ and the url I want to link to is here: http://www.example.com/test/ the plugin will remove the http://www.example.com/ from my link and replace with ../ The ...

need jquery solution to animate a div every X seconds for a duration of Y seconds

I get a string from a php script and display it in a div. When the string arrives I will $().animate the div up. I need to show the div every X seconds and it needs to display for Y seconds. If the div is currently displaying when I get another message from the php script I want to ignore it if it is the same message, but if it is a n...

Help with JQuery conditional statement

I am trying to run some JQuery script on a particular page but only if a certain page loads. The Scenario: We have one page that loads (i.e., webpage.aspx) and it loads different content based on the referring click. (i.e., webpage.aspx?contentId=1, webpage.aspx?contentId=2, webpage.aspx?contentId=3, etc). Here is my problem. I need ...

Logging in to Yahoo Messenger using their newly released API

Hello, Im trying to login to yahoo messenger using the newly released messenger api.I referred to http://developer.yahoo.com/messenger/guide/ch05s03.html .I signed up for the API and have got a Consumer Key and a Consumer Secret.My yahoo id is [email protected](not the real one,just for the sake of example).To login i hit the following ur...

Need to add an <li> at the end of each ul on a page

I need to be able to add an <li> </li> to each UL within a certain div on my page. Here is the code I have: <div class="sfmg-thumbs-wrapper" style="width: 67px;"> <ul> <li class="active"><a href="#"><img width="20" height="20" alt="Photo Title Here 1" src="images/temp/portfolioImage1.jpg"></a></li> <li class=""><a href="#"><img width="...

jQtransform Checkbox Click Problem on IE

Hi All !!! There is a very strange problem with jQTransform and jQery 1.4.2. When I use the jQTransform plugin on any form my checkboxes stop working appropriately. This is the behavior: The first click on a checkbox, marks it From that point on i need to click it twice to unmark / mark it I did a some Google search before creatin...