jquery

jquery drag and drop

Dear i am new to jquery and i got following example from this website, http://web-design-dubai-uae.blogspot.com/2009/09/jquery-drag-and-drop.html now what i want is: can i able to drag back from Trash how can i get total Pictures in Album and Trash to store in mysql using php. Thanks http://stackoverflow.com for helping. ...

Jquery if clause

I need help to write a if statement using jquery. So if results.d.ProductName is empty do not show `$(prdHtml).html(html); $.ajax({ type: "POST", url: "Services.asmx/GetProduct", data: '{ "fieldName": "' + id + '"}', contentType: "application/json; charset=utf-8", dataType: "json", success: function(results) { ...

Need to Emulate this style of Flash Carousel

Hey I need to emulate the Carousel at this site: EMC Website Is there any tutorials or already built free frameworks that can do this type of thing? The big need is to be able to have this database driven(or XML) and be able to have embedded links (like that site does) so that when they click on those links I can send the user to their...

How can I retrieve the class of an element using jQuery/javascript?

Hi, I have a bunch of inputs like this <input id="someId" type="button" class="SomeClass" onclick="determineClass(this.id, event)" /> From javascript I would like to get the class, it's different for each input. function determineClass(id, e) { var elementClass = //Somehow get the class here } It can be using jQuery or just pl...

Jwysiwyg Link/Fancybox

Hi, Im trying to edit jeditable with jwysiwyg and i have a list of pages(links) i want to restrict jwysiwyg to, so when a user selects the link option(createLink) i want to actually load a fancybox and then allow the users to select just one of these pages. Ive search for the last three days and tried editing the createLink function in j...

jQuery Tablesorter - custom parser not working

I'm trying to write a custom parser for the jQuery plugin, Tablesorter. The idea is for it to sort the numbers in descending order on the first click. However, when I sort the table, the order doesn't change. Sometimes a few rows move, but most of them stay the same. Here is the code: $.tablesorter.addParser({ id: 'desc', is: functio...

Loop with 8 times

How I do a Loop with 8 times with this entire function? Only changing the var n $(document).ready(function(){ var n=2; $forms = $('#form'+n); $('#toogle'+n).hide(); $('#hide'+n).hide(); $('a').bind('click', function(){ switch(this.id){ case 'c'+n: $('#change'+n).hide(); $('#...

jQuery opacity animation distorting positioning in Internet Explorer

I'm trying to implement a click-like effect on my horizontal tab menu using opacity property and jQuery animate function. Here is the code for doing this: $(document).ready(function() { $("div#header > ul > li").click(function(event) { $(this).animate({opacity: 0.7} ,"fast", "", function() { $(this).animate...

Click function on LI in IE6 has strange behaviour

Hi all, I asked a similar sort of question a week ago at link text and that particular issue got solved, but only for IE7. I still have issues with IE6. Basically I have a left navigation menu that I want to work in an "accordion" fashion. The menu is made up of ULs and LIs and I want to be able to click on an LI to open up the sub men...

How to remove all css classess using jquery?

Instead of individually calling $("#item").removeClass() for every single class an element might have, is there a single function which can be called which removes all css classes from the given element? Both Jquery and raw javascript will work. ...

How to append <tbody > to <table> of parent window with jQuery?

popup.html is popped up by script from parent.html: window.open('popup.html', '', 'width=520, height=300,left=500,top=0'); Is it possible for popup.html to operate parent.html? ...

How to add a <tbody> to a specified <table > with jQuery?

I want to add the tbody below: <tbody id="contact"> ... </tbody> to a specified table: <table id="target"> ... </table> ...

How to order concurrent google image searches in order of execution?

Hi all I am not sure how to approach this problem. I have a function that is passed an array of HTML img elements. It loops through these images checking the SRC attribute for images using a blank "no image" thumb nail. It then executes an image search using the img tags ALT attribute as the query. The callback function on the search the...

Splitter window in asp.net

I have a master page.In that master page i have content place holder.Now i want that my page in that content place holder should be divided into two panes with the left pane displaying the links and when i click those the right pane display the page.I have searched splitter controls but none has helped and most of them are not free.So,ki...

jquery sortable update can work only one time?

Need a way to make element show in the div,but when i use ajax send data to list.php.it can not work? PHP: <?php mysql_connect('localhost','user','password'); mysql_select_db('fruit'); $days = 3; for($i=1;$i<=$days;$i++) { ?> <ul id="sortable"> <?php $sql = "select * from menu where columnNo = '$i' order by orderNo ASC"; ...

scrollable table with sorting

Hi, I want sortable table with scrolling with header fixed. I want these feature with jquery or normal javascript. I appreciate your suggestions. ...

hiding & showing DIVS via Radio button group selection using JQuery

Hi, here's what i want to achieve: Have a grouped radio button with different values Selected radio will reveal specified div $('#group1').Show() & $('#group2').Hide() My question is: How do I do get the value of the selected radiobutton from the group? ...

set child element width to parent div

i'm having a parent div and inside that child element will be table. i'm hidding some columns in the table thro' css becoz to avoid inline-style. so how can i reflect the width to parent div after hidding the column of table... ...

Jquery UI Tabs : bug - when mouse hover is selected

Hi guys , i found the following bug when using jquery ui tabs , when i selected the event as mouse hover and added animation to it $("#Tab").tabs({ "event":"mouseover",fx:{ opacity: 'toggle' , duration:'slow'}}); when i move the mouse over the tabs quickly , two tab contents remain open at the same time . this is the bug confirmed ,...

Show/hide div based on value of jquery UI slider

Hello, I am using the jQuery UI slider and trying to show a div when the slider hits a certain value and hide it otherwise. The div is showing/hiding but at unexpected moments. Can anyone spot where I'm going wrong with my syntax? Here's the script: $(function() { //vars var conveyor = $(".content-conveyor", $("#sliderContent")), ...