jquery

ie problems with jquery - xhr.open(type,s.url,s.async)

one web page all works in FF (and Safari), but IE throws an error on debug on line of jquery xhr.open(type,s.url,s.async) ...

copying contents of an element

I have a textbox. On a button click, I want to copy all the contents of the textbox. Is that possible? UpDate: I want to copy to the clipboard ...

Calling a function dynamically

Hello, My jQuery function is something like: $.a.b.c(); Now I am trying to call it dynamically: var temp = b; $.a.temp.c(); But obviously its not working. How do I get this to work. Please feel free to edit the question title, as am not sure how to really phrase the question. ...

Access to XMLHttpRequest.statusText will cause exception when it fails?

$.ajax(error:function(XMLHttpRequest, textStatus, errorThrown) { XMLHttpRequest.statusText }) Did someone also met this problem? EDIT I'm using Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2 ...

Assigning variable with jQuery problem

I'm trying to use jQuery to combine the user's select field choices (category + contributors) and insert this into a hidden field with an id of as_q, but when I run the script the value of as_q is always empty. At the moment, I call the function when the user clicks submit - it gets the value of the two select fields and combines them,...

jQuery function not returning

Hello, (function($){ $.a.b = { title: "ABC", init: function (id) { /* do something here */ return id+'a'; } }; })(jQuery); When I try to call $.a.b.init('t'); it does not work, I mean it does not return as expected. Any suggestions? The problem is not tha...

What are the performance implications of adding all JQuery code to application.js in a Rails project

I'm running a fairly large web application which contains an increasing amount of JQuery code for both UI polish and making AJAX requests. Larger chunks of code live in their own, dedicated .js file, but there are an increasing number of pages (primarily forms) which use a small sprinkling of JQuery for showing/hiding form elements, mod...

Facebook application development - which option, and may I use jQuery?

I have read the documentations at Facebook. I have browsed through books on Facebook development and I am reeling from the options, restrictions. There is MockAjax, FBML, FBJavascript and the PHP API. And then there is an option of launching the application from inner frame. I guess there are 2 questions. When do you use the FB options,...

Need help building a jQuery dropdown menu

Hi folks I'm just starting out with jQuery. I want to make a simple 'ul' dropdown menu to improve my understanding. The basic flow is this: 'ul.menu li ul' has display:none >> on hover of li, get & store height of 'this' ul >> set height of 'this' ul to 0 >> set display to block >> animate height to original stored height I know there...

Ajax Links and jquery

Going with the just jquery it joke i was wondering in my website i have a link that says "Add". After clicking it the page refreshes and it says remove. I figure this would be better with ajax and not require the page to reload. How do i do this with jquery (should i do it in jquery?) and how do i know when the server receives the add so...

How to catch the second select on <select > with jQuery?

The first click expands the <option>, the second click select one of them. How to catch the second click? ...

Hide DIV when empty

I have some server side HTML output I cannot deal with using pure CSS, essentially the DIV sometimes holds: <div><span>Content</span></div> or <div><p>Content</p></div> or <div>Content</div> or <div> </div> When the DIV == <div> </div> I want to remove it. Any ideas? ...

How to catch check/uncheck event of <input type="checkbox" /> with jQuery?

The title should be clear ...

Hide next <div> if previous <div> exists

What am i doing wrong? $('function') { $('#page #Description:has(.next('.subdescription'))').css('display', 'none'); }); where HTML is: <div id="page"> <div id="description"> </div> <div class="subdescription">Content</div> </div> Might be over thinking the solution? ...

jquery ui datepicker doesn't disappear in IE7 after selection

Hi all! Got the jQuery UI datepicker plugin working wonderfully, however, when using IE7, the calendar doesn't fade away after you make a selection like it does in FF, Safari, etc. Here's the URL http://www.mchenry.edu/insideApp/OIRPprojectrequest/oirpprojectrequestform.aspx I hope it's something silly, 'cuz IE7 is the only browser I...

Retreive a HTML elements id using jQuery

Is it possible to obtain the id of an element (div, input etc) using jQuery and how? ...

jQuery: wait for function to complete to continue processing?

Hey all. I have, what appears to be, a trivial problem. I have the following JavaScript: $(function() { var r = GetResults(); for(var i = 0; i < r.length; i++) { // Do stuff with r } }); function GetResults() { $.getJSON("/controller/method/", null, function(data) { return data; }); } Due to the fa...

Using jquery how do you auto fill commas in numeric form inputs?

Hello guys, I'm new to jquery and can't seem to figure out how to do this. Basically, when typing a large number into a form text field, I would like the commas to automatically be put in the field for the user without them having to type them in themselves. Could anyone help me figure this out? Thanks. ...

Jquery Cycle with thumb pager issue

Hi, I'm trying to create a slideshow with the jquery cycle plugin. I'm trying to have it so that thumbs for the slide show are auto generated from the main images. I am also trying to have the ability to show both images that link out to other sections, and some that do not. So far, the thumbs break when I add a link to a main image. he...

SWFAddress and Thickbox (or JQuery?) Not Playing Nice in IE6/7

I have a simple little lightbox form, activated by a link in my footer, implemented by the jQuery Thickbox plug-in (v3.1). It works fine in Chrome, Firefox and IE8. But in IE6 and IE7, the lightbox works only intermittently. In most cases, a new window is opened instead. This is not cool. The thing is, if I remove the reference on that ...