jquery

What is a neat way to vertically decrease opacity in a group of paragraphs of text in HTML

I am writing an application in rails. I have multiple paragraphs of dynamic text which are listed vertically. I am looking at neat way through javascript or CSS to vertically increase opacity of the group of paragraphs so the body of text has the appearance if disappearing as you go down the page. <p>Some text obviously more than i am...

regexp that selects only the capital letter from another regexp

I have this type of text: !D este caro 1 C este descgiderea C1 este alta deschidere Deschiderea de 1C este cu 2C 2D 3 D 1NT 2D 123456P This easy regexp: /([0-9][CDHS])/g selects "1C","2C","2D","2D" (a digit immediately followed by [CDHS], anywhere in the text) . What I want is to select only the letter from the sequences above...

jquery grab Google Maps API elements

Hi, I'm trying to get all of the links in my marker's InfoWindow to have a different behavior but I'm not able to grab them with jquery. When are they actually rendered to the dom? I'm currently calling them the $(document).ready(function(){ function. I also tried calling them directly after I create the markers. createMarkers...

Jquery event .live not working on 1.4.2?

It looks like .live() not working on version 1.4.2 anymore. Is it true? ...

Will the Sharp Architecture ModelBinder properly constitute an object using a jQuery ajax request?

Do you know if it's possible to make an AJAX request and have the model binder properly constitute an object based on the parameter provided? For example: $.ajax({ type: 'POST', url: '../Create', data: ( { 'SkillTypeRequest.Id': 0, 'SkillTypeRequest.Event.Id': eventId, 'SkillTyp...

Javascript progress animation

Hi, I am trying to build a progress bar using jQuery and javascript. It is basically a bar <div id="progressbar"><div id="progress"></div> <div id="number">0%</div> when you click on the next button (which isnt here) it changes the width of the progress div and using css3 it animates it nicely, but my problem here is the number. I ha...

Jquery - three select lists, deactivate the other two if one is value is selected

I have three drop down select lists, when a value from one of the list is selected, I want the other two to be greyed out and inactive. I have id wrappers around each select list that I'm experimenting on, but as I am new with jquery I'm not getting very far. ...

Cross Browser Selection Range Library?

Does any one know of any cross browser user selection range libraries written in javascript? I have a found a few jquery plugins, (which quite frankly are too limiting and very buggy). I have already implemented and am using the following to pull off some of my tricks: http://plugins.jquery.com/project/wrapSelection http://perplexed.co...

jquery resetting and setting variables

Hi. I'm trying to create slidingUp divs with variable 'top' heights, so that one div may slideUp 700px, while another (with less content) slidesUp only 400px. Currently, the divs all slideUp at the same height. There are no div height declarations in the css. My script: $(document).ready(function(){ var oldHeight;...

Family tree design suggestions?

I would like to design a family tree on my website. How can this be done with jQuery or Ajax? Any animated examples out there? ...

Jquery.tabs changes browser history (effect not wanted)

Hello, i'm working with the jquery ui plug in "tabs" for a client, and everything works ok, but i'm getting an undesirable effect regarding my browser history. see, every time a user clicks on one tab, a new browser history is created, which means that if the user clicks on back, he sees himself in the very same page. I'm not trying to...

<style type="text/css" media="print"> and jQuery?

Hi, I have a site where the HTML is just a mess (generated by SharePoint designer). I need to print the the page, but it looks like crap in IE7/8 print preview, so I need to use <style type="text/css" media="print"> to alter some tables, divs etc, but a lot of the elements have no class or ID. Is there a way to use the print stylesheet...

Submitting values of "jQuery Editable Invoice" into a MySQL DB using PHP

Hello Everyone, I am using this fantastic example of a jQuery editable invoice as a template for creating dynamic invoices for my users. It's working quite well and I am successfully generating the items but I now need to save the values entered into the various text fields and enter them into the MySQL database. I am confident in doi...

jQuery on Google site

I'm trying to get the response text of www.google.com/movies using jQuery. I have tried from $.load to $.get, $.ajax, etc... Anybody can tell me if this is possible? Some of my failed attempts: $(document).ajaxError(function () { alert('ajax error'); }); $(document).load("http://www.google.com/movies?near=joinville,Santa+Catarina...

How to calculate the XPath position of an element using Javascript?

Let's say I have a large HTML file with different kinds of tags, similar to the StackOverflow one you're looking at right now. Now let's say you click an element on the page, what would the Javascript function look like that calculates the most basic XPath that refers to that specific element? I know there are an infinite ways of refer...

jquery table select and data retrieval

I am using a html table that contains available times for scheduling. I want the user to be able to click on a time and from that be able to get the column header, which is the staff persons name, and the value of the cell - the time. I than want to change the contents of the cell to 'NA' and set the cell background to some color. I h...

Conditionally showing an element in jQuery

I want to make a div visible if there is an element on the page. For example: If ('#some_div') is on the page, I want to do a ('#another_div').show(); What's the syntax to make this happen? ...

JQuery UI - external websites in Tabs

Hi, i've got a (probably very simple) problem with jquery. I'm running a Java Servlet webproject in a local tomcat server and I try to become acquainted with jquery, especially jquery tabs. Basically i will load an external websites into tabs and found a demo code as follows: (head) <link type="text/css" href="css/jquery.css" rel="style...

Help with jQuery selection.

I figured enough jQuery to select this chunk out of a huge HTML document. I want to select the value of subject, body, and date_or_offset. (these are name attributes as shown below). How do I go about this. Assuming this print is from alert($(this).html()) inside a call back function. <p><label for="first">Subject</label> <br> <...

I have a huge set of elements and jQuery's each() function is killing my browser - How can I improve my code?

I'm using two plugins I wrote to find all the radio/checkbox inputs and select boxes in a form and them style them. I now have a large form which a lot of checkboxes and Firefox is hanging as my plugin tries to style each of them. Here's the plugin code: (function($) { $.fn.stylecheck = function(options) { /* Para...