jquery

Weird IE7 Problem

Page located here. In IE7, everything works perfectly until you slect one of the "filters" (e.g. Other). After this, the pop up bubble (span.info) no longer is on top when it is animated to above the image. There is no overflow:hidden on the li or anything like that, and applying a z-index to the span.info made no difference. You can ...

Calculate total width of Children with jQuery

I've tried finding an understandable answer to this, but given up. In order to have dymnamic content (like blog posts and images) in a horizontal website (like on thehorizontalway.com) you must set a fixed width for the BODY in pixles, right? Because you use floated elements inside it that otherwise would break and wrap down the page, d...

Theming elements within a Jquery UI Dialog with CSS... how?

Since the old version was apparently way too hard for people to understand, here's the HTML, CSS, and JavaScript combined: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>test title</t...

URL Bar id=1 Into jQuery ID

i want to get the id from the url bar and insert it into the href $("a[href='send_message.php?act=pm&id=$id']").colorbox({width:"500", height:"350", iframe:true}); ...

finding text in a table with jQuery

I have a table that has rows like this: <tr id="" class="objectRow"> <td class="bulkSelector"><input id="" type="checkbox" value=""/></td> <td class="favorite"></td> <td class="name"><a id="" class="" href="">Ut Urna Nisl</a></td> <td class="description"><p>Nam feugiat tincidunt massa nec venenatis. Mauris egestas consectetur ma...

How is jQuery's data store functionning ?

Hi I recently asked a question related to jquery's datastore. http://stackoverflow.com/questions/999535/how-to-get-from-an-element-all-the-data-set-using-the-data-method I want to better understand the datastore to see if I can fix my problem (data integrity). I understand the idea of a "numerical pointer to a global hashtable" http:...

Are Javascript date/time functions dependent on the client machine?

I was wondering if Javascript date/time functions will always return correct, universal dates/times or whether, Javascript being a client-side language, they are dependent on what the client machine has its date set to. If it is dependent on the client machine, what is the best way to get the correct universal time? ...

Remove a class from all ID's that begin with username-

Hi, I have a bunch of elements that look like <div id="username-2343"></div> I need to loop through all of them on the page and remove a class from them using jQuery. How can I do this? I don't know all the ID's so I need to search for all matching username. ...

Repeated Regex groups

I have a pattern like this that matches multiple sets of values: (((\w+) (\d+))+) I think this would match: one 1 two 2 three 3 four 4 five 5 But because I don't know how many repeats there are I don't know what to put in the output. For instance I need to get the results into something like this: <span class="one">1</span> <span...

Draggable+Sortable & Scrollable Divs

I have a container with a list of draggable items and container with a list of sortable items. The draggables & the sortable list is connected, allowing the user to drag clones of the draggables to the sorted list. The draggable items appear in a vertical list, however the sortable items appear in a horizontal list, achieved by floating...

Are there any drawing plugins for RoR or JQuery?

I am writing a web based application using Ruby on Rails. In one of the forms the users would need to draw something with a mouse and label the object with some text. In short, I need a Simple paint like application on which I can draw with a mouse. Write simple text. Store the painted diagram as a file for future editing. Export...

Extract the Text in a Element with JQuery

I want to extract the Text inside a Element with JQuery <div id="bla"> <span><strong>bla bla bla</strong>I want this text</span> </div> I want only the text "I want this text" without the strong-tag. How can I do that? ...

Prevent Multiple click for single action in jquery !

i have this javascript code : var next = jQuery('#next') ; var prev = jQuery('#prev') ; var Scroller = jQuery('#Scroller') ; var ScrollerTable = Scroller.children('table').width() ; next.click(function(){ console.log('width of scroller table ' + ScrollerTable) ; var offsetLeft = parseInt(Scroller.css("l...

jQuery toggle next two elements

I have a form select element that, when a certain value is selected, will toggle two other elements on the page (a dt / dd pair). The event is triggered correctly, but I can't get the elements to toggle - note I am using class selectors because the number of these element "sets" on the page is variable. Here is my code: $(".lender_id"...

$(document).ready in Ruby partial view

Hopefully this example will illustrate my point better than simply trying to explain it: I'm using one of the many jQuery watermark plugins. To attach a watermark to a textbox, the syntax is: $(document).ready(function(){ $("#item_description").watermark("Description"); }); This works wonderfully if I have a page that already cont...

How to trigger a pop-up window on a button click?

The button is derived from user control. I want to associate a pop-up window on click of that particular butoon. I can able to achieve this on click of anyother buttons on my base page but as that particular button is coming from a user control I am not able to trigger the pop-up window. Need help. $('#btnSendOrder').click(function() {/...

finding elements with text using jQuery

I want to create an array of all the html elements within a div that contain text strings, such as <p>some string</p>. I don't want to get hold of the strings, I want the array items to be the elements (in the example, would be the p node). I do not know before hand what the strings will be, so I can't look for string values to match...

Nested Form Problem in ASP.NET.

I want to show a pop-up on click of a button. The pop-up should have a file upload control. I need to implement upload functionality. The base page has nested forms. Totally three forms nested inside. If I comment the two forms then I can able to get the posted file from Request Object. But I was not suppose to comment the other two for...

How to dynamically reconfigure Drupal's jQuery-based autocomplete at runtime?

Drupal has a very well-architected, jQuery-based autocomplete.js. Usually, you don't have to bother with it, since it's configuration and execution is handled by the Drupal form API. Now, I need a way to reconfigure it at runtime (with JavaScript, that is). I have a standard drop down select box with a text field next to it, and dependi...

how to display 'loading' before content from jquery tabs is loaded

I am using jquery UI tabs and content loaded into the tab is on another page. so it is loading via ajax. There is some lag between the page loading during which the part of the screen where tab content will load is completley empty. Is there a way I can show some message like 'loading....' until the content loads? My code is: <script...