jquery

$('#searchfield').keyup(function(e){

Hi, i have a little question. Is it possible to call the keyup function with an extra value? For example $('#eld').keyup(function test(e,val2){ test('','hallo'); But this will not work. Any ideas? Kind regards Peter ...

How to get collection of id of radio buttons contained in a div

I want o get a list of all the radio buttons that are contained in a div using javascript or jquery. eg <div id="container"> <input type="radio" id="1"> <input type="radio" id="2"> <input type="radio" id="3"> .... //total no of radio buttons are not known </div> I want an array containing an id of all radio buttons c...

How AJAX requests work on Android 2.0 vs. Android 2.2

I'm testing out a web page on the Android 2.0 and 2.2 emulators, and the jQuery.ajax() requests that the app makes have slightly different behaviors regarding HTTP Authentication Headers. The server I'm making requests to requires basic authentication, and the ajax requests in 2.2 send the proper auth header. In 2.0, I am debugging with...

Problem in mouseover event in JQuery?

I am using a table navigation menu in my website in that i have used JQuery fadeTo() for when I mouse over the menu items (<td>) it working only once. After same menuitem mouseover is not working. Please tell me whats wrong in my code? $(document).ready(function() { $("table.nav td").mouseover(function() { $("table.nav td:...

jquery's attr function works only one time

I use this snippet to show a dialog. This works great however: the title is going to be set only for the first time I click the table cell. After reloading the page again the title is set - for one time. Ad infinitum... $(document).ready(function() { $("td[id^='_ctl0_tbl_content_reportid_']").click(function() { var tokens = ...

Add Entry to DB, Upon Success Refresh Messages

Hi all, So it's not a complicated matter at all, but was wondering how the Stackoverflow community would tackle this. I wrote a facebook-style wall type thing where users enter their "status", it gets processed via jQuery Post and upon success returns a success message. Prepending the new message to the Wall Stream would make sense, ...

how can form elements be summed seperately row by row column by column in jquery?

I have on-fly increasing form rows and 3 columns and each cell contains text box. I want to sum first 2 columns' values to 3rd colums for each row. how can i do that with jquery? let me visualize more: c1 c2 s r1 5 6 11 r2 7 3 10 . . . . s sc1 sc2 sc3 sc1,sc2,sc3 are sum of the related co...

How to manipulate string in an array

I have an array that contain some fields like this ctl00_ctl00_cphBody_bodycph_content_rdo_SID_25_SortOrder_17 ctl00_ctl00_cphBody_bodycph_content_rdo_SID_25_SortOrder_18 ctl00_ctl00_cphBody_bodycph_content_rdo_SID_25_SortOrder_19 I want to create a new array or manipulate this array to contain only sid = {25,26,27} from _SID_25 ...

Submitting a form causes 412 error.

Hi, I'm working on a simple, one field, form that works with AJAX. Every time I submit the form and then refresh the page, I get a 412 error (Precondition failed: The precondition on the request for the URL /user.html evaluated to false.). Eventually this form will be AJAX, but right now, I'm just using jQuery to receive the click event ...

jQuery, how to make synchronous animations?

I have a page layout that looks something like this | image || image || image | When you hover over one of the images, I want to make an animation to get something like this | image-hover || image || image | or | image || image-hover || mage | or | image || image || image-hover...

$(document).ready(function() does not work perfectly in Content Pages / Telerik Controls

hi my dear friends: The pages on my project are base on master and content pages... I want to do something with javascript(rather than jquery) in one of content pages after ALL OF MASTER AND CONTENT ELEMENTS ARE LOADED COMPLETELY.(for example set focus on a RadComboBox Control) For doing that I used the below code : <asp:Content ID="...

Need help setting text prop of label (in a content page) in jQuery

I have searched already but unable to find an answer that works. I simply want to set the text of a label that is in a content page. Obviously because the control is in a content page it has the modified client id. So I know simply ".labelName" will not work alone because the client id is for example "ctl00_ContentPlaceHolder1_labelName"...

jQuery Processing to iPhone Native?

Is there a way to convert processing apps to native iPhone app's? Alternatively... there's a nice jQuery library for processing, but can that be used with the various cross-platform "develop using HTML/JS, get a native app" conversion? ...

jQuery Slide Toggle help

I have the following code: $("a.sticky-link").click(function (e) { e.preventDefault(); $("div.stickies-box").slideToggle('slow'); $("a.sticky-link").toggleClass("selected"); }); $("div.stickies-box").mouseup(function () { return false }); $(document).mouseup(function (e) { if ($(...

Parse a string containing html using JQuery

Astounded this question didn't show up in the related questions list. There's some similar stuff, but I'd like to know: string s = "<p>Cats</p><div id='fishbiscuits'>myValue</div>"; I want to use JQuery to get myValue. How can I do this? ...

How would I trim the input to a JQuery auto-complete box?

Is there any way to trim (remove leading/trailing spaces) the input entered by a user into a jQuery auto-completing text <input> box before it is matched against the list of names:values? I currently have a textbox in which users are meant to enter names. The names are then matched against a list of name:value pairs by jQuery: <script t...

Is it possible to display a results array in a defined number of columns using only client side scripting?

I have an array of images/links that need to be displayed in columns of 8 for however many rows there are, but I can not control this array. Is it possible to format this using CSS/HTML (or as a last resort Javascript) so that a new row is created after x items is displayed? ...

Javascript to load image from server asynchronously.

Hi, I want to load images from my server to an image gallery. The problem is that after loading the web page my program loads all the images first and then displays them all at the same time. As a result, there is a significant wait for them to load. I would like to display the images one at a time as they load, showing an "busy" ind...

Determining if a Javascript object is a "complex" object or just a string

I want to be able to pass either a string literal, 'this is a string' or a javascript object, {one: 'this', two: 'is', three: 'a', four: 'string' } as argument to a function, and take different actions depending on whether it's a string or an object. How do I determine which is true? To be specific, I want to iterate over the prop...

jquery checkbox css change

Hello, I am very new on jquery, today i tried this following code $("#new").click(function() { $('#new:checked').closest('p').css('color', 'white'); }); this works fine, when i clicked the checkbox, however when i untick the checkbox, it doesn't change back to original color back.. how do i achieve previous state of css after i...