jquery

Page content disappears with ASP.NET MVC + jquery

I downloaded the jquery files and tried to include them in my Site.Master, and the result is that the page html disappears in both IE and FF. <script src="Content/jquery-1.3.2.min.js" type="text/javascript" /> <script src="Content/jquery-ui/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript" /> Firebug shows the first js file, bu...

Why will this jQuery code only work in Firefox?

I have some code that allows you to scroll back and forth between images that are brought to full-size in a lightbox. It just replaces the source of the image when a key is pressed. It works perfectly in Firefox, but doesn't seem to do anything in IE, Chrome, and Safari (the only other browsers I tested). Any help would be greatly app...

How do I append a url typed into a input text field to an anchor then follow it when anchor is clicked?

I want to have a text field where people can type in a value. Then I want to have a href open a url with the text field appended to the end. So if the text field says "elephant" then when they click the link, a page will open with at example.com/elephant. I think javascript would be the easiest way to accomplish this but I just don't k...

How do i properly write a ajax reponse

I know this is a bad title for my question but what i am trying to do is reply to Autocomplete http://docs.jquery.com/Plugins/Autocomplete#API%5FDocumentation Instead of getting many elements i only receive "Array". I know this is obviously wrong bc of the way echo works but how do i echo in such a way this autocomplete works? mydoc....

XVal, JQuery Validate, and Ajax oh my!

I'm using xVal with MVC and jquery validate. It all works nicely, until i get to my custom validator that does an ajax call. the ajax call returns the right value, according to the firbug Net Tab. But something is going wrong and I can't figure it out. Here's the javascript code: function CheckEmail() { var res; $.a...

Problem with JQuery star rating plugin and Ajax

I'm new with JQuery, Ajax, JavaScript I have a problem with JQuery star-rating-plugin. I used it in some pages and it works very well. However when I used in an Ajax page, it did not behave the same. When the page is reloaded, nothing more is shown. The input are hidden, like before, but the div's doesn't appear. I have this code wh...

Large data accociation javascript widget

I am looking for a searchable multiple select javascript widget that can handle filtering large amounts of server-side data for a 1-n relationship. For instance I have a category and I want to be able to filter through an unassociated list of products and attach them to the category in a user friendly way. I don't want the unassociated...

Animation: jQuery or Raphael?

I am building a page that will animate objects (image/shape/div) and float them around the screen. At times there may be a large number of objects floating and interacting. A requirement is to have data associated with each object, as they will each have an id. So, if I click one object, it can grab that ID, then reference an array th...

input focus weirdness when pressing tab key on a form where change handlers on select elements enable or disable inputs

I have a form with some select elements. One of them is configured so that if the user changes the value, the next input may get enabled or disabled, depending on the value. When changing the value with the mouse, everything works fine. However, when using the keyboard, strange things happen. It acts differently from one browser to anoth...

jQuery Countdown plugin issue in Internet Explorer

Hi, I'm trying to use jQuery Countdown to count down to a particular date in 'full' mode (that is, the compact option set to false). The problem is, the last date component, whether it is seconds, minutes, or whatever has been specified in the format option breaks off on to the next line in Internet Explorer (checked on both IE7 and IE8...

jQuery help - How do I select only the first item of a wrapped set?

How can I select the 1st item in a wrapped set? I have $(":radio") This returns a wrapped set of two items. Is there any way I can select just the first item? Basically something like this but cleaner syntax var singleListItem = $($(":radio")[0]); That will probably work, but it looks hideous to me. Is there a better way to write this...

jquery vertical scroll

Now, I'm trying to create a vertical scroll. http://www.chohoh.com/pcs/test.scroll.html I have quite a few things nested which needs to remain like that but I think I'm unclear on how to tell the jquery file that it needs to scroll between two li classes "white-tikt" and "tan-tikt". I'm completely baffled why this isn't working. Even i...

Possible to write strongly typed entity classes in javascript?

When I am retrieving JSON entities via jQuery from the server and manipulating them client side, I have this desire to be able to see their interface via Visual Studio intellisense. So, ignoring whether this is a stupid idea, is this possible in any way? So what I was thinking was being able to reference Entities.js, which would contai...

jquery scrollto

I'm trying to figure out how to get this to scroll vertically. I have everything in place.. it's the exact same script has the one that scrolls horizontally. I feel like there is something in the jquery code i need but I can't seem to find a good explanation of it. here's my link I'm working on. http://www.chohoh.com/pcs/scroll.html ...

Jquery Drag-Drop (Getting element being dropped into)

I am trying to detect which cell an object is being dropped into. <table> <tr> <td class="weekday">Sun</td> <td class="weekday">Mon</td> <td class="weekday">Tue</td> <td class="weekday">Wed</td> <td class="weekday">Thu</td> <td class="weekday">Fri</td> <td class="weekday">Sat</td> </tr> <tr> <td class="droppable">&nbsp;</td> <td class="...

Route events on an object to another object

I am looking to route/redirect all events which occur on a target origTarget to another object otherObject. I want to accomplish something like this: /* Magic binding (doesn't work!). */ $(origTarget).bind('*', function(e) { $(otherObject).trigger(e); }); Is this possible with jQuery without looping through every possible event t...

How to dynamic filter options of <select > with jQuery?

<select > <option value="something">something</option> <option value="something">something</option> </select> <input type="text" > So that when user inputs something,only options with value matching it will show. ...

Manipulate DOM elements before adding them to the document

Hey all, I was just wondering if there is a clean implementation to getting elements before appending them to the DOM. Example (w/ jQuery): var html = "<div class = 'test'><div class = 'innertest'>Hello!</div></div>"; var innerDiv = $(html).find('.innertest'); I feel like its not possible, but I'd like to see if there is any impl...

jQuery multi-email validation/formating

I have a textarea that users enter e-mail addresses into separating them by commas. I am looking for a jquery plugin or snippet that will do live validation on this field so that users have to enter this properly. Any ideas? Thanks ...

How to alter the HTML of the value attribute for an input box?

What I want to be able to do is alter the "value=" of an input text box using jQuery. The ultimate goal is to grab a form using .html() so I have all of the code, along with the values typed into the input boxes. As an example I have this: <span id="example"> <input type="text" value="" id="rate" /> </span> If a user types into the ...