jquery

Triggering :hover on second element when hovering on first

I've got this test page going on: http://joshuacody.net/qworky/ Warning: Tons of CSS3. This will only look right in Safari or Chrome. Firefox will be tolerable. All else will be lost. Essentially, when I hover on someone's name, I'd like it to trigger the hover state on their image as well. It's working now, but I feel the solution is ...

how to get all fonts using jquery?

Can you please tell me how to get all fonts using jquery? ...

Javascript to compare page you are on with a link

Hi folks, i have a menu, and i need the link for the current page i am on to be highlighted differently. I do a really twisted way of comparing strings now, but i am sure there is a smarter way? jQuery(document).ready (function(){ jQuery(".filteroptions .option").each (function (index,ele) { link=jQuer...

Javascript Memory Usage

In the following code: $(document).ready(function() { var content = ""; for (var i = 0; i < 1000; i++) { content += "<div>Testing...</div>"; } $("#Load").click(function() { $("#MyDiv").empty(); $("#MyDiv").append(content); return false; }); }); Load is a simple link and MyDiv is a s...

Best Approach to responding to jQuery Events in Ruby on Rails

I'm using jQuery to create an inline calendar with my Rails application. To respond to date selections jQuery calls a function in Javascript. In my application, I'm wanting to query the database with the date selected and then update data onscreen based upon the results from the query. What is the best practice to call a method from the...

How to add tooltip to a drop down/combobox?

I have to implement the tooltip feature for drop down. Also, tooltip will not be any static text, it should be the selected value of drop down. How can i do this in jQuery? ...

Querying an "in page" table with jQuery

I have loaded a table of data into an HTML page so that it looks like this: <div id="objList" style="display:none"> <div class="objRecord"> <div class="objID">6846</div> <div class="objColor">blue</div> <div class="objSize">500</div> <div class="objType">Q</div> </div> ... <div class="objR...

GalleryView - filmstrip navigation w/o changing a picture in a panel

How to navigate thru GalleryView filmstrip without changing a picture in a panel? I can not find a property for this. GalleryView is pretty popular so I hope, someone will know how to do it simple. It is always possibility to change the gallery code, but I hope there is better solution. Some flag maybe? Currently I have the following s...

How do I send an AJAX request on a different port with jQuery?

I need to send an AJAX request to, for example, port 8080 where a daemon is running there. ...

jquery POST selector issue

$("#submit_js").click(function() { $.post( "user_submit.php", {score: $('input[name=vote]:checked').val() }, function(data){ $("#ques"+qn).hide(); ++qn; $("#ques"+qn).show(); }); }); the above jquery function posts some value to the user_submit.php file. wha...

jQuery submit is not catching submit event after ajax loading of content

I load content to my popup with jQuery Ajax load function and I use submit function in load functions callback function, but for some reason event is not fired at all. (I use jQuery jquery-1.3.2.min.js) $('.popup-container').load(url, function(){ /** Do some stuff here */ $("form").submit(function() { alert("Form submi...

which approach is more correct to get element in document with focus ?

I have went through couple of questions already asked related with this and i have found two common approach. 1. Have global element and update it by attaching onFocus() event to each of the element. 2. document.activeElement and have following code to update the element in case of old browser which do not support the property var foc...

Jquery Validation Plugins in conjunction with server side fallbacks

I like the look of some of the Jquery validation plugins as opposed to the ASP.NET validation controls. However, one big benefit of the ASP.NET validators is they automatically work on the server side too. Hence saving time and saving validation getting missed when work is maintained. I am wondering if anyone has come across any tool/p...

jQuery click function and slideToggle problem, help please?

Howdy folks, My problem is that when a user clicks on the <h4> it opens the hidden <div> below it. That's great - works as expected. However when a user clicks back on the same <h4> - it closes the <div> and reopens it instantly. I need the <div> to stay closed. I also need the remaining functionality to stay in place. This is my jQ...

jquery: disable submit button in a form and enable it onChange of any element on the form

I need to disable the disable the submit button on my form and to enable if the onchange event occurs for any other input on the form so basically I need to: disable the submit button add a method that enbales the submit button to the onchange event for all the other inputs on the form anybody knows how to do this ? (especially the ...

jQuery for a beginner Web Designer

What arguments can I use to encourage a beginner Web Designer that jQuery library is worth learning and using? For someone that is proficient in HTML and CSS, with some PHP expertise but with little JavaScript, jQuery appears like a huge risk and a maintenance nightmare. Presentation articles like these ones published by “Smashing Magaz...

delete row table using jqeury

Supposed I have table like this id name address action -------------------------------------- s1 n1 a1 delete s2 n2 a2 delete delete is a link for example <a href="http://localhost/student/delete/1"&gt;. In the real case I delete the student using ajax. In order to simplify the code, I just alert the link and omi...

How to remove Jquery Validation Error Messages on click of Clear Button

Hi, Edit User and Clear User are separate buttons. Then how will Clear the error message on click of Clear Button using following statement validator.resetForm(); ? function clearUser(){ // Need to clear previous errors here } function editUser(){ var validator = $("#editUserForm").validate({ rules: {...

Popup browser incompability

I have a popup with drop down menus on it. I've scaled it down and simplified it for test purposes, but it still doesn't work the way I want/it should. <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> jQuery(document).ready...

jQuery CSS selector question

Whats wrong with this CSS selector i'm using in jQuery? Trying to select all tr's within a table of ID "itable" without a class of "mod" where its possible for multiple classes to be on each tr. if($('#itable tr:not[class~=mod]').length == 0){ //something } ...