jquery

Making table with resizable columns and selectable rows with jQuery UI

NOTE: My original question was whether I should use <div>s or <table>s for this task. I have found an answer myself: <div>s are more than twice as slower on Firefox and Chrome if you have ~2000 rows. So you must use <table>s for this. I decided to reedit my question to show how to do it (table with resizable columns and selectable rows u...

How to scroll images vertically continuously using jquery

I am looking for something similar to this http://maaki.com/thomas/SmoothDivScroll/clickableLogoParade.htm The current one is left to right. But I need to scroll vertically ie bottom to top. Can any one help me plz ...

Issue with jQuery form plugin

hi, I'm using the jQuery form plugin to call a function before submitting the form. This function call google geocoder service, that finds the coordinates of an address, and set the value of a hidden coordinates field in the form. It seems that the form is submitted before the beforeSubmit callback finishes. Is that normal? Isn't the fo...

Horizontal Navbar (jQuery)

I'd like to create a very simple horizontal navbar based on the following HTML: <div id="nav"> <ol class="clear"> <li><a href="#">Parent 1</a></li> <li><a href="#">Parent 2</a> <ul class="clear"> <li><a href="#">Child 1</a></li> <li><a href="#">Child 2</a></li> ...

jquery load a selector contained in a variable

Hello, Can anyone help me with the right syntax to load some div, please I try'd to concat it in several ways, except the right way rcp= "#div02"; $("#content").load("/inc/forms.php " +rcp'"', function(){.... I will keep trying in the meantime EDIT AND ACCIDENTLY GOT IT RIGHT (not completely yet) $("#content").load("/inc/forms.p...

jquery nav, css positioning

Hi, hate even asking what will no doubt be a very easy question but I can't see whats wrong. trying to get my sub nav to fly out "upwards" instead of "downwards". downwards works perfect. I tried adding left and bottom values, and in dreamweaver my nav bar looks right, but when I run it, it all goes wrong <!DOCTYPE html PUBLIC "-//W3C...

Reset form and clear cache after submit

Most browsers cache form values, so when the user navigates to another page and then presses the back button doesn't have to start over again. With the jquery form plugin this also happens after the form has been submitted successfully. The following scenario: user submits form message is shown that submission was successful and for...

How to: Expandible nested list?

Hi... great community :) I have category list which have nested child category list, which is hidden. My problem is that parent categories have link to page, and I want to add "+" sign next to them so if You click on "+" child list will be expanded, "+" will be replaced with "-" (for closing), and if You click on category name, You wil...

Opera 10, jquery with regex replace

Hi all. I have a jquery plugin that is working on all browsers, except opera. The removeHighlight function gets triggered, but the html is not changed. As far as I can see IE, FF, Chrome and Safari work as expected. My example can be found here: http://www.pritaeas.net/public/jquery/plugin-dev/ The plugin's url is: http://www.pritaeas....

How to auto-scroll div content vertically continuously

I need to scroll the div which contains images, vertically. Any help or references will be highly appreciated. ...

How do I load content in JQuery Accordion via AJAX

I have a jquery accordion that loads a lot of data. This accordion is generated by querying a database. My question - is there a way to not load the content until a specific element of the accordion has been clicked? Basically, I'd like to replicate the functionality of the jquery tab ajax content load to the accordion. ...

JTemplate template missed elements.

I have this template: <ul id="warningMessages" style="text-align: left; padding-left: 4px;"> {#foreach $T as msg} <li>{$T.msg.Value}</li> {#/for} </ul> When applied look like this: <ul> <li>Value 1</li> <li>Value 2</li> </ul> The style and id information ("id="warningMessages" style="text-align: left; paddin...

jQuery : Attaching mouseup event to all textnodes of a container

I want to attach a "mouseup" event on all nodes of a container, including text nodes using jQuery. How do I do that? Update: If I had some HTML fragment like this: <p>Some text node <strong>strong text</strong> another text node.</p> Currently, $("p *") will apply the event to the <p> and <strong> but not to the 2 textnodes within <...

Code doesn't work without .show() - jQuery

this.randomtip = function(){ var length = $("#showcase ul li").length; var ran = Math.floor(Math.random()*length) + 1; $("#showcase ul li:nth-child(" + ran + ")").show(); }; randomtip(); ..the code above works well with .show() in the end, but if I change it to .addClass('show') it won't work. I'd like to g...

Writing Content Between Firefox Tabs

I am trying to write some values that I extract from a page (via JS/JQuery) opened in a tab in Firefox, to another opened page in a different tab within Firefox. Is this possible? Basically, I am trying to write some values I extract to a Google document that I have open in a different tab. I can see the "document" value in the DOM fo...

Merging jQuery objects

Is it possible to merge several jQuery DOM objects into one array and call jQuery methods on all of them? F.ex: <button>one</button> <h3>two</h3> <script> var btn = $('button'); var h3 = $('h3'); $([btn,h3]).hide(); </script> This doesn't work. I know I can use the 'button,h3' selector here but in some cases I already have severa...

Modify (jQuery) JS to include code to track changes done on Checkbox and Dropdown list and update price

Hi all, I have a code in javascript and I am using jQuery Calculation plugin (can be downloaded from link text). The form that I have is kind of like shopping cart form i.e. the prices update according to the quantity entered. The form has text boxes which accepts numbers and this denotes the quantity. Once this quantity is entered/modif...

ASP.NET MVC - Master / Detail Posting

Hello, I am new to ASP.NET MVC. I am trying to create what I thought was a basic functionality. I have a view that is accessed via "http://myserver.com/Products/Ship/". When a user visits this page, they will be prompted for the serial number of a product. After a user enters the serial number and clicks "next", I want to show them a dr...

changing and hiding parts of a table

I've got a html table with td class-formlabel and text (HP)Hello Why doesn't this replace the text? $(this).text().replace('(HP)',''); Why does this remove formating if this is $("td.ms-formlabel").each(function(){ $(this).text("hello"); How can hide the TR rows for a match given the rendered html above and the below code? (Note I ...

errorClass in JQuery Validator is making my input fieds larger than normal. How to fix?

Greetings, I love working with the validator plugin, but I am just learning it and still trying to learn how to manipulate parts of it to my needs. Very cool, though. It works great on some forms for which I've used it, but I have a bug on this one form. When I test the form, by not completing a required field, the form input text box...