jquery

What are your recommendations on a jQuery custom select element plugin?

I've seen quite a few online and I thought I'd consult the Stack Overflow community for which they may have experience with and can make recommendations. I basically am looking for a plugin that can replace a select element with custom dropdown that uses CSS (not tables) fair bit of flexibility with styles lightweight ...

How to add filters to this pagination script properly?

Hello, I am currently working on this tutorial and would like to add a filter button to it. I am using jquery to make an element clickable: <p id="marketing">MARKETING</p> and the jquery for the element: // Sort content Marketing $("#pagination p").click(function () { Display_Load(); //Loading Data var ...

Get index of select option in an optgroup with jquery

I have the following select: <select name="end" id="end"> <optgroup label="Morning"> <option value="12:00a">12:00 am</option> <option value="12:30a">12:30 am</option> <option value="1:00a">1:00 am</option> <option value="1:30a">1:30 am</option> </optgroup> <optgroup label="Evening"> ...

jQuery animate doesn't complete (slideUp/slideDown)

I have a web interface to a system which has a left navigation. On the navigation, I can expand/collapse some menus. I use jQuery slideUp/slideDown to animate them like this: if (enable) { navbar_slide_down = true; $j(l1_folder).slideDown("normal", function() { navbar_slide_down = false; on_navbar_animation_comp...

Create Local Javascript Array From jQuery.get() AJAX Call

I'm using the jQuery Autocomplete plugin and would like to store all the autocomplete values locally in an array. I'm able to retrieve a comma separated list from a url using jQuery.load() or jQuery.get(). However, I can't load the data into an array successfully. Any suggestions on how to get this working? I realize there's probably...

jquery remote validation

i have 3 remote validation in my form and 3 of them works with no errors in firefox console. the 3rd one is not working properly in IE. IE gives me the error "object doesnt support this property" this gives an error in IE check.php: &lt; ?php $sql="select * from people where email = '".$email."'"; $row=mysql_query($sql,$db_connection)...

why my jquery code is ok in firefox,but not ok in chrome and ie8???

function tip(evt,s){ $('p#vtip').show(); xOffset = -10; // x distance from mouse yOffset = 10; // y distance from mouse top = (evt.pageY + yOffset); left = (evt.pageX + xOffset); var str = $(s, "> #content").html(); $('p#vtip #content').html(str); $('p#vtip').css("top", ...

window.open and $(document).ready

I am trying to make a bookmarklet that opens a popup window. Inside this window is a list of CSS classes that once selected, highlights that object on window.opener page. So I'm running into two problems. Firebug doesn't work in the popup window, so I can't see what's going on. The window never finishes loading (at least I can tell in ...

Wrap text and elements in another element using jQuery

I have a page which essentially looks like this: <div id="foo"> <a>One</a>, <a>Two</a>, <a>Three</a>, <a>Four</a> </div> Extra attributes removed for the sake of brevity. There could be any number of links inside the div. What I want to do is to hide all the links after the n th one and add a "Show the rest" link. Basically, for ...

JQuery Tools Scrollable: On Click, stop scrolling?

Hi Guys, I am using the scrollable plugin, excellent stuff and works the way I want. The only thing I want to change is the following: I have a list of linked images that scroll. When I click on an image, the scroller still scrolls and looks a bit odd. How do I stop it when a user clicks on a link? $("#scroller").scrollable().circula...

Using Google Closure compiler

Hi, I am using jQuery and I have all of my JS code in application.js file. When I compile "application.js" with the Google Closure compiler (using the advance options) I get a js file with no errors and warning. However, I am unable to use the file in my page, I get an error on page load which says "TypeError: Result of expression '$("d...

keydown on body?

i want to focus an inputfield whenever i press a key. so i use: $('body').live('keyup', function() { alert('testing'); }); but it doesnt work. is it wrong with my selector? UPDATE: here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns=...

Utilising JSON values in Javascript

I'm originally a PHP programmer and have been struggling with this for at least 2 whole 9-to-5 days now. I've come a long way but I seem to have gotten stuck trying to figure out the last bit. It SHOULD be fairly simple, but somehow I can't seem to find anything that coulp help me figure it out. I have the folliwing jQuery code that ret...

How to validate ToCheckList jQuery plugin (or multiple select fields)?

Anyone ever use the toChecklist jQuery plugin? It basically turns a multi-select box into a list of checkboxes. Makes it easier for users to understand that they can choose more than one item - excellent plugin. However, I'm trying to make sure that users on my site pick at least 1 item in the list. ToChecklist has the capability of lim...

why in firefox it is ok, but in ie8 it print 'undefined undefined'??

<div> <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br> <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br> <span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br> <span onmouseover="tip(event,this);">程序错误<div class="content"...

Information bar like stackoverflow

Possible Duplicate: Stackoverflow Style Notifications in asp.net Ajax Hi, I am trying to make an information bar similar to the one here on stackoverflow. I found the Activebar jquery plugin. But I want to be able to customize it. I want a fading effect or a semi transparent background. Can someone please help. Thanks. ...

Replacing script src using jquery not executed

Hi, great people, I would like to replace the source url of the script on the fly to speed up dev stages only, so no actual production usage. This kind of replacement works well with css or images. But have hard time to make it work with javascript src. The script seems not executed, although loaded via src. Here is what I have done. ...

jQuery UI Buttons Toggle

I'm trying to toggle a UI Button from a callback of a POST operation. The jquery UI Button would either need to have "ui-icon ui-icon-minus" or "ui-icon ui-icon-checked" as a span.class I tried to toggle - but toggle only removes and adds back a part of the class - it doesn't exchange the whole class. This is where I'm stuck at right no...

How to keep div menu slided down even after reloading the page, jQuery

Hello, I have the following HTML code: <form action="" name = "myform" method = "post"> <div id= "button">myButton</div> <div id="submit"><input type="submit" name = "submit" value="update"></div> <div class = "hiddenMenu" > <div id = "checkboxes"> <input type="checkbox" name="checkbox1">Checkbox1 <i...

Javascript alert test not working

hey, I should be sleeping but this is really bugging me. I can't get a simple javascript alert box to display in my asp.net project. Hopefully someone can see what I'm doing wrong. My test page is this: <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="JSTest.aspx.cs" Inherits="Proj.JST...