jquery

how do i show a jqueryUI at a dynamic location

I want to show a jquery dialog next to a button when its clicked. i have: <input type="button" name="test" value="i" onclick="$('<div></div>').html('test message').dialog( {title: 'Test Dialog',modal: false, width: 200, height:140, resizable:false});" /> i dont think I can make a function call within a json definition? I can get t...

Set series color

How to set colors of all series in flot as same? ...

using jquery datatable for server side processing with paging, filtering and search

I need to use the jquery datatable server-side processing (http://datatables.net) for my asp.net mvc (C#) application. My application has thousands of records to show in the table as list. I am using jquery datatable to enable paging, filtering and search. Is there any good reference/articles for jquery datatable server-side processin...

Why to scroll webpage to top, i need to scroll the $("html")

i am referencing the code from snipplr $('html, body').animate({scrollTop:0}, 'slow'); i found out actually i need to use $('html'), $('body') does not work, $('html, body') seems redundant? ...

jQuery qTip & ThickBox

I have a form loading in a Thickbox, which is submitted using AjaxForms and I'm trying to add some nice qTips to give users a better understanding of what the form field does when they enter data (it's a configuration options modal dialog) The existing stuff works fine, the ThickBox pops and the form displays and submits okay. However I...

what is the use of setting setTimeout to a variable and is there a need for clearTimeout

i was wondering what was the use of setting setTimeout to a variable scroll_timer = window.setTimeout(function () { ... when i can just use window.setTimeout(function () { ... and is there a need to clearTimeout actually? line 2 $window.scroll(function () { window.clearTimeout(scroll_timer); scroll_timer = window.setTim...

add using jquery

Hello, I want to do this var x=$(this).attr('id'); var y = x+1; where x is an integer but the value I get is x1 How do I do get the 16, if x=15? Thanks Jean ...

Titanium app breaks with ajax call trying to redeclare class

Hi all, I have an ajax request that requests a php script that connects to my server and returns some results Here is my PHP code: <?php require_once 'p/DataBase.class.php'; if (!isset($db)) //i added this if statment incase this caused the error $db = new DataBase(); $db->query('select * from table where status = 0 order by created...

CKEDITOR ajax posts

I have looked far and wide, and I cannot find any answers. I am trying to make an admin page using ajax so when the client updates information in the CKEDITOR it doesn't have to take him to a new page. Getting data from input fields are easy enough using the .val() function, but because textareas are not updated on the fly, I can't use t...

JQuery: Multiple selectors, doing something only with one of them

Hi JQuery ninjas. Hope you can help. I'm looping through two selectors: $('.div').each(function() { $('.selector1, .selector2 option:selected').text(); } Both selectors returns plain-text and I need the output in the order of the page. My problem is that whenever it is .selector2 (value from a dropdown) I need to add a < span >...

Javascript:parent in jquery

onmouseover="javascript:parent.DivColorHover(this)" i have a div in which values are created dynamically, i use this div as popup so that it will be used as dropdown list elements. onMouseOver of each value i am changing background color using the above line of code in javascript. how do i achieve the same in jquery ...

Make jQuery works for element created with "insertAfter" etc.

Hello I have some elements like <a class='link'>click</a> which are created after clicking on another div ... Is there any chance to make jQuery works for <a class='link'>click</a> ? For now I'm forced to use <a onclick='func()' class='link'>click</a> ... and it's not possible to make something like alert($(this).html()) (which must p...

Jquery Showcase how not to return to the first item on finish

I have a bunch of images being shown using JQuery Showcase. Everythin works just fine except one thing - I need it continue sliding when after it shows last item - so it keeps going from right to left showing the first item etc after last item shown. Now it visualizes all the previous items sliding them from left to right to the first it...

dropdown-textbox using jquery

is there any jquery plugin which provides an dropdown-textbox functionality? something similar to http://lab.anotherdan.com/js/textdropdownlist/ In this example he is making use of ul and li items.. but can the same be done for <options>? i am not sure if what i am asking is even possible. so any suggestions regarding this would be much...

jQuery fadeTo() THEN hide element by making it display:none?

I have 2 #header elements with different info in each that I want to fade in/out on a hover event. I can do the fade in/out no problem BUT I really want the elements to be hidden, i.e. using "display:none;" AFTER they have faded out and THEN bring them back once they fade in. I have this already for the fade: $(document).ready(functio...

overlaying several elements in modal window

graphic illustration of my effect i'm using a provided plugin like fancybox for overlaying content over the homepage. i've run into a limitation. at the moment, i'm loading new pages in an iframe, which i thought would be the easiest. however, this gives the new iframe window a scroll bar, which i don't want. the problem with using gi...

jQuery : Animate Widths of Adjacent Floating Divs

I'm playing around with a little jquery animation and trying to achieve a very specific effect. If anyone remembers the old Xbox menus with the panes or 'blades' as they called them, I'm going for something like that using a series of left floating divs. When the page loads, one pane is active and has a large width, displays some inform...

find child image width and apply it to containing parent div jquery

I have an <img> and some <p>'s inside a <div>. I want to get the width of the child img and apply it to the width of the parent div so that the paragraphs of text will wrap to the same width as the img. I want to be able to do this to multiple iterations on the same page. Background: I am developing a wordPress theme that uses the ma...

jQuery - hidden input value from select inputs

Hi I have something like this: <select class="bla"> <option value="1">...</option> <option value="2">...</option> </select> <select class="bla"> <option value="1">...</option> <option value="2">...</option> </select> <select class="bla"> <option value="1">...</option> <option value="2">...</option> </select> <input class...

Jquery - How do you pass a variable into a function to use?

Hi, I am stumped by a problem which i'd assume is a common Jquery occurence, but i've no idea how to fix! I have 5 variables - var pubtimed var toolstimed var newstimed var mylinkstimed var partnerstimed Which are used to store on and off states. I then have a script that checks cookies for recent states and updates the va...