jquery

Ajax submit makes a full post after first submit

The first submit works as expected, but the next time it's fully posted back. I'm using jQuery.form plugin, specifically the .ajaxSubmit(options) call to submit the form. There are a couple levels of wrapper div's, but I debug the button.click binds and I can't figure out why the second time, even with the same variables, it does a full ...

jQuery: add text to the progressbar

hi all, is there some tweak to add a caption to the progressbar control? i'd love to put a centered caption which displays current percentage. thx ...

Improving tooltip performance but now does not work in IE7 or IE6 jquery and inline styles

I have created a tooltip that appends a DIV with text to the page. I have managed to get it to appear in the position i want and follow the mouse as it moves. I was previously doing this with inline styles and updating the top, left absolute positioning co-ordinates dynamically inline. This seems to cause performance issues so i wrote...

help with jquery selector

hi! i have this html block: <p><strong>this is the title</strong>this is the content</p> how do i get only the "this is the content" string with jQuery? thank you :) ...

How to change a colour of a word in jquery

How would i be able to select a word and change the colour of that one word? e.g. add a span with style and chage the font colour. Can someone lead me down the right path please. Jquery function edit_addon (div_id) { $("#"+div_id).attr ('contentEditable', true) .css ('color','#F00') .css ('cursor'...

jQuery.ui.draggable's container jump-scrolls at drag start, loses window context

Seeing some bizarre behavior in a list of scrollable items. The containment is set to the <ul /> element (which is droppable), and the draggable items are the <li /> members. The container is relative-positioned, and is a couple of divs down inside an absolute-positioned container (something like top: 150, left: 250). When a drag star...

jQuery - getting attribute from HTML Text - IE not working

I'm using and $.ajax method to get an html text. I would like to parse this html, getting the "src" from an "img" tag. I've done this way: $.ajax({ type: "GET", url: "image1.html", success: function(msg){ var htmlCode = $(msg).html(); var title = $("#immagine", htmlCode).attr("src"); ...

Update div after jQuery ajax call completes

I have a page that displays a grid of products that is populated programmatically on the server-side based on a database query. In each grid cell I have a drop-down list where the user can rate the product. I also have a <div> in each grid cell that shows the current average rating. My aim is to trigger an ajax call when a rating is sele...

ASP.NET MVC PartialView postback: how to validate data?

Hello I am using ASP.NET partial views like in this example <% using (Html.BeginForm()) { %> <table cellspacing="2" cellpadding="0" border="0" width="100%"> <tr> <td><%= Html.LabelFor(model => model.PersonName)%></td> <td> <%= Html.TextBoxFor(model => model.PersonName)%> <%= Html.Validati...

Jquery: Expand Div Upwards

Alright, I have a div which is 50px (height), and the width does not matter that has a title displayed. I want to use jquery, so when I hover over the div it expands upwards to (70px) to reveal the content hidden below the title <div id="box"> <h1>Title Goes Here</h1> <p>this is the hidden text</p> </div> ...

How can I find the button that was clicked from the form submit event in jquery?

I have a function that I'm using to prevent multiple postbacks of a form: var submitted = false; $(function() { $('form').bind('submit', function(e) { if (!submitted && CanSubmit(e)) { submitted = true; return true; } else { return false; } }); }); In the CanSubmit me...

How to add a character to this validation function?

$(function(){ $('input[name="username"]').keydown(function(key){ if (jQuery.inArray(key.keyCode, [8,37,39,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90]) == -1 || key.shiftKey ){ return false; } }); }); What t...

Using the Streampad API to pull the current song title

I can't figure out how to pull the song title from the Streampad API. This is straight from the Streampad API website. SPAPI.song():Object Returns the current song that is playing. Object will have these properties: songTitle, artist, album, imageUrl (link to album cover art), sourceUrl (link to page containing song), ...

JQuery: Select multiple select tags of a name

I'm trying to access all my select tags with a specific name. I've tried doing this: $("select[name='blah']") and $("select[name='blah[]']") but neither are working. I followed the JQuery documentation that showed it doing it like this for inputs: $("input[name='newsletter']") What am I doing wrong? Thanks ...

How do I validate a string in JavaScript?

Have a text input box. Would like the user to enter a string in the exact format: 2010/08/26 17:04:51.24 (with any numbers of course) How can I do this efficiently? Not looking for the answer, just a point in the right direction. Thank You. (html, JavaScript and jQuery) ...

how to interrupt a form submit to call some javascript?

Hi! I'm using a form provided to me by PayPal in order to sell something on my website. Before the user hit "checkout" via the paypal form button, though, I want to track an event in google analytics. i have found this article via google analytics http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html that explains h...

jQuery - remove div based on parent div class

Hello, I am trying to create a jQuery script that would remove a div/s based on what the class of the parent div is, for example based on the parent div class below i.e one-column I would like remove divs sideColumn-two & sideColumn-three <div id="footer" class="one-column"> <div class="wrapper"> <div class="contentColumn">...

What's the best approach for using ajaxform with jQuery validation?

I'm using the ajaxform jQuery plugin to create ajaxed HTML forms and want to implement validation using the jQuery Validation plugin. I'm not sure what is the best way to implement this. It doesn't work out-of-the-box for me. I set up the form with form.ajaxform({}) and then set up validation with form.validate({}). The invalidHandler...

JQuery UI Autocomplete and Google Keywords

I am using JQuery UI's autocomplete widget on a site of mine as a Country Selector and am pretty happy with the functionality. I have the country selector on pretty much every page of importance on the site as it is used to allow people to search. The issue that I am having is that the widget is screwing up my Google Keyword density. Be...

Yotube like comment-Show link over textarea when user try to add a comment

Hello Everybody, I'm working on asp.net application.And i'm looking for a way to show a link over a textarea when a user try to add a comment if the user is not loggd in. I've got this idea from Youtube videos comments.If ur not coonected,they show a link saying u have to login to be able to add a comment. Does anyone has an idea how ...