jquery

What does /.*=/ mean in jquery/javascript?

What does /.*=/ mean in the following jquery? var id=this.href.replace(/.*=/,''); this.id='delete_link_'+id; ...

jQuery Hover - UnHover not functioning.

I've looked through the other related posts to my question already over the past hour or so and tried out various fixes for them, but it still doesn't work, so here it goes: I have a website, located at www.rooms101.com my client wants me to add a page-peel effect, so I am using an example from http://www.sohtanaka.com/web-design/simple...

How to get the last segment with regular expression?

I have the following url. http://127.0.0.1/ci/index.php/admin/menus/edit/24 I want to get 24 from this to use in jquery/javascript. Something like this. var id=this.href.replace(/.*=/,''); this.id='delete_link_'+id; Could anyone tell me how to code this? ...

if i m new to jquery? then what is the best way to begin with?

if i m new to jquery? then what is the best way to begin with? ...

jQuery, JSON: Javascript obj/array to json for use with jQuery.ajax.

Hi All, This is a similar question to this one: http://stackoverflow.com/questions/713884/convert-js-array-to-json-object-for-use-with-jquery-ajax Except that I have an object that has several arrays in it. Object looks like (simulated): {"Users":[1,2,3,4], "Clients":[5,6,7,8], "CompletionStatus":"pastdue", "DateRange":"thisweek"} ...

jquery png fix on hidden div and jquerybrowser question

Hello, I have some code that if Javascript is available, it will remove a GIF image and replace it with a PNG image. The PNG is display:none and the GIF is visible. Since IE6- browsers can't load PNG, I have loaded the jquery PNG fix. But it only seems to work if the image is already visible. The other issue is I am trying to get th...

jquery tab load with dynamic href's

I'm not sure if this has already been answered, but here goes I have 4 tabs, two of which I load through controller calls; the remainder I'd like to vary the hrefs of and load automatically/on demand. My problem is that even assigning a fixed href like "www.google.com" is not doing the job of displaying the remote page; and the two tab...

php & jquery: progressive enchancement

I have several php pages that have forms used to submit data. My typical setup is to have the page post to itself so that I can validate the input and if necessary reload the page with the user submitted data (and markup to show where the error is). If everything is OK I redirect to a thank you page. I would like to start using ajax (j...

jQuery Scroll to bottom of page/iframe

How do I use jquery to scroll right down to the bottom of an iframe or page? ...

jquery sortable items question

Given the following structure, can the div which contains the sortable list be sorted? I ask because with the latest jquery 1.3 version it won't allow sorting of the divs. Is there any limitation with jQuery where it can't sort parent elements which contain an already sortable list, or is it because the parent is a div and not an LI elem...

How does facebook detect when a link as been PASTED

Facebook's status update input (well, contenteditable div) detects links. When typing a link it waits until the spacebar is pressed before fetching the URL. When pasting a link it fetches the URL instantly. I can already parse the url after the spacebar is pressed...but I'm not sure about detecting when content is pasted. Any solutio...

jquery traversing problem, insert text

I have a quite easy jquery question that I can't get right, when clicking on a link I need to insert some text in the right p (the table row before). This is the html: <table> <tr> <td> <p class='MyClass'>NOT HERE</p> </td> </tr> <tr> <td> <p class='MyClass'>NOT HERE</p> </td> </tr> . . //Many table ro...

jQuery changing the value of a hidden field

function areaMe(area){ var barea = $('#barea').val(); if(barea.indexOf(area)!=-1){ barea=barea.replace(area, ""); // remove }else{ barea+=area; // inlcui } $('#barea').val(barea); } It doesn't work if the #barea input is hidden... ...

Display the 'right' style of a div with JQuery

I'm trying to display the "right" value of a div named "slider", displaying it inside of "span.display_value" var rightStyleValue = $('div.slider').css('right'); alert(rightStyleValue); $('.display_value').html(rightStyleValue); UPDATE: Html is posted below. I'm using a drag and drop script to drag a div called "slider" that...

jQuery - select children on the same level (odd or even)

hi there, is there a way to replace following CSS with jQuery? .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body { background: #fff } .quote-body .quote-body .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body .quote-body .quote-body { background: #fff } ... and so on ...

How to iterate a table rows with JQuery and access some cell values?

<table class="checkout itemsOverview"> <tr class="item"> <td>GR-10 Senderos</td> <td><span class="value">15.00</span> €</td> <td><input type="text" value="1" maxlength="2" class="quantity" /></td> </tr> <tr class="item"> <td>GR-10 Senderos<br/>GR-66 Camino de la Hermandad<br/>GR 88 Senderos del...

how can i get cursor position in a textarea?

hi there, how can i get cursor position in a textarea using jQuery? thanks ...

Rails date/time picker (hopefully jquery)

Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried the unobtrusive date picker plugin but it breaks with the latest release of Rails. calendar date select plugin uses prototype which I have removed from my app and don't want to ad...

jCarousel plugin - when set to auto it halts after each advance

I am using the jCarousel plugin from http://sorgalla.com/jcarousel/ I have the carousel automatically scrolling through the images. I want to drop the little pause before each scroll animation - can anybody give me an idea where or how to get rid of that in the plugin ALTERNATIVELY Is there maybe a better plugin to do a continuing flo...

jquery - add values from one listbox to another, but do not include blank lines?

I have some jQuery code that copies the selected values from one listbox to another: $(adPerson + " option:selected").each(function(){ $(toNames).append($(this).clone()); }); I'm trying to make sure no blank lines are added to the destination listbox, so I tried this: $(adPerson + " option:selected").each(function(){ if...