jquery

Jquery fullcalendar not showing events

Hi, I am using jquery fullcalendar on one of my view pages for an MVC project to show events. But it doesn't show the events here is my code: public class HighlightMonthlyEvents { public int id { get; set; } public string EventName { get; set; } public long EventStartDate { get; set; } public long E...

Jquery, getting .css "background-color" in #000000 format?

I'm using a jquery plugin that seems to need the color in "000000" format but when I do this: currentcolor = $("#" + dividediting).css("background-color"); I get the output as: rgb(0,0,0) I'm wondering if there is a way to change the way it outputs or if I have to use regex to parse the result to get it to the needed format.. thank...

Distinguish Chrome from Safari using jQuery.browser

It seems jQuery.browser is able to identify webkit rather easily as of 1.4. But how can I use it to distinguish Chrome from Safari (and visa-versa)? ...

jQuery: form not submitting with $("#id").submit(), but will submit with a 'submit' button?

<form method="post" action="load_statements.php?action=load" id="loadForm" enctype="multipart/form-data"> that is my form, which looks fine to me. in that form, i put this button: <input type="button" name="submit" id="submit" value="Submit" onclick="confirmSubmit()" class="smallGreenButton" /> here is th...

What is best practice for organising and serving up JavaScript efficiently

I'm interested in hearing opinions on how to efficiently organise JavaScript (and jQuery) in a largish web application project that could potentially see high traffic. Things that concern me are: Being efficient on the server Being efficient on the browser Keeping the codebase manageable Lets assume that all authored JavaScript is k...

jQuery <AREA> appendTo doesn't work in IE7

I have the following code working fine in IE8 (and IE8 in IE7 compatibility mode) but not generating the right results in IE7 var areaId = "eventArea" + index; var tempArea = $("<AREA id='" + areaId + "' shape='rect' coords='" + value.x + "," + value.y + "," + (parseInt(value.x) + parseInt(value.w)) + "," + (parseInt(value.y) + parseInt...

JQuery LiveValidation and Thickbox Variable Error

I am working in Symfony 1.0 launching a Thickbox modal window that contains a form, which is being validated on the fly using LiveValidation. The modal window launches fine, however the LiveValidation plugin is getting an error, saying that "ReferenceError: Can't find variable: LiveValidation" and then referencing various variables I am ...

javascript gallery with JQuery and nyroModal

Hello, I discovered nyroModal extension to JQuery. This seems pretty cool to make a photo gallery with nice effect. I have the following code... it works when I open it from the file explorer (Finder on Mac), but when I put it on my web server... it does not work anymore. Instead of the cool gallery, the photo on which I click is only d...

JQuery navigation active page.

I'm building a jQuery navigation and i cant seem to figure out how to make the navigation stay in the roll over state on the active page. HTML... <body> <form id="form1" runat="server"> <div> <div id="pageWrap"> <div id="pageBody"> <a class="hoverBtn" href="#"></a> <a class="hoverBtn1" href="#"></a> ...

jQuery - Retrieve an Input fields' name, and then change it

I need to get the name of each input field within a row, and change it. I am having difficulty in finding the proper syntax to reference the name field. For example: <tr id="row_0" class="dataRow"> <input type="text" class="tabcell" name="_0-3" size="6" value=7.0 /> <input type="text" class="tabcell" name="_0-7" size="6" value...

Dynamically loading a jQuery based script and the ready event.

Hi, I'm using the ASP.NET MVC Framework, jQuery and Ajax calls to do some Partial view rendering based on client input, my issue is that some of the scripts requires by the partial view rely on the ready event, raised by jQuery. The scripts, both external, and on in the view are being loaded without issue, but as the page is already lo...

jquery, how to define a dom template and use it over and over again

The title says it all, how do I use some dom as a template, so something like <div> <span> v1 </span> <span> v2 </span> <span> v3 </span> </div> and then programmatically replace v1-v3 with some values (that i get off an xhr repsonse) thanx ...

How do I get the checkbox value from a specific cell in a table row using jQuery?

I have a table that contains multiple checkboxes in each row. I need to get the value of each individual checkbox. I've been able to do something like the following to retrieve the value of a checkbox in the first column of a table... $('#myTable tbody tr td:first-child input:checkbox').each(function() { if (this.checked) { ...

Custom jQuery Delayed Callback

I am playing with extending jQuery with a function that has two params: a callback function and a timeout. I'm on pre 1.4 so I don't have the .delay() built-in, but even that isn't really what I want. I've started out with the below, but am unclear as to 1 why is the callback function undefined inside the setTimeout, and 2 how should ...

Load .txt file from javascript with jquery

I want to load a local .txt file and work with the content in javascript. My local file is like C:\Users\Who\Desktop\file.txt Thanks ...

jQuery.attr() guarantee lowercase?

Does $(selector).attr(name) guarantee that the result is lowercase if the attribute is found? ...

jquery ui buttons inconsistent hover state

I've got 4 buttons using Jquery UI's "button" feature. 3 work flawlessly. the 4th does not seem to want to always apply the jquery ui hover class "ui-state-hover" when it is hovered. it does some of the time, but most of the time it only applies a "hover" class (i'm watching it in firebug) and that obviously doesn't match up w/ their ...

Trying to find a script for re-sizing squares - Any suggestions?

Hello all, I need a script, preferably jquery, to do the follwoing: I HAVE FOUR LITTLE SQUARES (i.e. div tags) each a different color nested together to make ONE LARGE SQAURE. WHEN I HOVER OVER ONE SMALL SQUARE, IT ENLARGES AND COVERS THE ENTIRE NEST. When I move away the mouse, the enlarged sqaure will go back to its original size i...

How do I detect if a table exists (which doesn't have a class or ID)

I’m having a problem trying to detect if a table exists using jQuery. The table has no class or ID. What I’m trying to achieve is to not have the following code fire unless a table exists: function tableAltRows() { $("#content table tr:even").each(function(){ $(this).addClass("alt"); }); } $(tableAl...

Google Maps v3 opens the last infoWindow when a marker is clicked

I have a shared infoWindow for all my markers. It works good if I use jquery's $().each(function(){}), but if I change it to JavaScrips's native for or while loop, it's not working as expected. Whenever I click a marker, it will open the last populated marker's infoWindow, instead of the clicked marker's infoWindow. This works: $(sto...