jquery

How to strip down a jquery to fit your needs?

Hello, I have this script running, and I'm wondering if I need all of http://code.jquery.com/jquery-latest.min.js It's 70 kb, and I would love to be able to strip it down. $('a.inframe').click(function() { var e=$(this); if (!e.data('state')) { //if state is undefined e.data('state','open'); //set the state to 'open' // E...

JQuery Form Plugin with multiple submit buttons

I'm using the JQuery Form Plugin (http://jquery.malsup.com/form/) to create an Ajax Form. I am trying put two submit buttons to handle Form Submit and Form Save operations. I need to submit to two different urls depending on the operation I want to perform: Submit or Save. I'm not very sure how I can get the value of the actual submit ...

Colorbox multiple image slideshow by clicking one image

Please take a look at this site as a reference: http://www.philsalesses.com/plasma-pong/ On the left you'll see a screenshot of an image. If you click the image, it will open colorbox for that one image. I'm using wordpress, so associated with that post there are 4 more screenshots, all in a gallery. What I want to do is when you cli...

Using jquery spin plugin with Facebox

What I am trying to do is create a input box, where users can select a number, utilizing the spin plugin to help along with the process. Outside of a Facebox modal the code works great, inside it does not. Anything appear to be out of the ordinary here? <script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></scrip...

Get content within a tag using Javascript from HTML

I want a javascript code which will go through all the html file in my root folder and sub-folders and gets the content which are within a particular tag, eg: <div id="content"> !!this content!! </div> It should check for a comment at the top of html and only get the content if it exist. <!--Allowed--> It should only get if thi...

this error is getting when i am trying to load light box in my page ?

link text Hi, uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://boxyourtvtrial.com/cakephp-hDemo/js/ajax.js :: anonymous :: line 156" data: no] please help.... thanks ...

Need some help with my jQuery input styler

Here's the, stripped down, code: $(document).ready(function() { var $input = $('input[type="checkbox"]'); $input.wrap('<div class="stylecheck-container" style="display: inline" />').addClass('stylecheck').hide(); $container = $input.parent('div.stylecheck-container'); if ($container.parent('label').length > 0) { $...

jquery capture onToggle

I have set of DIVs and i render CheckBoxList in each of them. Number of DIVs and number of CheckBoxLists are dynamic. Each div has a button associated with it which will toggle the visibility of that particular DIV. Every time user clicks on a checkbox, i need to display the text of that checkbox in one label. I am thinking that i shud...

Calling a function defined inside jQuery ready from outside of it.

My aspx page:- <script src="js/jquery-1.4.2.js" type="text/javascript"></script> <script src="js/jquery-ui-1.8.2.custom.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { //lots of other code here.... function showMessage(){ $("#msgDiv").dialog({ ...

jQuery/Javascript: setInterval check if DOM element exists?

hey guys, var check; function showLoader() { $('#mc_signup_form').prepend('<span class="loading"> loading &hellip;</span>'); check_init(); } function check_init() { check = setInterval('check_trigger()', 300); } function check_clear() { clearInterval(check); } function ...

Fundraising Thermometer Approach

I need to create a thermometer type widget for a website, where I can feed in a goal and current amount, then generate a graphic that shows the progress. I was thinking something with jQuery/CSS would be the best approach, but then I started thinking maybe just using a vertical slider from the jQuery UI library and skinning it. How wou...

Check for default value upon form submission with JQuery

I'm trying to use JQuery to check upon submission if a field input has the default value, and, if it does, to stop submission and alert the user. What I have works up to a point. But no matter what I put into the input field, submission is stopped and the text is changed to the alert text. Here is the JQuery: $('#submitQuestion').sub...

What is the correct syntax for this JQuery statement please?

I post via Ajax and get a return value which I then want to insert into an input text field - NOte there are "many" similar forms on the page hence the use of .parent. What is the right JQuery statement please. Thanks in advance $j(this).parent('form input[name$="tesitID"]').val(data) ...

Ajax get html on SSL

Hi, have the following code: $(document).ready(function() { $.get("https://www.somesite.com/Securepay/Return.aspx, function(data) { alert(data); $("#result").html(data); }); }); the above code does not return the html. Does anyone have a solution? thanks ...

asp.net multiple updatepanels holding usercontrols with jquery partial postback problem

Hello, I have a page with several user controls in different updatepanels. The user controls includes jquery calls which are used to calculate some values and draw graphs(no server methods are called from jquery). The problem is that, whatever updatepanel is refreshed, all of the jquery calls are processed again. I think the problem ari...

php jquery include files

Hi I know that a you put the reference to jquery between the head tags as below. Script src="js/jquery-1.3.2-full.js" type="text/javascript" But on a php page with no head tags, where would I place the reference? thanks Rifki ...

good jquery/javascript date and time picker for this format?

I can't find a good jquery date and time that displays my selected date and time like this 11-Aug-2010 12:30:38. Any good one you have seen... ...

Trouble toggling the visibility of multiple divs, since toggle() tracks each element separately.

I have a series of input buttons. Let's say two for simplicity. Each button has its own associated content in a separate div. All the content is in invisible divs ( display: none ) to begin. If you click a button, its associated content is displayed. If you click it again, the content disappears. This is done with toggle(). The problem...

serializing a form jquery

Hi, I need to serialize my form data and send it via ajax I have used serializeArray() which gives me the approriate postdata. The code is as follows : var fields = $('#myform :input').serializeArray(); jQuery.each(fields, function(i, field) { values[field.name] = field.value ...

No results message on jquery autocomplete

I'd like to give a "No matches" message on a jquery autocomplete when the result is empty. A partial answer was given here, but it doesn't explain exactly how to show the "No matches" result in the autocomplete dropdown. UPDATE: Here is my code based on the current answers.. HTML: <input type="text" name="myAutocomplete" id="myAutoco...