jquery

This modelbinding from jquery, what's wrong with it?

I have the following action: public JsonResult GetGridCell(double longitude, double latitude) { var cell = new GridCellViewModel { X = (int)Math.Round(longitude.Value, 0), Y = (int)Math.Round(latitude.Value, 0) }; return Json(cell); } I'm calling it with the following jquery: $.post('Grid/GetGridCell', { longitud...

How to refresh the data in a jqGrid?

Hello, I have been trying to get a grid to be updated from the datasource when a button is pushed. So I have in the click event something like this: $('#grid').jqGrid('trigger','reloadGrid'); However this does not work and I get an error thrown for unknown method 'trigger' I have also tried $('#grid').jqGrid('trigger("reloadGrid"...

stopping or destroying jQuery fjTimer

hi. im using this javascript timer in jQuery: http://plugins.jquery.com/project/fjtimer how can i stop the timer (destroy it for example)? the documentation has nothing about this issue; still if someone has an idea, pls give me a hand. Thanks, Andres ...

sourceforge menu's, cant' seem to find the jquery function that generates them?

I'm digging around sourceforge's cool menus, but can't seem to find where exactly in the javascript they generate them? I realize the layout is in html/css, but where are the events/functions on the jqeury side? ...

Problems with jCarousel

I'm trying to modify jcarousel by displaying 5 items at once and moving 4 at a time, however, implementing the following code: $('#mycarousel').jcarousel({ scroll: 4 }); still only moves 3 items at a time. This works: $('#mycarousel').jcarousel({ scroll: 1 }); by moving only 1 item, but once I go past 3, it doesn't move a...

how to enable only checkbox enabled fields in the fieldset

$('#btnCancel').click(function() { $('fieldset:not(:checked)').find("input,select,textarea").removeAttr('disabled'); }); how to enable only checked boxes? on the fieldsset? but when I do this code its enabling all my fields in the fieldset I need to enable only the fields which checkbox is enabled? thanks ...

Google Maps with JQuery AJax

Hello, I have a simple page which makes two JQuery AJAX calls to get parameters and then it updates a google maps Lat and Lng, For some reason after the two AJAX calls are made, the google map then seems to timeout and go Grey. Anyone ever experienced this before or have any ideas as of why it would be doing this? Thanks ...

Can I use JQuery dropdown AND suckerfish for the same menu?

I am using a JQuery "accordion" style dropdown menu. However, when JS is disabled, my menu is a giant list of items. Is it possible to use a suckfish style menu if js is turned off, but use my JQuery menu if it's enabled? ...

Good javascript event calendar using YUI

Has anyone come across an Events Calendar (e.g. shows events on a calendar format rather than allowing user to choose date) that uses YUI as its base? I have found some based on jquery, but I am trying to standardise my stuff to YUI so wondering if anyone has any there, I can't seem to find one on YUI pages. Otherwise a recommendation ...

How to cancel jQuery UI dialog open?

I have the following: container.dialog().bind('dialogopen', function(event, ui) { ... if (someCondition) { $(this).dialog('close'); // the dialog is not closed! } } How I should make it work? Unfortunately there is no 'beforeopen' event to be hooked. ...

jQuery Data Function

How does jQuery's data function work? Is it more efficient than giving the dom elements a class or attribute? Where is the data stored? Cheers. PS: I once saw a link to a page that does method search for jquery, but I lost it :P ...

How does using 'this' in a simple jquery function work?

Hi, I am having trouble understanding this code: $.functionone = function(){ function setOptions(newOptions){ ... } this.setOptions = setOptions; } what does adding 'this' in 'this.setOptions' for? I understand that its referencing the function setOptions, but does adding the 'this' there make the function get called? I k...

jquery skin slider?

Hello, I am wondering if it is possible to integrate jquery.ui slider into an image? ...

Drop-Down menu not functioning as coded - jQuery

Hello, This is a code for a drop down menu. It is designed to drop-down (umdown) when the cursor moves over button. But when the cursor moves away from Multiple the umdown goes away. HTML markup: <div id="button"><span id="text">Down</span></div> <div id="umdown"> <div id="multi">Multiple</div> <div id="sd">Single</div> </d...

remove an element that is before the selected element

Hi, I'm doing some form error handling/manipulation and I have the need to remove an error div that is before the input that is being validated... HTML: I'd like to remove the div.textError if the input field is validated. I tried this... $(this).before('<div class="textError"></div>').remove('<div class="textError"></div>'); an...

Two functions off one event

I currently have two input fields which toggle the value "value" to either true or false. What I would like to happen is that when the user hits the submit button, I can run an if/then statement for each input field and pass a different variable for each field, then combine those two variable into one variable. For example. if ($('inp...

Javascript framework freezes in Firefox Ubuntu 8.04, don't know what to blame

I learned web applications in the old days before there were Javascript libraries and web application frameworks. When I find time (which might not happen), I wouldn't mind updating my experience with these more modern methods. However, if I did write a web page with one of these modern packages, I wouldn't want to slam together someth...

Ideas on how to make multiple selectable resizeable boxes in jQuery?

I am trying to develop a web application that can take an image and draw multiple, resizeable boxes on the image. I have been looking into a lot of cropping plugins, but i cant seem to find what I am looking for. I just need to be able to draw multiple boxes on an image and return coordinates. I am looking for a plugin that would be e...

CORS not working on Chrome

I've set up Cross-Origin Resource Sharing on a server (Jetty using the CrossOriginFilter) and it works perfectly on IE8 and Firefox. On Chrome, it just ... doesn't. $.ajax({ url : crossOriginURL, type : "GET", error : function(req, message) { alert(message); }, dataType : "json" } ); The error function is i...

jQuery/Ajax SQL live update via PHP help

Hi guys, I have a table that outputs all my contacts via a while loop from my database. my syntax is like this: SELECT * FROM contacts WHERE id = $_SESSION['user_id'] ORDER BY name ASC LIMIT 5 that pulls out all my data and only gives me 5 results. Now my goal is to have a little button that opens up a model box with jquery (this I...