jquery

Jquery - replace text in Val()

Hey, I'm trying to replace parts of a Val() in jquery with some text but am not sure how to do this. $(this).val() returns "# number of...." - I would like to replace # with custom text, but Val doesn't seem to have a replace() function. I'm quite new to JQuery, so I might be missing something obvious. Thanks for any help ...

$.ajax and ashx page

Hi All, I am using the following code to store values in aspx session. Code: $("div.menu_body a").click(function() { var linkHeaderID = $(this).parent().attr("id"); $.ajax({ type: "GET", url: "SessionHandler.ashx", data: "headerLink=" + linkHeaderID + "&link=" + this.id...

fcbkcomplete, how to obtain all the values after adding or updating the Input

I'm interested in using fcbkcomplete, which has: onselect fire event on item select. onremove fire event on item remove What I'd like to happen for those two events is to alert a list of the IDs/values of the items in the input box. Can you help me understand how to get these values? Thanks ...

all input field validation through Jquery in single line

i have a form in which have 30 input box and 10 text area field and all are mandatory fields. How do i apply a validation through jQuery / javascript together for all input field that it can't be blank/empty/NULL. i don't want to use each time each input box's ID and create a separate validation for each input box and text area if an...

[jquery] show loading.. image when processing onclick event

A button click event triggers filtering on a data table. While JQuery is processing that , the page should display a loading image.This is not an ajax request. This is my code that doesn't work : $("somebutton").click(function(){ $("#loader").show(); // do some stuff..... //... // now hide the loader again $("#loader").hide(...

jquery modal window

Hi , Is there a jquery modal window which on on click on the background doesnt closeup. Thanks. ...

How to submit a form using jQuery in ASP.NET MVC 2?

I want to submit a form like this: <input type="button" onclick="$('#form1').submit();" value="Create" /> but the ASP.NET MVC 2 Model Validation doesn't work. ...

jquery scroll function not working on elements wrapping other elements

$(document).ready(function(){ var randomId = "id_"+Math.floor(Math.random()*1000); var wrap1 = $(document.createElement('div')).css('overflow', 'auto') .width(50).height(30).css('border','1px solid black').text('a') .attr('id',randomId); var content1 = $(document.createElement('div')).width(100) .text...

Jquery and Extjs Simplest Tutorial

I want link to tutorial for JQuery and ExtJs which will cover following contents or Topics Note: PLease do not provide me link of their sites i know them. How to setup both of the packages. It is required as its essential. How to access a DIV element How to get all the elements in a div like checkboxes, radio buttons, div etc H...

What are good jQuery plugins to highlight code and XML content?

I have a couple of web-pages where I write out some code c#, and some XML. I'd like to find a way to highlight the syntax of the different content to make it easier to read - very much like here on Stackoverflow? I already use a bit of jQuery so something that plugs into that would be a nice fit. ...

problem with jQuery and MicrosoftAjax

<form action="#" id = "form1"> <input type="submit" value="submit" /> </form> <input type="button" onclick="$('#form1').submit();" value="submit2" /> <script type="text/javascript"> Sys.UI.DomEvent.addHandler( document.getElementById("form1"), 'submit', function() { alert("abc"); return false; } ...

jQuery loading images with complete callback

I saw a comment on Ben Nadel's blog where Stephen Rushing posted a loader, but I can't figure out how I can pass the selectors and parameter.. I think I also need a completeCallback & errorCallback functions? function imgLoad(img, completeCallback, errorCallback) { if (img != null && completeCallback != null) { var loadWatch...

Are non-cached js-scripts attached to the main file on ajax-get request?

Hi there, I'm using the following script to request new content to a file called index.html: function addJS(js_urls) { $.each(js_urls, function(index, value) { $.ajax({ type: 'GET', async: 'false', //We should not cache dynamic js-scripts dataType: 'script', url: value }) }) } fun...

The different between submit and click

Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here! if (num) { event.preventDefault(); }; }); if there're 5 required textbox is empty,then when click the submit button[ID:button1], ...

JSON JQuery Flickr

I have this JQuery expression $.getJSON("http://api.flickr.com/services/feeds/photoset.gne?set=72157607523855079&amp;nsid=9298216@N08&amp;lang=en-us&amp;format=json&amp;jsoncallback=?", function(data){ $.each(data.items, function(i,item) { $("<img/>").attr("src", item.media.m).appendTo("#images").wrap("<a href='" + item.link + "'...

I want to add new columns by clicking a button in jqGrid.

I want to add new column on a button click in jqGrid. Following is the code that i am using to define a grid. can someone help me, how to define new columns with position. jQuery("#list").jqGrid({ datatype: "local", height: 250, colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel:[ {name:'i...

Does empty clear data from elem in jquery

//html structure <div id='outer'> <div id='inner'> </div> </div> I am adding some data to inner element like $('#inner').data('_key','_someValue'); Now some time in future, I am clearing text of outer element. $('#outer').empty().html('some thing new'); I am clearing div's text using empty(), I read that emp...

Display an image in a <div>, jQuery

Hello, The value of ig is being transfered fine, but I need to put this image into an image, please tell me what I am doing wrong. var ig = '<img src='+$(this).attr('src')+' style="z-index:1">'; $('#big').val(this) Thanks Jean ...

Trouble with jQuery's JSON Method

$(function(){ $.getJSON('http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&amp;user=ElicitBelief&amp;api_key=25135a535781328243f9e31968abc14&amp;format=json', function(data) { alert(data) }); }); Firebug says: GET http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&amp;user=ElicitBelief&amp...

How to explode jquery tabs into the whole page

I have a page that looks something like this: +-------------------------------------------+ | | | +----------------------------+ +--------+ | | |main | |sidebar | | | | | |+------+| | | | | ||jquery|| | | | ...