I have a great deal of javascript that needs to be min'd before being served to the end user. Currently, I'm using JSMIN, but I'd like to switch to something a bit more powerful (such as something with local variable replacement). I'm currently looking at YUI min developed by yahoo, and it got me thinking about the min tool that jquery...
Hi,
I'm kind of stuck with this pretty simple (I'm sure) jQuery/Javascript issue.
Here's the code :
jQuery.validator.addMethod("emailExists", function(value, element, param) {
var email = value || '';
var valid = 0;
$.ajax({
type: "POST",
url: param,
data: "email=" + email,
success: function(msg) {
if (msg != '' ...
I have a user control
<input id="check" type="checkbox" />
<label> </label>
<fieldset class="clearfix" id="fieldset-exception">
<legend>Student Information</legend>
<div class="fiveper">
<label for="StudentID">
Exception ID:
<span><%=Html.EditorFor(x => x.studentid)%></span>
</l...
What's a simple jQuery plugin that will draw a map given an address?
I don't need any controls, no panning/zooming.
...
if I have 4 variables
startTime;
endTime;
startMerid;
endMerid;
startMarid and endMarid are either going to be 'AM' or 'PM'.
but startTime and endTime are going to be strings like 'dd:dd'
so it may be start:12:30 PM and end:5:30 PM
How can I validate that the end time is not before the start time?
Thanks!!
...
I'm using a shadowbox which generates an iframe to display product details on a page. Because the details page can be pretty long, the client would like a "More" button that scrolls the page down (apparently the scrollbar on the right of the iframe isn't enough).
Here's the code that I've tried in order to get the iframe to scroll:
$(d...
I have a setup as described in this question which works perfectly. Essentially a drop down menu grows when you move your mouse over it to expose more options.
There is, however, a small issue. If you move the mouse outside of the #dropdown div and then back in again quickly it constantly fires the mouseenter and mouseleave events cau...
I am learning MVC and I understand the basics now. It is very good for CRUD pages and has built in HTTP methods to post/get edits/updates. That is nice. This is all very testable by just creating a new controller and testing it.
But I was thinking about other web page scenerios when using MVC. What about a page that has 2 listboxes that...
Trying to resize (enlarge) an image with animate().
Didn't manage to resize it from center – always resizes from the top-left corner.
Is there a way to resize (enlarge) it from a centered registration point?
Negative margins/positions didn't work.
...
I have a div tag with runat="server".
with another div tag which is added dynamically.
eg:
<div id="div1" runat="server">
<div></div>--this div tag is addded dynamically</div>
what i observed is that i am not able to remove the div tag if i add it dynamically... closing div tag(</div>) is not rendering. if its a static div i am a...
Hey guys,
I'm using jQuery 1.3.2 and Live Query plugin. The script needs to work in FF as well as IE6. Upgrading jQuery and using live instead isn't a possibility.
Somehow this script won't be called by the dynamically created element.
$('select').livequery('change',function(){
var select_id = $(this).attr("id"); ...
Hi,
im using the modal window qTip. Everything works fin, but i was wondering if it is posible to hide the modal window on either when onMouseout or mouseleave... and how?
this is my current setting:
hide: {
when: {
event: 'unfocus'
}
},
Of course the unfocus only works when clicking outside. Any ideas?
...
Hello all,
I'm looking to purchase a jquery book. I'm a strong C# developer whose had experience with dojo. Now, I'm building my own site and am looking to learn a new platform in the process. So, I've chosen jquery.
With dojo, I know how to make my own widgets. I want to learn about ways to plug into jquery to make reusable contro...
Hey Guys
I am using this date picker from jqueryui.
If you look on that page, then you will find that they have just written in one function like this:
$(function() {
$("#datepicker").datepicker();
});
</script>
But I want to open my date picker on one text box click event.
So I have written this:
$("#datepicker"...
Hello all,
I'm trying to find a horizontal grid with multiple boxes that indicate the hour. Pretty much like a week and day calendar, but I would like the user to choose the color and drag the cursor on the boxes highlighting the number of boxes. While getting highlighted, the color of the boxes change. And when the user presses the las...
I have a <table id="myTable"> with a number of child elements:
<tr><td>
<span class="mySpan" />
</td></tr>
<tr><td>
<span class="mySpan" />
</td></tr>
<tr><td>
<span class="mySpan" />
</td></tr>
How to select all this spans using jQuery?
...
Im writing some logic in JavaScript using jquery, where i must check the input content against a REGEX pattern ex:
"^[a-zA-Z0-9_]*$" //Alpha-numeric and _
The logic is almost done, i just have a little problem filtering the function key DEL,
my logic goes like this:
var FunctionsKey = new Array(8, 9, 13, 16, 35, 36, 37, 39, 46);
fu...
Should I use a local copy of jquery, or should I link to a copy provided by Google or Microsoft? I'm primarily concerned about speed. I've heard that just pulling content from other domains can have performance advantages related to how browsers limit connections. In particular, has anyone benchmarked the speed and latency of Google v...
I have some checkbox inputs like so:
<input type="checkbox" name="1" class="filter"/>
<input type="checkbox" name="2" class="filter"/>
...etc...
I'm trying to write a function where any time a checkbox is selected, it generates a string with all the names concatenated. Here's what I have so far:
$('.filter').click(function(event){
...
I saw the answer of a question: http://stackoverflow.com/questions/2443490/add-jquery-colorbox-plugin-to-a-dynamically-created-element
Solve part of the problem, works fine, but when I click for second time, it doesn't work.
When I try to click for second time an error displays: $.fn.colorbox is not a function.
How can i correct that er...