jquery

Amazon Link Enhancer javascript error jQuery(link).amazonPopoverTrigger is not a function

I installed the Amazon Associates Link Enhancer on my website so that when users hover links on my site it pops up a preview from amazon... unfortunately this no longer seems to be working. I am now getting the error jQuery(link).amazonPopoverTrigger is not a function I thought it was because I replaced my comments with Disqus but w...

In jQuery, how do you make it so when I click a div, I can press the delete key and make something happen?

In jQuery, how do you make it so when I click a div, I can press the delete key and make something happen? For example, I click on a div, then after that I press the button delete and it alerts a message. If I dont click on the div and press delete, nothing happens. Thanks!! ...

jQuery custom events and too much recursion error in Firefox 3.6.6 and 4.0 beta 1

I am getting a "too much recursion" error. I will try to give a clear analog to my actual application where this problem is occurring. Imagine that the app is trying call a webservice to get information about the contents of a very long freight train. There is so much information that we cannot simply invoke the webservice and tell i...

jquery ui datepicker from date and to date search

Hi, I have a list of dated news articles in the format: Day Month Year e.g. 28 Jun 2010 I have been asked to create a from calendar and a to calendar using jquery Ui that indexes these articles based on the date range that the user has input. I was thinking of using jQuery UI datepicker as well as jQuery quick search but wondered if ...

Get selected text in textarea

I'd like to store selected text in a variable and then delete the selected text by pressing a button. Preferably with jquery but I don't mind basic javascript. Thanks in advance. UPDATE: Thanks George, I've tried the example that you pointed to stripping down the code to what I need but I can't get it to work on click for the button. ...

removed text from td

I have several places on the page where there is text "Add" This text is in a td tag which is also just above an input with type="hidden" and name="ProductCode" EDIT: I want to remove the "Add' from each td tag. My guess is that I need something like $("input:checkbox[name='ProductCode']").this('td').each.text('Add').remove; This o...

jQuery, change div height to automatically fill out remainder of screen if content isn't already larger

My site is structured roughly like this: ----------------- header ----------------- | | side| main | | ----------------- footer I'm trying to get my "main" div to take all of the remaining height on the screen (and resize during window resizing), so that "footer" is always au...

Problem storing trademark symbol from jQuery through PHP to Mysql

In a MySql text column there is a trademark ™ symbol which is displayed in an html textarea field and looks correct. A change is made to the textarea data and it is submitted via jQuery. When it arrives in PHP it appears to be translated to \u2122 and gets updated in mysql that way. When that data is now retrieved to the web page it app...

Jquery Animation help

I am trying to create a ripple effect with Jquery. By having an element "bounce" one right after the other. I have it working but not sure as to why it only works this way. First off here is the code. //First Part (I Don't know why I need it?) $(elements).queue(function(){ $(this).fadeTo("fast",1); $(this).dequeue();}); //The Ac...

Generic JSON object

I have a generic JSON structure I want to put in to a JavaScript object. My JSON is like this { "rows": [ { "items": [ { "key": "foo1", "value": "bar1" } , { "key": "foo2", "value": "bar2" } ] } ...

Using jQuery to "auto-fill" a second text box, based on input from the first.

Alright, so basically what I'm trying to do is use the value (which in most cases is autocompleted) of a text box to fill in another text box with data pulled from the database. The user will input a name in one box and once that input loses focus, a second is auto populated with the name's associated email address. I've seen a few dif...

Facebook jQuery Plugins

What are the most Facebook like jQuery plug-ins, I would love to have a solid list of them. ...

Question about JSON

If I console.log(result); I get {"MSG":"WRONG","QUESTIONID":182.0} But If I console.log(result.QUESTIONID); I get undefined What am I doing wrong? ...

How to debug a Jquery Dialog

I have a fairly basic dialog maker for jquery that works in 2 out of 3 places. In the 3rd instance where I try to use it, the fields in the form are disabled once the dialog is displayed. The general concept behind the code is that the form is on a different page of the website, and for convenience, when javascript is enabled, you can ...

Selecting Textbox in a form

I have the following query: $("input:text").somefunction(); How can I also include a button and Textarea in the above code without using classes? ...

jcarousel and database query

hi im using a jcarousel: $(document).ready(function() { $('#mycarousel').jcarousel({ vertical: true, auto: 3, wrap: 'circular' }) }) so it is a circular config , i have a query like this : $sql=mysql_query("SELECT * FROM my_insujets, my_inmessages WHERE my_insujets.insujets_idforum = my_inmessag...

jquery-ui sortable connected lists with hidden overflow

I have two fixed hight divs each containing a sortable list which are connected to each other. Is there a way to hide the overflow while still having the lists connected? E.g. if the overflow is set to hidden then the li doesn't show when it is dragged outside of the div. I know a possible solution would be to calculate the maximum numb...

How to get value to dropdown from database using ajax ?

Hi, I have dropdown with some optional value.if change the those value based on that will display another dropdown with value from database.I am doing this process in jsp page.First dropdown values are static(coded in jsp).but second dropdown values are come from database when changeevent of first dropdown. Here i need to implement aja...

Rails AJAX request also calling entire original page

I'm using jQuery getScript in Rails to load an AJAX search on a dashboard page. I just noticed, though, that in addition to properly making the call it's ALSO reloading the entire page (in the background). I have no idea why this happening. I checked all my before_filters, all my authentication logic, I tried using different jQuery a...

jquery validation with resource files for multiple languages

I am using resource files in an ASP.NET MVC 2 web application and was using Jquery Validation but could not work how to use the resource files for the validation messages. Anyone able to help? ...