jquery

jQuery for XUL?

I have read on the internet and found out that jQuery works OK on XUL. My questions are: Are there any jQuery plugins that are specially made to work with XUL? Is there any other jQuery-like library that was specially made for XUL? I have not yet tested jQuery on XUL, I'm just asking these questions for curiosity. ...

Eliminate Duplicate Entries

I am using the following javascript to dynamically load the contents of an external page within the parent page. The external page is within the same domain as the parent page and queries a database for blog entries. I am using the variable "eeOffset" to pass a value into the database query in the external page to offset the results retu...

Jquery Delete From Table

This code does following: Click on "Delete" in item row -> deletes item row Click on "Delete" in category row -> deletes category row and all item rows (in all table) Need it to do following: Click on "Delete" in item row -> delete item row (WORKS PERFECTLY) Click on "Delete" in category row -> delete category row and all items ins...

how to set the offset in javascript

How can set the offset using JavaScript ? ...

jQuery Delete from table

Possible Duplicate: Jquery Delete From Table Basically take a look at this link text and you will get what the problem is. Problem: Once you click delete on first category, category and all items (even not in that category) get deleted too. ...

How to disable user's input while loading page with jquery?

I have a heavy-jquerized page with some links, various user inputs and such. I use jquery, with actions defined in a $(document).ready( function() { .... } ); block. But while the page is loading (or, even worse - reloading), and a user clicks a link, the href action from it is triggered, as the javascript isn't loaded / active ...

Coloring lines inside textarea

Is there any way to make textarea display lines in colors? What I am trying to achieve is every second line colored, i.e. white,grey,white,grey,white,grey... for better readability. Users are supposed to write in lots of stuff, as in "enter names, each one from new line". I do use jQuery anyway so if they made some simpler solution for ...

Jquery show form on cursor position

Like a tooltip on click, it shows on cursor position and allows you to alter details and submit. I have the code to do this in javascript, but would be great to do it in jquery. I've ahd a look around and seen loads of tooltip plugins but none that aren't mouse over. ...

insert text (edit text) using tooltip (popup)

Hi, I am trying to create a little popup div which contains a textbox and two buttons (insert, cancel). this div would appear when you click on a text to edit it. (like tooltip but contains button and text box) how can i make it by jquery? thank you alot I am newbie on jquery. ...

Active AJAX requests

Prototype stores the number of active AJAX requests in Ajax.activeRequestCount. Is there something similar in jQuery/Mootools etc or something that can be used from XMLHttpRequest?. Ideally I need a library independent method of detecting the number of active AJAX requests within a page. If not, a method for each library would suffice. ...

how to add an image for scroll in div Tags

hi is there any way we can add image for our scroll bar for the div tags. i dnt want to use the normal scroll bar that we get[i dnt want to use colors for that scroll bar] once the the height of the div is set once it exceeds i need to get my image[ custom image for the scroll] is there any way we can get it done ...

ASP.NET MVC JQuery - flexible alghoritm for calling asp.net mvc methods

Greetings, i would like to prepare some good "machine" for calling asp.net mvc methods from jquery. The concept is as follows: The concept is to have a one method each requests will be calling. By using visitor pattern I will be able to determine what kind of operation i should do. public interface IRequestVisitor { void VisitReq...

prevent autodropdown by jquery datepicker

hi when I append jquery datepicker to my asp textbox, by clicking on it, my browser auto shows the history of the dates i typed in a dropdownlist. Can I prevent this? Set textbox to readonly isn't a good idea because asp.net doesn't read the values from read only fields in code behind. any other ideas? thank you and best regards. ma...

jquery ajaxComplete on specific ajax call

i have this function that puts some data with ajax call in a php variable. When the data is put i show some message that the data is put and then i show a small part of that data. the problem is that the javascript shows the message that it is put when the ajax call is still putting it, so the part of the data i want to show isn't there...

simple calculation of integer and decimal number in jquery

Trying to multiply 2 values. Quantity is integer and credit price is decimal number. When I run this code nothing happens. Does anyone know what is the issue? Thank you. $(function(){ // bind the recalc function to the quantity fields $("#oneCreditSum").after('<label></label>Total: Aud <span id=\"total\"></span><br><br>'); ...

Fixed-Fluid Columns in Table

<table> <tr> <td>Fixed-Width Column: 250px</td> <td>Fluid Width Column: remaining width</td> </tr> </table> I'm not creating a page layout with this, and I need to use Table. Is there any way to achieve this cross-browser? I'm already using jQuery on this project, if that helps? Thanks in advance for your help. ...

$('#<%= txtFirstName.ClientID%>'). What do $ and # do in this code?

$('#<%= txtFirstName.ClientID%>').show(); Trying to send ClientId to external Javascript file using server tags as a parameter <input type="text" ID="txtFirstName" runat="server" maxlength="50" class="DefaultTextbox" style="width:180px;" value="First Name" onfocus="ControlOn...

add / remove class on span inside a tag

I've tried various options but can't get the silly thing to work. How do I get the span inside an < a > tag within an < li > to change class to "active"; then remove it when another < a > is clicked? <ul id="dumb"> <li><a href="#">Something<span></span></a></li> <li><a href="#">Something Else<span></span></a></li> </ul> Clicking the <...

calling iframe function

Is there a way to call a javacript function that is inside an IFrame from the parent ? ...

Cufon - jQuery, Replace font color on click

Hello I am using cufon for some font replacement and jQuery to build a custom accordion. the code for my accordion is something like this: $(".acc-title").click(function () { //show something, hide something etc. }); Is it possible during the click event to change the color of the replaced (with cufon) font? something like: $...