Is there a way to filter a multi-line select box using jQuery?
I'm a new to jQuery and can't seem to figure out the best way to do this.
For example if I have:
<select size="10">
<option>abc</option>
<option>acb</option>
<option>a</option>
<option>bca</option>
<option>bac</option>
<option>cab</option>
<option>cba...
Hi.
Maybe a bit complex to explain. I have a grid with 9 images 100 x 100 px like this (each number symbolize a picture):
1 2 3
4 5 6
7 8 9
What I want is that the user can drag and drop e.g. 9 over 1 and they change places like this:
9 2 3
4 5 6
7 8 1
Sortables from jquery UI will not work since their solution is using floats. Th...
I have no problems processing JQuery GET requests in a controller, however I cannot get any form data to POST. The following client snippet:
$.post(url,{name:"John"},function(result){
//process result
});
combined with a controller:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Save(string name)
{
return Json("Success!");
}
w...
I am making a very simple preview window in JQuery using just an ordered list. I am worried the user will type in < or > and accidentally mess up the code for the page or do some sort of XSS. How can I encode special chars using Javascript to handle this situation?
...
I would like to implement something similar to 37Signals's Yellow Fade effect.
I am using Jquery 1.3.2
The code
(function($) {
$.fn.yellowFade = function() {
return (this.css({backgroundColor: "#ffffcc"}).animate(
{
backgroundColor: "#ffffff"
}, 1500));
}
})(jQuery);
and the next c...
I'm trying to learn some basic ajax using Django. My simple project is an app that randomly selects a Prize from the available prizes in the database, decrements its quantity, and returns prize.name to the page.
I'm using jQuery's $.ajax method to pull this off. The the only thing that's running is the error function defined in my $.a...
I have the following HTML code :
<html>
<head>
</head>
<body>
<div id="never-selected">
</div>
</body>
</html>
With JQuery 1.3.2, I would like to create wrapper around $() that allow you to select any element with any combination but the div #never-selected nor its content.
I am trying to do it this way :
_contex...
How do I get the coordinate position after using jQuery drag and drop? I want to save the coordinate to a database, so that next time I visit, the item will be in that position. For example, x: 520px, y: 300px?
EDIT:
I am PHP and mysql programmer :)
Is there any tutorial out there?
...
I have a drop down list that is populated through a Javscript function provided by an external company. It basically checks if the input is of a valid postcode type and then returns possible addresses into a drop-down list.
I am stuck as to how to then display a little message once the drop-down list has some options, i.e. some address...
I am having one heck of a hard time trying to figure this out. Been looking at examples and tools for JQuery validation for over 3 hours now.
All I want to do is require that a checkbox is selected and a radio button, but I don't care which one is required.
<form id="form1" action="/controller/action" method="post">
<div cl...
i am using pikachoose a jquery plugin for picture slide show but its not working in IE 6,7
here is the link
http://pwiser.com/pikame/pikachoose_test.html
i want to use user_thumbs option of pikachoose its working fine in FF but not in IE 6, 7 please help
...
I have a table of recent web guest who have registered. One of the columns is a simple "send email" link that I hi-jack with Jquery when it's clicked and fire off an ajax .load to a backend php script that emails the person.
What I can't figure out, is how to simply change the link that was clicked on to something like "Sent!" and it...
Hey I'm trying to return a message when there are no results for the users current query! i know i need to tap into the keyup event, but it looks like the plugin is using it
...
I'm working on a client project and I have to include their header and footer, which includes some core javascript files. I have a couple of PNGs on the page, but their core JS file is poorly coded and doesn't check for IE 7 before attempting to replace IMG tags that contain .png files with DIVS that use the AlphaImageLoader filter. The ...
I'm using ASP.Net MVC, but this applies to any framework.
I'm making an Ajax call to my server, which most of the time returns plain old HTML, however if there is an error, I'd like it to return a JSON object with a status message (and a few other things). There doesn't appear to be a way for the dataType option in the jQuery call to h...
Hi folks,
I'm trying to access a simple ASP.NET MVC route, but it's erroring with:
The parameters dictionary contains a
null entry for parameter
'isFoo' of non-nullable type
'System.Boolean' for method
'System.Web.Mvc.ActionResult
Transform(Boolean, System.String)' in
.. blah blah blah.
Ie. the boolean property is not ...
I have a form containing a list of input fields that the user populates with prices (numbers). I have set their css classes to "required" and "number" so that the jQuery validation plugin validates them accordingly. All that is working perfectly well. The errors are displayed when each field is either not a number or the value is missing...
When the user clicks a sorting link on my blog, I want to use AJAX to both pull in new posts and update the sorting link section. This would be easy using RJS, but I want to keep my JS unobtrusive and respond to AJAX requests with only data (and no code).
Here's what I'm doing now:
$('a.order_by').livequery('click', function() {
...
Hello,
My question is if anyone knows how too achieve the effect of creating a slidedown from
a tablecell, without having the whole table expand with.
It has too slide independantly from the location of that particular row
on top off the table, so too speak
otherwise it looks ugly as you can see from my page
(click on the first row)
...
I am trying to succeed at getting this jquery plugin to work corretly. What I need is a click event that will alow me to click a row and have a js window that will load another page using the row_id that is the primary key in the database. I'm really lost with javascript but I like the plugin and really would like to have this work if po...