jquery

how can i get $(document).height() NEW value when new data has been added?

Lets suppose that $(document).height() is 1000. Then i insert a new div at the bottom of the page with height=100. The $(document).height() should be 1100 but it keeps throwing 1000 to me. How can i get the new $(document).height() dynamically? Thank! ...

Google map geoXml infowindow

Hi, I have a KML with a route which I display on Google Maps via the GGeoXml. Because I want to have Placemarks from the KML in a sidebar (next to the map) I have created a KMl parser which displays them (I don't want to use the geoxml). I've successfully created the sidebar which interacts with the map. The only problem is that i don'...

Jquery - selector not selecting multiple checkboxes IE

In IE, The selector for multiple inputs is not working whereas in firefox it is. Below is the html. <td><input id="contactInfo.shippingAddress.streetAddress1" name="contactInfo.shippingAddress.streetAddress1" onchange="needToConfirm = true;" type="text" value="address1" maxlength="100"/></td> <td><input id="contactInfo.shippingAddr...

jquery ui datepicker onselect inst target

So I have what I think is a pretty basic question but I cant for the life of me figure it out. How do you reference the selected date element (dom) once clicked. I have tried this: $("#eventCalendar").datepicker({ onSelect: function(dateText,inst){ var activeDateObj = $("#eventCalendar").find('.ui-state-active'); } }); This r...

JQuery and radio buttons

<form id="Numbers1" <table id="numbers"> <tr> <th> prvi_br </th> <th> drugi_br </th> <th> treci_br </th> </tr> <% int rb = 1; %> <% foreach (var item in Model) { %> <tr> <td> <%= Html.Encode(item.prvi_br) %> <input ty...

Jquery add elipse (...) and truncate text based on height not width.

I have found many ways to measure width and to truncate text using jquery, but I can't find one based on height. I am limited to two lines of text or it will knock my design out of canter. So does anyone know a method of limiting a paragraph to two lines high, tuncating it and adding an elipse ? ...

[jQuery] JS inside the template

Hello, I'm trying to include some javascript code inside a template. The code of my html page : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> ...

jQuery Can't $(...).load() the head title in Chrome

I need to get the title of a remote page by URL. The code works in FFX, but not chrome. Anyone have any ideas? $(document).ready(function(){ $("title").remove(); $("head").load("http://www.latentmotion.com title"); }); ...

use jquery to search for a word and crossline it or replace it with another word

so i couldn't find how to do it... oh, yeah... i wanted it to be jquery so i will be able to do it on all but the last one this is my problem too ...

Browser: Continue gif animation after escape is pressed

Firefox (and other browsers i believe) stop gif animation when you click the Stop button or invoke it via the Escape key. I have a text input that on change makes ajax requests to update other elements. As part of this ajaxyness i have an animated gif to show feedback. I also trap the escape key press in this input so as to clear the te...

How can I detect 'any' ajax request being completed using jQuery?

I have a page where I can insert some javascript / jquery to manipulate the output. I don't have any other control over the page markup etc. I need to add an extra element via jquery after each present on the page. The issue is that the elements are generated via an asynchronous call on the existing page which occurs after $(document...

Making span clickable after prepend in jQuery

I have a DIV where some code is presented. When I hover on this DIV I want to present a button that toggles the comments inside the code block. So far I have this: $('.code-block').hover( function(){ $(this).prepend('<span class="code-block-control">toggle comments</span>'); }, function(){ $('.code-block-cont...

appending <a href> to keywords in rails

Basically, there are some keywords that i want to pick out and assign a link to them dynamically. How should i go about in doing this? Let's say i have something like this; <p>ruby, rails, php, python, django and sinatra</p> and i would like to assign links to keywords like ruby and python, so the end results should look like this; ...

deleting cookie at the end of a process

Hi, I am using the following plug in for cookies in jQuery: https://code.google.com/p/cookies/ The issue i am having is not with the plugin but when and how to delete the cookie at the end of a quoting process. The site i am using this on is a six step online quote and buy process. There is Omniture event serialisation sitestat trac...

IE7 jQuery(document).ready() problem

I have a page that works perfectly fine in Firefox, but is throwing an error in IE. I am loading jQuery dynamically (if it is not already loaded), and then doing some stuff in the jQuery(document).ready() block. However, IE throws the dreaded "Object expected" error when it hits the jQuery(document).ready() block. You can view the full ...

In JSF How can I understand of multi checkboxes whether all of them is checked or not?

As you understand from the title above, I have a datatable and checkboxes in each row. I want to enable a button when at least one checkbox is selected, and disable it when there is no selected checkboxes (I mean all of them is unselected). I could achieve this as like if one of the checkboxes is selected, the button becomes enable. How...

How do you set a variable to be an empty, but workable Jquery object?

Outside of a for I declare a variable using var list;. I use this variable inside of my for loop like so: // add the html to the list if (list == undefined) list = item; else list.append(item.contents()); item is a cloned jquery object build from a $('list_template').clone(); call (list_template is a div with <li> elements in...

copy an element as HTML to clipboard

I've managed to write some jQuery to find an element and copy it's html to the clipboard (ie only). The problem is that when I paste this into a rich text box area in sharepoint it pastes the HTML as text only. How do i replicate the user action of highlighting a link on a page and pressing copy. When I do this manually and then paste...

jQuery: Is the jquery alphanumeric plugin still supported?

Just wondering if this plugin is still supported, cant find any contact details to report a bug. There is also no license info, can I assume I can change it and use it? http://www.itgroup.com.ph/alphanumeric/ ...

Continous marquee text using jquery

Hi, I am having the list items and the list items needs to be like marqueed using jquery can u please give the answer as soon as possible it is very urgent Thanks in advance, Vara Prasad.M ...