jquery

how to toggle cell color either individually or as a group

We have a simple table with say (nxm matrix) and the user will randomly select a set of entries based on the following conditions. Our layout is like this (just pseudo code) <table> <thead> <tr> c:forEach 1...31 <th></th> </tr> </thead> <tbody> <tr> // could be 30 | 40 | 50 rows ...

Small bug when selecting text on focus

i have a input[type=text] containing the short url for a post. i want to select the short url so users can easily copy the short url into clipboard. i used $(".shorturl input").focus(function() { this.select(); }); but i noticed the 1st time it works fine then the next time it will blick (i see the text selected then deselected). ...

FullCalander fetching data error in IE 8

when i select the drop down list it gets JSON result and display events in full calander but i am having problem in IE 8 they show up fine in firefox . The error message is as follows. Message: 'undefined' is null or not an object in IE 8 Line: 809 Char: 2 Code: 0 URI: http://xenon.imanageproject.com/Scripts/fullcalendar.js Thanks in a...

Jquery flot dual axis

hi all, Im using jquery flot for displaying chart .... i want to show dual x-axis..... both have same values.. how can i show this? Please help Regards Nisanth ...

Jquery - Flot, How can I only show points and not lines?

Okay to get started I am using Jquery-Flot to plot a radial graph I have found a plug in to create a spider graph see API here: http://www.jumware.com/Includes/jquery/Flot/Doc/JQuery.Flot.spider.html Now it works all nicely bar the fact I dont want to show the lines that connect the points. Usually with: points: { show: true}, lines: ...

jQuery DataTables max column width

Hi, I'm using jQuery DataTables in my .NET webapplication but how do I set a max width for one specific column, all the other columns should be auto sized (like they are now in my table) EDIT The DataTable did it correctly by itself, the problem was there was a very long word without spaces that cause the problem ...

Javascript: client-side webservice with <script> tag

Hi, I'm trying to implement sort of client-side webservice client. To get over the same server policy, i'm thinking of including the external page whose content I need to read via the <script> tag that can get cross-domain content. I have no control over the webservice being consumed, so i can't actually return javascript code (it's a ...

How can I dynamically download and run a javascript script from a javascript console?

Is there a one-liner I could execute in a javascript console to download and execute a javascript script from a remote source? I was looking to see if there was a nice way to download this script and use it for experimenting interactively on random pages which may not have say, jQuery loaded. [edit: I'm aware I could dynamically cre...

Jquery tab spinner does not stop in IE

I have added spinner for jquery tab widget. It works fine on firefox, chrome and safari. Only in IE when I click on the tab spinner starts and continues to spin even when data is loaded. $("#mainTabContainer").tabs({ selected: tabIndex, spinner: spinnerImage, cache: true, ...

how to stop page scrolling down while using jQuery Accordion

I am using jQuery UI Accordion in my App, one problem I have is: inside the 2nd tab, there is a very long form. Everytime when user come to the 2nd tab, the page automatically scroll down to the bottom of the form. even after I hard code and set the focus to the first text box of the form. any ideas? thank you all in advance ...

What does this mean in jquery $('#id', javascript_object);

what does this $('#id', javascript_object); mean in jquery . I know that we can pass a context in the second parameter to the selector . But what happens when the second parameter is a javascript object . Thanks in advance for the help . ...

Click to move a div to the mouse co-ordinates

I have the following code: http://www.project-vanquish.co.cc/gridtest/drag-grid.html The plan is to allow the user to control that div (with the smiley face) in 3 ways: 1 - by the Cursor Keys on the keyboard 2 - by dragging the div 3 - by clicking on an area and the div will move to that position The problem I have is that when I click...

Check if jQuery or mooTools are loaded

Hello ! In my project I am using jQuery in client side and mooTools in admin side. I would like to be able to write some part of code (google maps functions, etc) which will be common for both of that libraries. Is it possible to check if jQuery or mooTools libraries are loaded and use proper behaviours ? $(document).ready(function() ...

Generating elements in jQuery

i wonder if below, generating content the jQuery 1.4 way $("<div />", { "class": "loading", "html": "some html code here" }).appendTo("#elem"); or the normal "easy" way is better. any performance or benefits from either? $("#elem").append("some html code here"); oh i just thought of 1 benefit of the 1st, i can add event handl...

how to make inlay controls toggle with jquery?

i have an image. if you mouseover it, the controls for next img and previous image appear, displayed on the image (moved there via css). if i mouseout the image the controls, shell disappear. the problem is, if i mouseover one of the controls i mouseout the image and the controls disappear :-( how can i handle that? i tryed something l...

Filtering through a large list of images on a single web page - without a database

I am looking at building a web page which is going to have a list of over 100 medium sized images and unfortunately I will not have any access to a database. The user will be filtering through the images and displaying around 8(at most) at a time. The idea is to filter through the images using jQuery and CSS classes, to show/hide etc, ...

jQuery gt(0) selector issue

Hi all. I have a problem with my jQuery selector. See below results from firebug js debugger: $("#tblComponentData tr:not([disabled=disabled])").length 9 $("#tblComponentData tr:not([disabled=disabled]):gt(0)").length 5 As you can see there is only 1 difference between these selectors: the second selector has "gt(0)". But...

How can I hide a string and replace it with a view/hide button using jQuery?

I have a field that is dynamically being filled. I know that the first few words of the string are always going to be: The order was manually edited: This is followed by a list of all the edits that was made. This list can be somewhat long sometimes. I want to hide the list of edits, and replace it with a button that says 'Click...

How to save two different values from one dropdown selection

Hi, in the backend a user can select a country via dropdown menu, e.g. "Germany". The frontend is bilingual so i have to dump "Germany" if language A is set and "Deutschland" if language B is set. How can i save the selection and its translation to separate fields in the database? Thank you for any help! ...

Not able to assign html value from javascript to an html element in chrome browser

I am trying to assign a value like <div> a value </div> to an html element say textarea in chrome browser, but the value is not getting assigned. It works fine if i try to assign a plain text like a value I am using this $('#editor').html((content)); where content = <div> a value </div> Please help me in solving this issue. Is it ch...