jquery

Using the jQuery validation plugin's submitHandler method properly

Hi, first a little bit of documentation from the jQuery validation plugin: "Use submitHandler to process something and then using the default submit. Note that "form" refers to a DOM element, this way the validation isn't triggered again." submitHandler: function(form) { $.ajax({ type: 'POST', url: form.action, ...

Controls inside Update Panel and JQuery Form Look and Feel Plugin Problem!!! HELP

Hi dears! I have a problem with Updating Form Element Look and Feel under Update Panel Control. I Used Uniform JQuery Plugin to shape form controls such as DropDown. it works very well in a ASP.net form but i used an update panel to generate CheckboxList Items when user selects a dropDownList Item. The picture Below Shows form Look and F...

Close Jquery Dialog and set set session c#

I need to close the jquery dialog box and set a session at the same time. Using asp.net and c#. Whats the best way to do this? Thanks ...

jQueryUI Tooltip + JSON problems

Good Day, I'm having problems implementing jQueryUI Tooltip. Here's my code: $("input.tooltip").tooltip({ content: function(response) { $.getJSON('tooltipcontent.json', function(data) { response($.map(data, function(item) { return item.foo; } )) }); return 'tooltip content'; } }...

jquery multiple $(window).scroll

I'm trying to use 2 pieces of jquery together – they work individually but not together. checkShow(); function checkShow() { var top = 0; top = $(window).scrollTop(); if(top >= 600 && top < 1800) { $('#lift:hidden').fadeIn({duration:500}); } else { $('...

Saving session data with Javascript, or similar solution

Basically what I'm trying to achieve is a basic back capability. User goes into Girls listing, which shows him a location screen. Selects a location, and the locations are replaced by images of girls from that location using AJAX. User clicks on a particular girl to view her profile. Now the user wants to go back and have a look at a dif...

Displaying POST Data with jQuery?

I'm using a flash webcam to take a picture. It works great and spits back a URL via POST. I'm coding in PHP and would like to display this POST data once it is recieved, the problem is that I dont re-load the page. I've looked around and I'm not sure to dynamically load this array of data. Where should I be looking? jQuery? Ah, Figur...

jQuery Gallery - Webkit problems.

Okay. So I've got a a little jQuery gallery scroller I wrote to work with WordPress. It works beautifully in Firefox, but it doesn't work in Chrome or Safari. Here's the link: http://thehousinggroup.info/our-gallery/bathroom-renovations/gallery-1/ Here's the jQuery: var imageQuantity = $('.galleryBox img').size() //finds the nu...

jQuery hashing and loading file, string formating?

Hey. I'm loading content dynamically like this: $("#id a").click(function(e){ e.preventDefault(); var hash = this.parentNode.hash; $("#show").load('files/'+ hash +'.html'); $("#show").fadeIn(300); }); But the hash is #first, #second, #third so I have to name files #first.html, #second.html etc. Ho...

Prevent any form of page refresh using jQuery/Javascript

Once the user is on my page, I do not want him to refresh the page. 1) Anytime, the user hits F5/refresh button on top. He should get an alert saying "You cannot refresh the page". 2) Also if the user opens a new tab and tries to access the same url in prev tab he should get an alert "You cannot open same page in 2 tabs" Anyway I ca...

jQuery's equivalent to 'enabling' an input

I have a disabled text input that loads as: <input type="text" name="Email<%=i %>" disabled="disabled" /> I'd like the jQuery statement that enables it. Seems like: $("email0").attr("enabled"); should be close but doesn't work. ...

jQuery/css/html: scrollable table with fixed header

hi all, i know this question has been asked several times but i couldn't find a satisfying, x-browser solution yet :( i thought the easiest way to acomplish a scrollable table with fixed header should be using 2 tables: (1 for header, 1 for the content) and kinda sync them. i've tried that but there's always slight glitches in the layo...

jquery only fire if div#sidebar exists on page

I'm using the following code to control a div with the ID 'sidebar' var top = $('#sidebar').offset().top - parseFloat($('#sidebar').css('marginTop').replace(/auto/, 0)); $(window).scroll(function (event) { // what the y position of the scroll is var y = $(this).scrollTop(); //...

jquery sum values of checkbox and place in adjacent td

How can I say in jQuery - Sum the "value" of all checkboxes within each div.checkboxes and put the summed value to the next ? <td> <div class=checkboxes> <LABEL style="white-space: nowrap;"> <INPUT type="checkbox" name="user_registered" class="checkbox1" value="14" > </LABEL><BR> <LABEL ...

Selecting a "select option" after creating it with ajax

I have a page that has a series of "related" selects. Everything works fine UNLESS there is an option that is pre-selected. I can set the "pre-selection" to work if I put an "alert" in the code but without it it doesn't work. For Example: function loader(){ if ($("#prod_1").val() > 0){ switchBatch(1); $('#batch_1')...

Odd jQuery IE problem

Hi guys, I am trying to implement this function which works everywhere except every IE version (go figure) <script type="text/javascript"> $(function() { $('#twitterUserTimeline').liveTwitter('#regional from:el_carabobeno', {refresh: false, mode: 'search', showAuthor: false}, function(container, newCount){ $("....

Select all links that have a certain get param?

For example, I want to match all links that have the iframe param. Thus, it would match: <a href="http://www.example.com?iframe"&gt; <a href="http://www.example.com?iframe=1"&gt; <a href="http://www.example.com?iframe&amp;sortby=awesomeness"&gt; ...

Can I determine what event triggered an event handler in jQuery if I bind multiple ones?

Check this example... $('button').bind('click focus', function() { // Did I click or focus? }); Is there a way to work that out when binding multiple events to one handler? This may work, but it is kind of ugly... var eventType; $('button').click(function() { eventType = 'click'; do(); }); $('button').focus(function() { ...

If variable is null set the value to 0 with jQuery?

Hi, I am validating some fields and check if the length of a select element is larger than 0. I get the error "'length' is null or not an object" because id$=SelectResult is a listbox and can have no values and therefor return null and var val = $(this).val(); doesn't like that. function checkControls() { var itemLevel = $("select[t...

Jquery: Take # from input and create div

Hey Guys, I have a few inputs which allow people to input a number (in px) for width, one for the # of columns, and another input to set the margins for each div.. Using jquery, how do I take these numbers and create these divs with the proper width and margins? Example: [Input] Width: 960px [Input] # of Columns [Input] Margins Basic...