jquery

jquery error: a function is not a function?

How is it possible that, being 'colonna' a simple string: $('td.' + colonna).css('background-color','#ffddaa'); works correctly highlighting the background of the interesting cells, and: $('td.' + colonna).contains('Catia').css('background-color','#ffddaa'); produces the error: "$('td.' + colonna).contains is not a function"? Some...

jQuery Navigation Menu Plugin Recommendations

There are 62 jQuery Plugins for menus listed on the jQuery website. I want to select one for my navigation menu that has many users and is well-formed. What is your favorite jQuery Menu Plugin? ...

Some questions about the 25 jquery tips

I was just reading this: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx And had some questions about some of the advocated tricks: 9 - Give your selectors a context: What's the difference between using a context and using a more specific selector? Rather than doing var selectedItem = $('#listItem' + i, $(...

jquery checkbox alert

I've inherited the following checkbox: <td><div class="text_note"><label for="terms" class="text button_action"> <input type="checkbox" name="terms" id="terms" onClick="checkCheckBox(this, 'inf_terms', true)"> &nbsp;I understand and agree to the Terms &amp; Conditions. </label>&nbsp;<span id="inf_terms">&nbsp;</span></div></td> I need...

Does jQuery have something similiar to YUI's getDocumentScrollTop?

Does jQuery have something similiar to YUI's getDocumentScrollTop? (reference: http://developer.yahoo.com/yui/docs/YAHOO.util.Dom.html) ...

In jQuery, how to get the bottom position of the browser?

Hi, In my CSS I set the position of an element to the top of the page using CSS top 0px. How can I figure out the position of the bottom of the browser? (I want to force an element to the bottom of the page, that is, bottom viewable). ...

Passing $(this) to jQuery fadeOut callback

I know I need to use a callback so that html() doesn't happen until after fadeOut(), but inside the fadeOut() callback I don't have access to $(this) from .hover. I tried passing the selection using var point, but it's not working. if(!$.browser.msie) { points = $("div.point"); } else { points = $("div.flash"); } Problem Area: $(p...

Jquery hide/show not working in Firefox/Chrome

Hello, I have a bit of HTML/JQuery code that only seems to be working for IE 8. I am attempting to embed a meebo chat widget into a wiki by adding some direct html code. I don't want the widget to load by default, as it takes a bit of time, so I am putting it in a div and hiding it using Jquery. Unfortunately, this only seems to work...

Question about using special variables in functions for jquery UI/Draggables

I always see this in the documentation. $('.selector').draggable({ start: function(event, ui) { ... } }); In the jQuery documentation, what does "event" and "ui" represent and how can I use them? Is there any way to pass the specific .selector object itself into the function? I guess I don't quite understand how this whole thin...

Multiple Jquery modal Dialog Boxes in one page?

Hi, I am brand stinking new to jquery and attempting to have a "Services" page for a tech website I am working on. I am having trouble with different services opening the same info in the window. Basically I am using the code straight from the demo. Any ideas on how to have multiple windows in the same page? Thanks! ...

jQuery focus function not working in Firefox

The following piece of code focuses the text input after you click on the link. It works fine for Chrome 2.x, IE8 and Opera 9.64 but not on Firefox 3.0.9. The text input flashes quickly in Firefox then disappears, I'm currently working on Windows XP SP2. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1...

Javascript / jQuery image zoom plugin

I need to display an image in a fixed size div. Under the div must be some control, like a cursor bar, which sets the resolution of the displayed image. I don't mind much writing the thing, but I thought it might already exist. How come I can't find such a thing ? (I am not interested in things like jQZoom nor zoomimage which do not le...

How does the following jQuery code work?

Came across a code, and was wondering why this works? $.fn.appendVal = function(txt) { return this.each(function(){ this.value += txt; }); }; As opposed to simple: $('#sometextboxaspcontrol').value +=txt; btw. I know the 'simple' doesn't, but why? ...

How can I call a web service to insert a record into a database with jquery?

I am actually not sure if a webservice would be the correct way to go or if there is a better alternative, but here is my question. I have a dropdown with some products and I want to give the user the ability to add a new product, so when they select add new, it will pop up a dialog and when they are done it will insert the new product ...

jquery .animate causes ASP.Net controls to move in I.E. 6.0

I'm using the .animate function from the jquery.color.js library to highlight a label on an ASP.Net page when the value of the label changes. It works great in I.E. 7.0, but in I.E. 6.0 it makes a button control on the page change positions. Anyone know how to fix this problem? Here is the snippet of the jquery code that causes the p...

jQuery Slider Issue !

I have This script <div style="position:relative ;overflow:hidden ; height:195px;"> <div style="position:absolute" class="scroll"> {foreach from=$announce_list item=a} <div> <img src="imgsize.php?w=214&h=100&img=../uploads/announce/{$a.--------}.jpg" /> <h4 dir="rtl" style="padding-top:10px; padding-bot...

I have working Javascript code that that converts any number entered into its text equivalent

For example, 4 is converted to "Four" and 33333 is converted to "Thirty three thousands three hundred and thirty three". I am thinking of using JQUERY instead of plain JAVASCRIPT. Here is the code in its entirety: <script language="javascript" type="text/javascript"> function NumberToTextConverter() { this.TEN = 10; ...

Why does this JQuery call to asp.net pagemethod load the whole page?

Here is a snippet of my html: <input id="btnGetDate" type="submit" value="Get Date" /> <div id="Result"></div> <script type="text/javascript"> $(document).ready(function() { $("#btnGetDate").click(function() { $.ajax({ type: "POST", url: "Date.aspx/GetDate", ...

Get Selected Node Id

Hello, I'm developing a Firefox extension, where the user selects a text, then that text goes to a REST webservice and brings some results back. My problem with text selection, I've used this method to get the selected text: var selectedText = window.getSelection(); I got the result in selectedText variable and send it to the server...

What's a good way to refactor a growing number of javascript/jquery functions?

I'm working on a project where we are doing a lot of custom javascript and especially jquery, on an mvc style project. The only problem is that I keep adding more and more global functions/variables and they are piling up. I've got a few files but I'm unsure how to split some of the stuff up into separate files. I've thought about co...