jquery

Jquery Validation: Get rid of label tag for error

I'm having a hard time using jQuery Validation. In particular, I'm trying to remove the error message from the label tag and put it inside a div. I have 5 blocks of radio buttons. Each block looks like this: <div class="question-wrapper required"> <div class="question-title required"> <div class="question-box required">1.</...

String response not getting in .getJSON

My controller method just return String value. When I called JSON from my view page, I don't see any value. controller method public string test(int i) { return "Hello world " + i; } Inside View, $.getJSON(['../Feeds/test/', 1, '/'].join(''), function(json) { alert(json.toString()); }); If I run this into Mozilla, I can se...

When does document.ready run, wrt when inline JS is processed?

I have a page where I import most of my js in the <head> section. The main page, however, has some inline javascript. In one of my scripts imported in the <head>, I have $(document).ready... which uses some JS variables defined inline on the page. As far as I can see, this works as I would expect -- $(document).ready doesn't run into an...

Keep a div from reloading

Basically, I want the same effect as the oldschool html 'frameset' I think. Take a look at this page please: http://onomadesign.com/wordpress/identity-design/alteon-a-boeing-company/ If a user selects a project from industry -> transportation for example, I would like that the right scrollmenu keeps its initial state when the new proje...

Title Attribute on Disabled Elements in Firefox

I am building a very dynamic web-based application using a lot of Javascript to handle user events. I am in the process of making things a little more usable and came across a problem that I've never had before. I am using jQuery, so factor that in to your answers. Thanks in advance. I have a set of button elements defined as: <input...

Hover over image to get popup with Flash player embedded with .NET

Not sure if this is possible but here is what I would like to do: I have a dropdown list and when a user selects an item i would like to show a thumbnail of document. Easy enough. Now when a user hovers over the document I would like to show a small popup that could display the actual document. The popup would be small and similar to t...

problem with removing dynamically added elements from table..

Hi I'm trying to add and remove some rows from a table using Jquery. But I dont know how to remove the newly added rows. If I have a remove link it will work, but thats not what I want. I want to be able to call a js function that shall remove all items. I have tried iterate over the items, but the count for the tr's in the table are ...

jQuery 'Object doesn't support this property or method'

The title is the error I get from the following code: $(this).parent().slideUp(200, function () { $("#testDiv").slideUp(200); }); However the following code works fine: $(this).parent().slideUp(200, function () { $("#testDiv").html('hello'); }); Loaded libraries are jQuery, jQuery UI and qTip. In IE8 I get the error as ...

using jquery to remove links, but not images

I have a that has a bunch of list items, each with an image wrapped in a hyperlink. I'm trying to write some jQuery that will remove the links, but not the images. Is this possible? ...

How to find table cell value that is clicked from ASP.NET MVC Page?

Hi I am trying to find the find the Text of the Table cell (from TD) that is CLicked. Basically, my JQuery Code is not htting this line. $("#myTable tbody tr").find("td:eq(" + i + ")").click(function() { My table has 88 Records when i tried $("#myTable tbody tr").length But it is not find "td:eq(". Appreciate all responses. ...

kohana and jquery wsiywig editor

This is more of an open question than a direct one... anyone out there having issues with kohana and the jquery wisywig plugin? mainly this one: http://code.google.com/p/jwysiwyg/ ...

Get image width of images in divs with jquery

Is it possible to get the width of all images the divs and then set #content css to that value with jquery? Im using a horizontal layout for a project and need to add images from time to time. <div id="content"> <div class="entry"> image image </div> <div class="entry"> image image </div> </div> ...

Slideshow background image

I have a php array that gets returned from a database, the array contains paths to images that I want o make up the background of my wrapper div in my HTML, I want to be able to add some javascript that will cycle through the array and a set interval show the next image in the array, is this possible, and is it possible to also have some...

click() not registering on an element previously created by jQuery

I'm trying to hide() an element that was just created by a click() somewhere else on the page. Other elements that existed on page load will register the click and be hidden fine, but elements created after the page load will not. Here I'm creating a new element with text in it from another element that is being hidden: $("#cloud li")....

hoverIntent triggers 'out' function on select element.

The code that follows is used for showing and hiding Mega Dropdowns. If you mouse-over a link with the class of 'dropDown', it's child '.dropPanel' shows. As long as your mouse is over either the link or the drop panel, the drop panel remains shown. Move the cursor anywhere but the link or the panel, and the panel is hidden. Pretty basic...

remote jquery nested tabs

Hi I have nested tabs in jquery tabs which are pretty simple to do if we want static jquery tabs but what if we want nested tabs that the remote page should decide what would be the tabs. or in other words i want nested tabs in a remote page (or ajaxified) For example i m calling this page(remote page) through tabs <div id="containe...

How to reload/refresh an element(image) in jQuery

Is it possible to reload an image with an identical file name from a server using jQuery? For example, I have an image on a page, however, the physical image can change based on user actions. Note, this does not mean the file name changes, but the actual file itself. ie: User views image on default page User uploads new image Default...

jquery hover problems

I'm trying to change a website's logo (logoName.png) to other images (logoHome.png, logoEvents.png, etc.) when the user hovers over buttons on the navigation menu (#home, #events, etc.) with the script below. This works fine when the timings are set to 0 and everything happens instantaneously, but when I slow things down it's not doing ...

jquery validatio plugin with maxlength on input type="text" field

I have a form that has several optional fields. they are rendered as input type="text" input elements. Here is the html: <input type="text" name="AssistanPhone" value="" maxlength="50" /> The jquery validation plugin fails validation on this field when the maxlength attribute is set. I don't even want to validate this field. No rules...

live change handlers in jQuery 1.4 don't work for select elements in IE

I recently decided to try jQuery 1.4, excited that I would finally have support for live event handlers that work for change events in IE. However, it seems like they don't always work. If I try to assign a live change handler on a select element, it doesn't work when I change it in IE. I tried this in IE 6, 7, and 8. In every other bro...