jquery

How to change title of some text input depending on a radio with jquery ?

Hi! As you can see on http://jsbin.com/erivi/ I'm using Jquery to change some image (and image attribute) depending on radio button selected, I'm also removing form text when clicking inside it. And now what I'm trying to do is to change the text of the form depending on the radio button checked. For example when clicking on "Choice 3...

How to get the keypress value from an event object in jQuery

Hi I want to disable users from entering a character into a HTML text input field that isnt a letter or number. This exact functionality can be seen on the Twitter signup page (username field) https://twitter.com/signup. Im trying to write this in jQuery. But i need to be able to grab the incomming keypress event value to test which k...

jQuery advanced selector

Can I use comparison statements within a jQuery selector method? eg. I have a list of divs generated by php that all use the same CSS class but have value attributes of 1, 2, 3 etc. I also have a text input field with an id. This field can accept numbers only. I would like to select the div (from the long list) that has a value attribute...

Update Two DIV's on AJAX success - Combine JavaScriptResult & PartialViewResult?

At the moment I have a jQuery do a POST to a Controller which returns a ContentResult. When the OnSuccess event fires from jQuery it updates a div with the returned data. I now want to update another DIV with model data. I am thinking have a RenderPartial in my view, do the post and return a PartialResult which will handle this new di...

Problems toggling link text with JQ

I try to use this code for toggling text on the link: var showText="<span>Open</span> &darr;"; var hideText="<span>Close</span> &uarr;"; $('h1').before('<a href="javascript:;" id="hc_toggle_close">' + showText + '</a>'); $('#hc_toggle_close').click(function () { $('#hc_toggle_close:contains("Open")').html(hideText); $('#hc_toggl...

[Javascript] Background image at 100% of window (and resizes with it)

Duplicate of: Stretch and Scale CSS Background How do I stretch a background image to cover the entire HTML element? background image doesn’t stretch full page width I've got a webpage background image, which needs to be displayed fully at 100% of the window's size. If the window is resized, the image needs to resize with it, to stay a...

Force ie7 to take jquery.get response as xml despite wrong headers

I want to consume a web service using jquery's get function. There is no layer in between, since the javascript files are put on the same server as the web service is running on. My code runs nicely in firefox, but in ie7 the problem arise. I'm quite certain that i know the answer: xml header states "text/html", and IE7 belives unfortu...

fixing css for ie6 need help!

I have been trying very hard to achieve rounded corners with IE6+jquery ui tabs. I have this page prepared: http://jsbin.com/uzoko (w/out dd_roundies) Ofcourse, the rounded corners work in FF but not IE6. Because some of the properties used in CSS are specific to FF and Chrome. I had asked this question yesterday and based on tha...

jQuery Date Range Picker giving error in Google Chrome

I am using the jQuery Date Range Picker by the filament group. My code is such that I'm dynamically creating a textbox or rather an AJAX query returns HTML of a form. When I dump the HTML onto my page I call a script that invokes the daterangepicker() function supposed to turn an inputbox into a date range picker. My code works perfec...

How to measure characters in javascript and/or with jquery

I need to write in javascript (jquery) a function that is aware of the number of characters that fit in a line of the browser window. I'm using a monospace font to ease the problem, but it would be better if I generalize it for different fonts. How can I know how many characters would fill a row in the browser? The intention is to coun...

Resize jqGrid when browser is resized?

Is there any way to resize a jqGrid when the browser window is resized? I have tried the method described here but that technique does not work in IE7. ...

How can I prevent a later binding on a jQuery autocompleter from firing?

The below code is very simple. I have a jQuery autocomplete bound to an html text input referenced by #search. When the user types something into it, a drop-out list shows suggestions from the server. If the user clicks on one of the suggestions, or presses Enter with it selected, a popup (facebox) appears showing the called page within ...

JQUERY undefined

I am getting "JQUERY undefined" error. Do you have any idea (code below). <%@ Page Language="C#" AutoEventWireup="true" Inherits="faturaYazici2" CodeBehind="faturaYazici2.aspx.cs" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.or...

How to make two jquery-ajax process at the same time?

I trying to call 2 functions in the same page to submit jquery-ajax at the same time to process difference task (function 1 is to instert new records into the database, function 2 is to read the database every 5 sec then display the records from the database on the table in html). Before I call to function 1, the page working fine with...

ASP.NET Forms autosave

We have an internal asp.net forms app where one page is essentially a WYSIWYG editor that users enter 3-5 paragraph reports into. What are the best options for an autosave feature with the minimum amount of user-interrupt? I don't want to force a postback every five minutes or so unless I have to, but rather maybe some type of client-s...

jQuery Multivalue Pop-up prompt

I have some jquery code that is doing an ajax lookup and returning comma delimited values (value1, value2, value3...) I want to prompt the user with these values to find out which one they want. I'm not having much luck finding an jquery extension that will give me a pop-up window, show list of values and return the seleted value. Any...

Document not ready for insert after method using a loop with jquery

Is there a way to use a loop to insert separate DIV elements behind each other? Right now I use a loop to do just that, but it doesn't remember the DIV inserted before with the load method. The result is that I only see the last one. The code is meant to show all messages, after it reads the cookie with the db-id when you first arrive ...

JavaScript and jQuery scrolling issue in all browsers

Hi, I just launched http://tweetmp.org.au/ with a stack of new features, including the MP Spotlight you can see on the Homepage Every few seconds, the following code is run, // get the next it var nextId = ids[Math.floor(Math.random() * ids.length)]; $.get('/GetSummary?id=' + nextId, function(result) { if (result) { ...

Creating a select tag with options in JQUERY

Hi, S it possible to create a select tag with options in JQuery.. $("<select id="jSelect"> <option value="1">String</option> <option value="2">Number</option> <option value="3">Date</option> </select>").appendTo(".menu li") Does this works ...Its not working for me..Please suggest me ... ...

Variables Inside JQuery

Hi, I have created a Div Tag inside menu li and added a Class Div1 to it. Everything working good.. But Now i want to create div tags with div1 ,and on another click div2 and then div3 .... So s it possible to use variable and have a counting inside it..Please Suggest me.. $(document).ready(functi...