jquery

Help with jQuery Calculation plugin

I am trying to use the jquery plugin to help out with a simple equation. I am working on it here: http://www.zacharydesigns.com/sandbox/calc2.html Right now I am trying to figure out how to get the second column, package pricing to be generated from this equation: product price / total product price * 399.99 Here is the bit I was tr...

jQuery Object Serialization

If I've for example an object like: {start: 1, end: 2, someString="someStringValue"} Is there any simple way to serialize it into a string of data? Example: start=1&end=2&someString=someStringValue Thanks. ...

ASP.NET MVC Ajax: How to pass argument values to Ajax action from a select?

I would like to have filtering page that performs ajax requests to asynchronously update list of results. There are two comboboxes with option values and one Ajax.ActionLink. The list is rendered as a partial view inside a div. I know how to implement the controller part and also the interaction logic. What I am missing is how to pass ...

JQuery Div Closing on click

I am using JQuery to insert html in a div using $('#myDiv').show(); on a click of a checkbox. But whenever I click somewhere in the Div that is not an object (Dropdownlist or a Textbox etc.) . The Div seems to be closing. Is there a property in Jquery to prevent this?. $(".mycheckboxDiv input[@type=checkbox]").click( function()...

Content replacement from external website

So I am pretty new to jQuery and Javascript in Gen. I like the simple load() functionality that JQuery uses. My question: Is it possible to load content from an external website using the load() function? $(#placeholder).load("http://wwww.facebook.com/someuser"); tring to sync content on a specific facebook page that will be loaded i...

javascript Running a function under another function

I have 3 functions, with the third function under the first that I want to run in the second. function first () { function third () { } } function second () { third (); } How can I make second run third correctly? Thanks. ...

Custom Drop-down in jQuery

I've been looking at jquery drop-down plugins. None of them function the way I'd like. I need to write a simple script that's essentially a drop-down menu. There's a simple series of li w/ unique ids that match a class of a div (not a child or parent). I'd like the sub-menu to slide down on hover of the main-menu li. So, the HTML wo...

Lag problem with jQuery focus() and blur() events.

I'm attempting to create a navigation menu that uses some jQuery. I wanted keyboard users to be able to have the same experience as mouse users, so I'm duplicating the functionality found in my hover() event handler in my focus() and blur() event handlers. For some reason, this is causing noticeable lag in Firefox and IE when the user cl...

How do I make a JSONP call with JQuery with Basic Authentication?

Using JQuery, how would I call a JSONP API that required basic authentication? Can I programatically handle this, or does the user have to interact and enter the username and password into the logon dialog? ...

Are there any modifications to the jQuery UI datepicker which adds time selection?

Are there any modifications to the jQuery UI datepicker which adds time selection? I googled and I found this, but I don't really like the sliders... Is there something else? Thanks. ...

jQuery: take existing HTML, modify one node, then reinject

I have a blob of HTML that I'm retrieving using simple jQuery selectors, something like the following: <div id="stuff"> <ul> <li>some</li> <li class="ninja">stuff</li> </ul> </div> I'm basically doing: var myblock = $("#stuff").html(); now I want to inject an additional li element to the bottom of that li list with very si...

Showing /hiding elements of a form based on menu selection

I am trying to program (while learning JQuery) the following: I have a form with various elements in it. Based on a selection made with a select menu item, I want one or more elements to either be hidden or shown. I have this so far as a script: // JavaScript Document var joinApp = { ready : function() { var selApp = 'instit...

Standard way to include javascript library from javascript.

I'd like to pull in the jquery library from my javscript include. Does this work 100% of the time? Is there a better way? (function() { var loadJquery = function (cb) { var addLibs = function () { if (typeof(document.body) == "undefined" || document.body === null) { setTimeout(addLibs, 100); return;...

Javascript: Clicking thumbnails to switch a larger image. Best method?

Hello! I've been looking for a really easy/lightweight way to just be able to click thumbnails to switch the src of a larger image. This is what I've found: http://snipplr.com/view/8688/jquery-image-swap/ I haven't actually tried it out yet. Is this the best solution? The larger images to be swapped in will have the same width but ...

lightbox jquery question

hi, I gave up on fancybox as it was not practical so I have opted for lightbox. but I have a question does lightbox support triggering the gallery thing from a button and not clicking on an image? if it does can someone point me in the right direction? Thanks ...

Fill a select/menu object using jQuery

Hi guys I need to fill a object using jQuery I have a dialog (jQueryUI) that shows. Once dialog closes, the object should be filled with items taken from a mySQL table I have a function fill_select() located in my JS code... and I should place code there, because I call this JS function frequently. PS: I should remove all the item...

jQuery - Getting returned data from ajaxStop

Hi guys Just wondering if anyone knows how I can get the returned json data from ajaxStop... I know there is a data property within event object, but it is undefined, even though data is being returned correctly... Cheers Anthony UPDATE: When using Success or complete I can see that the responseText within request is populated, b...

How to call a function of a jQuery plugin (creating new plugin)?

I'm creating a jQuery plugin for one of my projects and I was wondering what's the best way to go about this. I need to be able to call a function on the plugin from outside the plugin, at any time. For example, an event outside the plugin happens, and I want to say "plugin, do this". I've played around a bit and this works, but doesn...

Javascript Ajax JQuery

Hello evryone. Here's my issue. I have a javascript function that update a div when i click the proper link. And it is working. Since i have cliked the link my div content is updated with another Javascript. This time to close it. Its fairly simple but i cant get it to work and i dont know why! Here is the code that is in the page ...

simple jquery based datagrid

Can anybody suggest a nice and clean simple jquery based datagrid, i don't need bulky features that comes with flexigrid or jqgrid. just need a paging and column sorter and of course with ajax support. ...