jquery

jquery form validate not allow space for username field?

I have used http://bassistance.de/jquery-plugins/jquery-plugin-validation/ my form validate : $("#form_person").validate({ rules: { username: { required: true, minlength: 2, maxlength:15 }, password: { required: true, minlength: 2 }, ...

jquery ajax calls with scope safety

My gut tells me that if i am on a laggy server and the user fires two events fast enough on the success function c will be the value of the most recent event causing func1 to use the wrong value. <--- This is a guess, i haven't proved it. Its a feeling. How do i ensure that i use the right value when calling func1? I prefer not to send ...

Synchronous calls with jquery

Hello Guys, Can i make use of jquery ajax API and make a synchronous calls? Best Regards, Keshav ...

jquery mouseover animation jumping

Hi all, I have a table which is looped in <li>. On mouseover each row, there will be a border shown, and the row id="resFunc" will be displayed. However, in IE, the animation jumps up and down. Anyone has similar experience or solution to solve this? Thanks in advance! <div id="resDetails" align="left"> <table width="400px"...

jQuery tabs - multiple sets on on page

This is kind of a follow on from a previous question I posted but I've not been able to get it to work.. I'm trying to use multiple sets of tabs (jQuery) on one page. This is the code I had for one set of tabs which works great: $('div.tabs div.tab').hide(); $('div.tabs div:first').show(); $('div.tabs ul.htabs li:first a').addClass('c...

Get Xml Data Cross-Domain with JQuery

Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)? $.get('http://otherdomain.com/data.xml', function(xml) { } The above doesn't work - do I have to rely on JSONP, or is there a way to load XML? ...

How to hide all children of a container except a specific one using jQuery?

<div id="container"> <div id="specific_one">..</div> ... </div> I want to hide all children of #container except #specific_one, how to do that? ...

Application in which I need Auto-update just like Gmail inbox,calendar Face-Book etc

I have made application in which I have kept calendar,now I need that if admin changes his calendar and if it is affected to user and if that user is currently looking that calendar then whatever changes Admin has done that should reflect to user without refreshing the page, just like when email comes to Gmail then without refreshing we ...

Jquery Automatic Image Slider w/ CSS & jQuery

This is Automatic Image Slider w/ CSS & jQuery by Soh Tanaka I am trying to customize it to show .desc when the mouse hover overs the slider but it does not seem to work any help? //Set Default State of each portfolio piece $(".paging").show(); $(".paging a:first").addClass("active"); //Get size of images, how many there are, then dete...

How to give focus to an iFrame in firefox just page is loaded?

How to give focus to an iFrame in firefox just page is loaded? FYI: I tried focus() javascript & jQuery functions to do this, works properly for XP, but doesn't work for Windows 7? Also, how does foucs() functionality differs from platform to another one? ...

how to empty() live ajax?

i have $("#sendbid").live("click", function() { //here will be the ajax //after success: $("#personaltab").empty(); }) the personaltab is in the original code. the content is created on ajax and then when the user continue i want to check with live and empty the div not working - i have tried it all!!! ...

JQuery updating label

Hi, I have 2 textboxes and a label on my page. The 2 textboxes will contain numeric values. The label text will be the product of the 2 textbox values. Is there a way to do this using JQuery so that the value can get updated when I edit the textboxes without having to do a postback? Also the textboxes may contain values with commas in ...

How can I make jQuery select an element in the style of CSS?

<div id="id" class="div-style"><img id="id" class="img-style"></div> I would like to use the id attribute as a way for jQuery to select the element, and the class attribute for CSS to style it. My guess for jQuery selector ran thusly: $("#id .div-class") and $("#id .img-class") This returns the error "Selector expected" ...

jquery - How to reference two div elements for a single function?

I Have a function that references a specific input text box. I would like to extend the function to be used by two specific input text boxes. Rather than duplicate the code for the other text box, can anyone advise on how to reference the other? Here it uses #Tags, but if i wanted it to reference #Tags2 also, how could I do that? $(...

Json Convert To and From Query String with jquery?

I have a string like a=6&id=99 (i might store it in html as 'a=6&id=99' however thats not what js will see). I would like to convert that string into an object so i can do func(o.a); or o.id=44; How do i do that? Part 2: How do i convert that object back to a query string? it would probably be trivial code that i can write. ...

jquery populate multi-checkbox from xml file

I have to populate a multi checkbox in a form from data taken from an XML file from a post function with jquery? <input type="checkbox" name="mercato[]" id="mkt_0" value="A">A<input type="checkbox" name="mercato[]" id="mkt_1" value="B">B Thanks in advance. ciao h ...

jQuery click function is not working on data returned from ajax

Hi all, I am working on a feature like status message update.. the user can update is status message without page refresh and the new message will be displayed once the user clicks the button and the other users can comment on the status message. The problem I am facing is, when the user submits the data, the new status message will be d...

javascript search and replace prefix zero

Hi , i have few numbers like 0011,0101,0123,1234,5245,0052,3265,0047,0124 How replace prefix zero only, like no number should start with zero , exactly like 0011 should be 11 , 0101 should be 101 , 0123 should be 123 How to do this ? Is ther any javascript function there , Thanks ...

Simplifying Jquery code HELP!

I am trying to load two modal dialog boxes with Jquery. Both of them load separate pages using ajax. The only problem is that only one of them works. I think I need to simplify my code but am unsure how. <script type="text/javascript"> $(document).ready(function(){ var dialogOpts = { modal: true, bgiframe: true, a...

Jquery and PHP rating function problem

I know that I was already posted similar question but I just can't find the answer and figure it out how to solve this problem. I'm trying to customize Jquery Star Rating plugin (link text) but I do not know what to do to show the message based on response of PHP script. Jquery script successfully send rating data to PHP scripts that ...