jquery

Jquery scrolling image top to bottom direction

Hi, I have the following code to scroll images in vertical direction (uses jCarouselLite) Code: $('#image').jCarouselLite({ speed: 1000, visible: 1, circular: true, auto: 5000, scroll: 1, vertical: true }); Needs: This code allows the image to scroll bottom to top direction. I want to scroll image ...

How to select all anchor tags with specific text

Given multiple anchor tags: <a class="myclass" href="...">My Text</a> How do I select the anchors matching the class and with some specific text. eg Select all anchors with the class:'myclass' and text:'My Text' ...

Mulitple ui-widget-overlay with multiple dialog boxes

I've got this - $(function(){ var dialogOpts = { autoOpen: true, height: 400, width: 600, position: ["center", "center"], modal: true, closeOnEscape: true, }; $("#contact").dialog(dialogOpts); $("#why").dialog(dialogOpts);...

If you select an element in jQuery by ID is there still a speed improvement by giving it a context?

Imagine this simplified markup: <div id="header"> <!-- Other things.... --> <div id="detail"> </div> </div> and assume you already have this code: var $hdr = $("#header"); Is there any speed difference for jQuery to lookup "detail" this way: var $detail = $("#detail", $hdr); vs var $detail = $("#detail"); Since deta...

How to read textarea with certain condition

I have a textarea in which the user enters the following data: Paul:Nine, Rome Jenny:Five, India Bob I want to read the data and store the values before the colon in an array and the values after the colon in another array. Please note that the user may not enter values after the colon like in case 3 above. In such case, the value ...

Javascript Mouseover bubbling from children

Ive got the following html setup: <div id="div1"> <div id="content1">blaat</div> <div id="content1">blaat2</div> </div> it is styled so you can NOT hover div1 without hovering one of the other 2 divs. Now i've got a mouseout on div1. The problem is that my div1.mouseout gets triggered when i move from content1 to content2, because the...

jQuery sortable for separated sections

I have main categories and sub categories. I want to be able to sort subcategories when the display is like: Main Cat1 sub cat11 [handle] sub cat12 [<>] sub cat13 [<>] Main Cat2 sub cat21 [<>] sub cat22 [<>] sub cat23 [<>] This turned in HTML <ul id="orde...

Caching issue with javascript and asp.net

Hi guys: I asked a question a while back on here regarding caching data for a calendar/scheduling web app, and got some good responses. However, I have now decided to change my approach and stat caching the data in javascript. I am directly caching the HTML for each day's column in the calendar grid inside the $('body').data() object, ...

Remove/hide browser address bar or toolbar web page

Hi All, I am creating web page using asp.net. Is it possible to remove/hide the browsers address bar or toolbar using Javascript for IE. Nathiya. ...

Dynamically adding radio buttons using JQUERY and then hooking up the jquery change event to the generated radio buttons

i am adding collection of radio buttons to my page using jQuery below $(document).ready(function() { $("#Search").click(function() { var keyword = $('#keyWord').val(); var EntityType = $("#lstEntityTypes :selected").text(); var postData = { type: EntityType, keyWord: keyword }; // alert(postData.V...

Ajax JQuery responses order problem....

Hello! I am searching 3 hours and didnt find anything.... I have this code which is called at an onChange event of an function group_changed(obj) { $.ajaxSetup({async:false}); $.post("/medilab/personnel/groups/getGroupRightsAjax", { 'group.id': obj.options[obj.selectedIndex].value }, function(data){ $("#div_rights")....

JQuery method for IFrame functionality

I have a aspx page (details page) that needs to be loaded in a modal window on a click of a button. I have buttons in the aspx page that calls server side functionality. So, this is similar to an IFrame way (except that it's now in a modal window) Is there a JQuery way of doing this? It appears that the JQuery load loads only fragments ...

getting values of multiple selectboxes via jquery

I want to fill an array in javascript that takes all the values out of different selectboxes with the same name so for example if i have a html like this: <select name="selectbox[]"> <option value="value1">text1</option> <option value="value2">text2</option> </select> <select name="selectbox[]"> <option value="value1">text1</option> <...

Using jQuery:remove() to delete/remove form elements off a page

I'm trying to remove a form element generated through Ajax calls, but when I submit the form and var_dump the POST request, I can still see the form field key=>value. I need to be able to completely remove the field through jQuery in order to validate correctly. ...

How might you unobtrusively enhance the jQuery Datepicker class?

You can pass special strings into jQuery's Datepicker class setDate() method like "+7" which will be translated into "7 days from today": http://docs.jquery.com/UI/Datepicker#method-setDate But you can't get that "+7" back out. When you call getDate() you get the calculated resulting date. I have a use case where I need to pull out...

How can I select all elements without a given class in jQuery?

Given the following: <ul id="list"> <li>Item 1</li> <li class="active">Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> How can I select all but Item 2, AKA something like: $("ul#list li!active") ...

Is there a jQuery selector to check if a tag has any attributes?

In trying to select elements that have any attributes, the following throws a jQuery syntax error. $("div[*]") Is there a selector to check if a tag has any attributes? Tested with jQuery 1.3 ...

How to check for DOM equality with jQuery?

I'm basically building a simple list, and one of the items in the list is selected. I'm accomplishing this by having a "selected" class applied to whichever item I want to have selected. I have two buttons that go forward and backward which traverse this list. However, when the user gets to the first or the last element in the list, I ...

Load external style sheets on request from a different origin

Hi, Is there a plugin or feature in jQuery that enables the dynamic loading of stylesheets from different origins similar to $.getJSON() or $.getScript()? I am able to dynamically integrate a style sheet from the same origin, but I need to be able to dynamically inject a jQuery UI theme from a different origin into a page. I guess I can...

Changing background image on accordion change - jQuery Ui

I am using this code: $('.ui-accordion').bind('accordionchange', function(event, ui) { $(this).next().next().css({'background-image':'images/green-bg.jpg'}); //ui.newHeader // jQuery object, activated header //ui.oldHeader // jQuery object, previous header // ui.newContent // jQuery object, activated conte...