jquery

JavaScript/JQuery: use $(this) in a variable-name

Hi! I'm writing a jquery-plugin, that changes a css-value of certain elements on certain user-actions. On other actions the css-value should be reseted to their initial value. As I found no way to get the initial css-values back, I just created an array that stores all initial values in the beginning. I did this with: var initialCSSV...

Tricky little jquery selector one : loop over all inputs, and exclude only non-checked radio buttons

Here's the deal : in order to build a correct series of parameters, i'm trying to loop over all inputs included in an ajax built form; Code down here isn't finished, yet I guess you will understand it : $("#formulaireUploadFichier").live('submit',function(e){ var fm = $(this); var fld = []; $('input',fm).not('[type=submit]')...

Google Maps & jQuery InfoWindow Replacement

Hi all, So I'm rewriting my first google maps app and I'm looking at how I create info windows on click of a marker and it seems very inefficent to be adding a listener for each. Previously I've used GInfoWindow and EBubble (http://econym.org.uk/gmap/ebubble.htm). I was thinking that I could use jQuery to show a div with dynamic data ...

Can I use borders and horizontal scrollbars with jScrollPane?

I am designing a web page with an HTML table in which each cell is treated like a "pane". I have a or tag within each cell that uses the overflow:auto setting to allow the user to scroll through the data when it becomes too large for the cell. This works well, but the scrollbars are ugly. I want something sleeker and "less visible" ...

jQuery $(document).ready? and UpdatePanels - some issues

I have referenced this existing query here regarding jQuery $(document).ready? and UpdatePanels I am getting a Javascript error on line... var prm = Sys.WebForms.PageRequestManager.getInstance(); The error is : Microsoft JScript runtime error: 'Sys' is undefined Any resolution for this? What could I be missing? ...

JEditable, how to handle a JSON response?

Right now, The Server response and working with sends back a JSON response like this: {"status":1} After saving, jeditable places the actual response: {"status":1} on the page. Anyway to get around this issue ...

jQuery: Can I get a reference to the bound events on an element?

I have some elements with a function bound to the click event. I want to bind that same function instead to the mouseover and mouseout events. Is it possible to get a reference to the click event so that I can assign it to those other events? I'm imagining something like this (inside each()): $(this).bind('mouseover', $(this).click()); ...

jQuery + Coldfusion, isNumeric not validating

This is the jQuery, both the game_id and the $(this).val() are integers /* AJAX call: save to DB input name=#game_id# value=#game_rating */ $.post("game_rating_submit.cfm", { id: game_id, rating: $(this).val() }, function(data) { alert('data: ' + data); }); This is the coldfusion part tha...

jQuery if clicked?

Hi, With the following piece of code... Is it possible to say, if the li was clicked do this if not(user click somewhere else) do that? The code will only make the div disappear if the user clicks something in the list. I need it to disappear if they click anywhere else as well... ?? Thanks! .bind('blur', function() { $('#search_sug...

JQuery refactoring help needed

Hi all, Here's my javascript code: <script type="text/javascript"> $(document).ready(function() { var currentInput = ''; var currentLabel = ''; $("#userLookup").click(function() { var url = "<%= Url.Action( "ListAll" , "User") %>"; currentInput = $("#User"); currentLabel...

JQuery: How to make DIV within Scroll window focused?

I have the following HTML/CSS: #scrollpanel{height:100px;overflow-x:hidden;overflow-y:scroll;width:200px} <div id="scrollpanel"> <div class="listing ref_1">...</div> <div class="listing ref_2">...</div> <div class="listing ref_3">...</div> ... </div> As you can see, the scrollpanel is a scrollwindow defined to have a ...

Can I highlight an entire week in the standard Jquery UI date picker?

Can I highlight an entire week in the standard Jquery UI date picker? ...

javascript critical sections or semaphore problem

function myobj(){ var gup=this; this.lastindex=-1; this.criticalSectionInTimer=0; this.updateTimer; this.start = function(l){ if((typeof this.updateTimer)=="number"){ clearInterval ( this.updateTimer ); } this.updateTimer=setInterval(function() {gup.getMessages();} , 30); } this.stop= functio...

jquery mouseout event

Hi; In this code: $(document).ready(function() { $(".main_image .desc").show(); //Show Banner $(".main_image .block").animate({ opacity: 0.65 }, 1 ); $(".image_thumb ul li:first").addClass('active'); $(".image_thumb ul li").click(function () { var imgAlt = $(this).find('img').attr("alt"); var imgT...

Calling jquery.load(); from an existing javascript file.

I'm not trying to load javascript with jquery or anything of that sort. Currently I'm modifying swfupload (if you'r familiar with it, great, otherwise it shouldn't matter) to work with a website I'm building. I need the ability to upload, store and delete files. I have the uploading and storing working great. I have a file called hand...

disadvantages of using javascript to create form data

On my current project the business owners are ramming AJAX, jQuery etc down my throat. There is a requirement for 4 seperate forms for different policy types. They want the user to be able to switch between these without visible page refresh and also generate more form content when certain submit buttons are pressed e.g. when a parent ...

How do I hide all but span elements within a list on button click?

Hi folks, Really hoping to get this finished up, and sadly I don't have enough experience to do these last steps. I have a long unordered list that will toggle closed with a button push and show only certain elements of the list. That is working great, but the problem is that I need to only show text within a span in that list. I saw...

Making a JQuery UI accordion work without proper HTML structure (drupal)

I am using JQuery 1.3.2 and UI version 1.7, and Drupal 6.15 I would like to make an accordion using HTML output from Views modual. I modified the .tpl.php file to output the usable <h2></h2><div></div>,<h2></h2><div></div>... format. However, the Views module wraps the output in another <div>, looking like this: <div class="views-r...

jquery hasClass matching element

In jquery can I combine "closest" or Parents() with "hasClass", so it will give me a closest element with given class, if it exists on a page? var matchingDiv = $(this).closest('div').hasClass('SomeClass') if ( matchingDiv != null ) { //we found matching element now manipulate it } I will always have either one matching div eleme...

Jquery Sum of colum and sort problem

I have a jquery table sort that make my total sum disapears from the bottom. Is there any way to keep the total alive during click events? ...