I'm using the ui-multiselect widget to render a <select> list differently.
I'm trying to reference a new function that I added to the widget, but its not finding the reference.
My newly styled list is rendered fine on the page, using the following HTML:
<select class="multiselect" id="MySelect" multiple="multiple" name="MySelect">
<o...
I'll post the two solutions I have tried, and what failed with each one:
First:
var table = document.createElement("table");
table.addClass("nice");
// fails because table does not have the "addClass" method
Second:
var table = $(document.createElement("table"));
table.addClass("nice");
var row = table.insertRow(-1);
// fails becaus...
Can I have any way to know which is the depth of a child based on a container.
Example:
<div id="dontainer">
<ul>
<li>1</li>
<li>2</li>
<li id="xelement">3</li>
<li>4</li>
<li>5</li>
</ul>
</div>
You should get 2 for "xelement" (taking as starting at 0). Knowing that the "li" are at the same level...
What are some of the more practiced methods of speeding up jquery animations across all browsers? I'm currently using jquery with a GridView(Table) and it's lagging and lagging making the slideUp() slideDown() unusable.
Links other then jquery.com are greatly appreciated.
$(document).ready(function(){
$("#GridTable td").click(functio...
Can someone tell me why the following is not working?
<head>
<script language="javascript" src="/assets/js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$("button").bind("click", function() {
alert("You clicked " + $(this).attr("id"));
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<...
I have a list box control that contains enough items to list them with a scroll bar.
I'd like the user to be able to enter a few letters and have the ASP ListBox scroll to the first option whose text starts with those letters.
I'm hoping that JQuery offers some simple functionality or plug-in that works with the element, but so far,...
I've installed the lazy load plugin which uses jquery for wordpres on my site http://www.martiningolf.dk, but it only loads in the blog section and not in the other parts of the site eg. front page/portfolio etc.
i've tried executing the script from my pages, but i just can't get it wo work.
Does anyone know how to integrate lazy load ...
I have the following Javascript libraries loaded for my page.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.jquerytools.org/1.1.2/jquery.tools.min.js"></script>
<script type="text/javascript" src="./js/jquery...
Hi,
I can't get the jQuery datepicker to work. I have followed everything from the jQuery UI manual. Can you please check my code below?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="C...
I'm working on a web UI control called Folder - it basically mimics Windows Explorer folder - you see a grid of items inside a rectangle and can drag an item around, drop an item inside a different instance of the control, add new items and so on. each item is made of an item template - basically some php code that dictates the look of t...
hey all,
what does it mean where there are two id's in the jquery selector using the .live method?
for example:
$('#mybtn', '#mydiv').live('click', function...
thanks,
rodchar
...
/*CSS */
#popup { background-color: #fff; border: 1px #000 solid; display: block; position: fixed; padding: 20px; top: 200px; left: 50%; margin-left: -300px; width: 600px; z-index: 1; }
/* JQuery */
$('#show-popup').live('click', function()
{
var tempWindow = $('<div id="popup">This is a draggable pop-up window created with ...
I was having trouble sending up a url containing accent characters using IE.
Here's a simple function:
function runjQueryTest(){
var url = "/test/Beyoncé/";
$.get( url, function(){});
}
On the server (PHP) I record the value of the request uri ($_SERVER["REQUEST_URI"]) and I see a difference between what FF/Chrome send up ver...
I want to create a site tour that plays an flv and then highlights different areas of the actual site while the flv is playing.
I would like to do this with AS3 and jQuery. I will probably try to use jw flv player for playing the video.
I know you can call JS from Flash, but it's been awhile since I've messed with Flash video and my g...
Hi,
I'm developing a little portfolio where I can choose a category and when I click it, the content (thumbnails) of that category will be shown (this is via an array).
e.g.
photography[0] = <a href="..." rel="lightbox" /><img ... /></a>
photography[1] = <a href="..." rel="lightbox" /><img ... /></a>
At first the site shows the c...
Hi guys
I have a series of table cells that I am trying to set the height of. It all seems to work well but unfortunately Firefox adds on the borders to the overall height where as the other browsers seem not to.
Hence I was wondering if anyone knows of a jquery function/plugin that will set the height consistently between browsers r...
As a fix for this issue, I was wondering if anyone knows of a way to modify the URL of an XMLHttpRequest object prior to sending it.
Ideally, I want to change the uri (encode it) in the beforeSend event (using jQuery $.ajaxSetup) instead of changing it in every location where I'm using $.ajax
Thanks!
...
I'm using the excellent jEditable plugin for some in-place editing on my page. There is one spot I need a multiple select element. Is there a jEditable plugin that allows me to do this?
I've been trying to use the jEditable author's plugin API to create my own multiselect plugin, but no dice so far. There just doesn't seem to be quite e...
I have an HTML form that a user can add an arbitrary amount of input fields to through jQuery. The user is also able to remove any input field from any position. My current implementation is that each new input box has an id of "field[i]" so when the form is posted it is processed in Python as field1, field2 field3, ...field[n]
i = 0
wh...
I am trying to style a menu that has a static height and the content is displayed between the headers. (Please see below image. ...the right side is the view after a user clicks on Header 2)
What is this menu style called? How can I accomplish this with jQuery?
Edit: Thanks! I searched for accordion before asking, but I was unable to...