jquery

How to avoid flickering in jquery?

I am using jquery with asp.net webforms..... I am using asp.net pagemethods and jquery.... I am emptying a div on click of anchor tags and filling it with new content.... What happens is my div flickers when my new data is loaded to it... How to avoid this in jquery? Can i use any effect for this.... <script type="text/javascript"> ...

Clearing a default value in a search box with jQuery

Hi, Can't seem to achieve this simple functionality! All I want is to clear a default search term in an input box when it is clicked. The following works up to a point but clears any other text entered, I would've thought resetting search_form_text should have solved this: search_form_text = $('#block-search-0 #edit-search-block-form-l...

Does JFeed support RSS images?

I've had a look at JFeed's readme and it doesn't mention anyway to get to an RSS item's image: JFeedItem properties * item.title * item.link * item.description * item.updated * item.id Does anyone know a way to parse these images? ...

images are getting clipped when Jquery animate opacity is used in IE

I use the function given below: function rotate() { //Get the first image var current = ($('div#rotator ul li.show') ? $('div#rotator ul li.show') : $('div#rotator ul li:first')); //Get next image, when it reaches the end, rotate it back to the first image var next = ((current.next().leng...

Move jQuery data() when an element is destroyed and re-created

Can anyone think of a (preferably quick) way to move the data() attached to a DOM element to a new instance of itself? The lightbox plugin I'm using deletes and re-appends and element to the page in order to display it in the lightbox (to aviod the multiple-ids issue that ASP.net has), and obviously the .data() that is attached to the e...

please help me to find this jquery plugin

from logn time ago i have seen a plugin i think it is Accordion plugin its like that item 1 >>> item4 it merge it in one item and when hover by mouse its will be item 1 > item 2 > item 3 > item4 agian i will kill my self i can not find it ...

Help with animating an element in jQuery

I have an unordered list with a few list elements. #tags { width: 300px; height: 300px; position: relative; border: 1px solid red; list-style: none none; } #tags li { position: absolute; background: gray; } I have also started writing a jQuery plugin to animate the list elements. So far, I place the li...

online utility to convert jquery syntax to mootools syntax

Is there any online utility to convert jquery syntax to mootools syntax? Is there any guideline to convert jquery to mootools? ...

appendTo() inside $.each in jquery seems to cause flicker....

appendTo() causes flicker when it is inside $.each.... $.each(jsob.Table, function(i, employee) { $('<div class="resultsdiv"><br /><span class="resultName">' + employee.Emp_Name + '</span><span class="resultfields" style="padding-left:100px;">Category&nbsp;:</span>&nbsp;<span class="resultfieldvalues">' + employee.Desig_...

Remove main editor from wordpress edit page screen

Hi Anyone know of a way to remove the main editor from the page edit screen? And not just with css. I've added a few other meta boxes with the tinymce and they collide with the main one. I have a class that removes other meta boxes from the edit screen, but I cant get rid of the main editor this way. I've tried to add 'divpostrich' and...

pushing the button of cancel the value must return the initial value but it dosn't work.

$('#mdialog').dialog({ autoOpen: false, width: 320, buttons: { Apply: function() { <!--alert($('#slider').slider('option', 'value'));--> try{ SendCommandToAO($('#slider').slider('option', 'value'), 'AO=a1c1p1', 0, 65535, 0, 65535, -1); } catch(e) { //...

JQuery Thickbox - Can't get it to display

Hi All, I am using JQuery for the first time today. I can't make it to work (It simple doesnt show up). I want to display inline content using Thickbox (Eventually I will be displaying a PDF in an iframe). I have included all the javascript and css files etc. and referenced them as in code below. <%@ Page Language="C#" AutoEventWi...

remove cssclass from one anchor and assign to another in jquery...

Here are my anchors, <a ID="lnkbtn0" class="page-numbers" href="#">1</a> <a ID="lnkbtn1" class="page-numbers" href="#">2</a> <a ID="lnkbtn2" class="page-numbers" href="#">3</a> <a ID="lnkbtn3" class="page-numbers" href="#">4</a> And my click function i am adding a cssclass to show that it is the current anchor $("a.page-numbers").cli...

JavaScript and JQuery - Encoding HTML

Hello, I have a web page that has a textarea defined on it like so: <textarea id="myTextArea" rows="6" cols="75"></textarea> There is a chance that a user may enter single and double quotes in this field. For instance, I have been testing with the following string: Just testin' using single and double "quotes". I'm hoping the end of...

How do I convert character encodings with Javascript? JQuery.

Hi, Ive got this in an XML file that i parse with JQuery. <title>L&#229;ng</title> I'm using .text() for pulling out the text, but it's wrong encoded. How do I get it encoded to proper text? I want 'Lång' out of it. Edit: I'm using JQuery for getting data. Have it on my work computer, but something like this: $.ajax({ type: 'GET...

Open links in new window with toolbar at the top - like reddit.com toolbar

So I want to be able to use jquery or similar to force all external links to be a. Opened in a new window (I think I have this covered From Here ) $(document).ready(function() { $('a[href^="http://"]').filter(function() { return this.hostname && this.hostname !== location.hostname; }).attr('target', '_blank'); }); b...

Odd jQuery selector used in a find method

Does anyone have any idea what this jQuery selector will do? object.find('td:eq(1) div div'); I know that the td:eq(1) will get the 2nd td element in the object, but what will the 2 div's referenced at the end of the selector do? ...

Retrieve Table Row Index of Current Row

Hi Everyone, I am trying to validate a text input when it loses focus. I would like to know which row of the table it is in. This is what I have so far and it keeps coming back as undefined. Any ideas? $("div#step-2 fieldset table tbody tr td input").blur(function() { var tableRow = $(this).parent().parent(); if ($.trim($(th...

Help with Collapse and Expand Accordion at same time using JQuery (demo)

I'm stuck on an Expand/Collapse accordion using JQuery. After the initial headline is clicked and it expands, if you click to another headline it will collapse the former headline completely FIRST then it will expand the headline you clicked. This collapse first then expand second technique is very distracting and what should happen is...

jQuery and Scroll.To stop working once I archive (zip) or duplicate the folder.

Ok. This is about obscure as it gets. I've been working on a website for a client. I uploaded the folder to my website, and everything is up to snuff. I used Scroll.To for smooth scrolling down the page. Now the sites done, and he asks for a zip. Sure thing, right? Not so much. He comes back and says that the scrolling doesn't work...