JQgrid and Java
Hi, can some one point to jqgrid + java web app solution or especially with populating the grid and sending the form back to server. there are several php examples but nothing on java. Help will be appreciated! ...
Hi, can some one point to jqgrid + java web app solution or especially with populating the grid and sending the form back to server. there are several php examples but nothing on java. Help will be appreciated! ...
Hi, the following function does not work as I thought it should have. For some reason, the loop breaks whenever one the the validate function returns false. Why is that? Here is my code : function validateGroup(input) { if (!input.value.match(/^[0-9]{0,2}$/)) { $(input).addClass("invalidField"); return false; }...
Please excuse my ignorance I am not very familiar with Javascript and have been tasked with repairing a bug by a developer no longer at the company. The onclick works perfectly in FireFox, however in IE 7&8 (the only ones we test for), it appears to run through the onclick functions properly, then instead of the data being submitted to ...
I have a standard view and some standard input tags without runat=server: <button id="submit">submit</button> <button id="clear">clear</button> Pressing either causes the page to submit. Instead, I want them to do nothing since I'm handling the click event with JQuery. How do I do this? EDIT Here is my jquery code $('#submit').bind...
I have a row of links across the top of my page which are meant to act as tabs, when one is clicked I want its DIV to show and the rest to hide. I'm really not sure the best way to go about this. What I originaly came up with: $("#overall").click(function(){ if ($("#overall").is(":hidden")) { $("#hourly-div").hide("fast"); $("#da...
The following code works just fine in IE, FF, Chrome and Safari, but I am wondering how efficient it actually is when scaled to a lot of users and whether it is accessible to screen readers/special needs users/etc? Specifically, is there a better way to write the jQuery so it uses less $(this) references, and does that even cause any pe...
hi all I have successfully implemented jcrop and paperclip to crop images by going to another page ie the crop.html.erb but i want to be able to do all cropping on my current page where i upload the image(s) in a popup div / dialog. so somehow i need to load this the crop.html.erb page into a popup div on click. Here is the code on t...
I've got a simple setup where when one hovers over the #ProductLink li, #ProductListing ul opens, then closes when the mouse moves away. $(document).ready( function() { $("#ProductLink").hover( function() { $('#ProductListing').slideDown(200); }, function() { $('#ProductListing').slideUp(200); ...
Hi I have the following jquery code to call a webmethod in an aspx page $.ajax({ type: "POST", url: "popup.aspx/GetJewellerAssets", contentType: "application/json; charset=utf-8", data: '{"jewellerId":' + filter + '}', dataType: "json", success: AjaxSucceeded, error: AjaxFailed }); and here is the web meth...
I'm trying to change the background color of a div on mouseover and mouseout. Instant change to yellow on MouseOver, and slow fade on MouseOut. function hilightel(keydiv) { $('#'+keydiv).animate({ backgroundColor: '#ffffd3' },1); } function lolightel(keydiv) { $('#'+keydiv).animate({ backgroundColor: '#ffffff...
I'm leveraging SimpleModal on a small thing I'm working on to open an iFrame and later close it. Says to post here if having issues so here I am. I'm having issues with the simple modal plug-in for jquery when I go to close the popup, but only on windows with safari. It works in IE/FF/Chrome/Opera on window and works in FF/Safari on Mac...
I'm learning jQuery by trying to understand other people's code. I ran into this: jQuery.fn.myFunc = function(options, callback) { //stuff jQuery(this)[settings.event](function(e) { var self = this, $self = jQuery( this ), $body = jQuery( "body" ); //etc. } //more stuff } My understanding is that $ refers to ...
How do I user the JavaScript "filter" attribute as filter my JavaScript object? I've been reading the following StackOverflow post, and am in a similar situation. I have the following JavaScript object: { 'cars' : [{ "car_id" : "1", "price" : "42999", "make_id" : "050", "year_built" : "2007", "color_id...
I tried using the solution posted here: http://stackoverflow.com/questions/811037/jquery-draggable-and-overflow-issue, but I can't seem to get it to work for myself. I have a container div (div#container) which wraps around all of my draggable divs. The div#container has its overflow set to auto. I've used the scroll option and set it to...
I have the following CSS code for my HTML table, but for some reason the border doesn't go over the header row (the <th>). It's definitely something simple that I missing but I can't seem to figure it out. #dependenciesTable tr.odd { background-color: #ffffff; } #dependenciesTable tr.even { background-color: #CDE0F6; } #depend...
For example if I have HTML ul list like <ul id="ulIdentificator"> <li id="li0"></li> <li id="li1"></li> <li id="li2"><label id="label1"></label></li> </ul> If I use jQuery like this var htmlStr = $("#li2").html(); The result will be only string that contains label tag <LABEL id="label1"></LABEL></li> I need to get ...
Hi, I'm using jquery to parse some HTML, something like: $(html).contents().each(function(){ var element = this.tagName; ... I can access the tagName, children, parent... using the DOM or the more friendly jQuery functions. But at one point a need the whole HTML of the current element (not what innerHTML or .html() return) and I...
Is there a way to reference a control via a Jquery selector without knowing an ID? I was envisioning a function called on mouseover. I've been looking through the documentation but I haven't found anything yet and have the vague sense I'm missing something easy. Update: Zombat, that seems reasonable but I have a problem here that app...
I am new to mvc and jquery In my controller I have ViewData["a"]="true"; I want to access the viewdata object in jquery <% if(ViewData["a"] == "true")%> { $('#div1').show(); } The above jquery doesn't work for me Can someone please shed light on this. Thanks in advance ...
My first time using jqgrid, i am able to manually load the data in the grid, however i cannot see the search/add/edit/delete buttons please help. here is the jsp code. Also have the follwoing css and the js libraries Thanks in advance. <link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /> <link rel="stylesh...