I am running into a problem. I was using:
$(this).parents("tr:first").remove();
to delete the row the user clicked on and then:
var row = $('#picTableDisplay tbody>tr:last').clone(true)
.insertAfter('#picTableDisplay tbody>tr:last');
to replace a new (empty) row at the bottom of the table.
But, when the table is full...
I have the following two functions:
$(".content").click( function() {
var id = this.id;
$.get("InfoRetrieve", { theid:id }, addContent );
});
function addContent(data){
$("#0001").append(data);
}
I need to pass the 'id' variable from the first function to the addContent function, I don't quite get how this works. In the a...
that's about it
Basically what I want to do is control the cell submission with a button or any other control.
Has anyone done this?
Here's some code to help:
$('#users').jqGrid({
url : base_url + 'administrator/ajaxuser',
datatype : 'json',
mtype : 'GET',
colNames : ['ID', 'E-mail' , 'First Name', 'Last Name'...
Hi there,
I'm trying to update the source of an image using jQuery. The problem is that the img is running server side as its initial source is being set on load.
Here is the ASPX/HTML:
<h2><asp:Label ID="lblTitle" runat="server" /></h2>
<img id="largeImg" runat="server" width="320" alt="Large Image" />
<p class="thumbs">
<a id="img...
i create a jquery slide which i want the 2 picture 1 slide in from left and other 1 slide in from right. Finally the picture can slide in from left but cant slide in form left.
izit anything wrong of my code?? Any suggestion??
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'custom',...
Hi guys,
I have a rich:dataTable and there i have a rich column with a span.
When the page is loading this span takes some values like: true+false or true+true etc.
Depending on this value, i hide the tr containing this span with jQuery like:
<rich:jQuery query="ready(function() {
jQuery('#inbox:_inboxTable_').find('span[title=test]')....
<option> doesn't respond click/contextmenu events in IE8?
Here is all the code to verify it locally:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-type" content="...
Hi,
I am currently building a website in codeigniter that is based around the idea of being a one page, site, I currently have a main view that looks like this,
<?php
$this->load->view('template/main_menu.php');
$this->load->view('template/left-content.php');
$this->load->view('template/right-content.php');
?>
In the ri...
I came across a case where I have to convert html table data into json. In this process I have to iterate through table and convert one by one(row) into array and then convert the whole array into json? Need help in iterating through table(each ow and column)?
...
I want to implement the Jquery validation on the client. When a user is going to upload a file, the Jquery will check the size of the file and if it exceeds the max size, a user can not upload the file. How to do it using Jquery or Jquery validation plugin?
...
Is there any way of creating a combo box (<select>) with a size of 1? All the examples I can find allow for multiple selects but with a number of options visible at any one time. If this cannot be accomplished with bog standard HTML is it possible in a JS library such as JQuery?
...
Hi all,
I'm getting some confusing results in jQuery, with attr('class') and hasClass(). Basically, I am traversing through table rows and figuring out if the next visible table row has a certain class.
$('table#blocks tr.region').each(function () {
var next_row = $(this).nextAll('tr:visible');
console.log('This: ' + $(this).attr('c...
I am playing around with the Jquery Autocompleter in sfFormExtraPlugin but I am having trouble when i need to create a value not already in the autocomplete list.
The form always submits and empty value for the field with the autocomplete on it... i have found the mustMatch config option which is off by default .. i have also set it exp...
Im using jquery for various things on my site, but one thing im not sure how to do, is have it show an element, then wait X seconds, and hide the element.
$('#form').ajaxForm(function() {
$('#cartcontents').fadeOut("fast").load('cart.php').fadeIn("fast");
});
Thats the js im using now. How could i have it (on submit) display the div...
Hi all,
just a quick question(hopefully).
I want to slide one div in front of another div, with Jquery.
i dont want to hide one div and then slide the other down and i dont want to push one div down when the other slides in.
Any one know a good way to do this? possibly with a plug-in for Jquery?
...
Hi,
I have a page, with a form, and I'd like to display a fancybox when a link is clicked on this page.
I have another working page with a fancybox on, which is fine, but on this page, the fancybox iframe seems to display using the incorrect height/width, and below the form on the page.
Although this is an ASP.Net site, I am using ht...
I'm using asp.net together with jquery. In Default.aspx I have implemented some jquery-tabs that load their data with ajax call. They load another asp.net page MyTab.aspx. My problem is that when I navigate in the tab (MyTab.aspx) it always reloads the full page (whole Default.aspx) but I only want it to reload inside the tab. For exampl...
Hi.
Picture a site with a banner of varying height at the top of a page,
Below that, div#wrapper-inside inside div#wrapper
#wrapper-inside is of fixed width and centered
#wrapper has a big background-image
Now. When the browser viewport width is smaller than our #wrapper-inside, we get a nice horizontal scrollbar, and when we scroll t...
I'm using a JQuery based css menu for my website. My problem however is if I click on one off the menu items. I want it to stay a cetain color, in my case the borrom half off the images.
I got my code from http://snook.ca/archives/javascript/jquery-bg-image-animations/ I used the second example. Heres the example page: http://snook.ca/t...
Hi,
I am loading a "html" page in to a div( ex: #targets) using jquery load().The the div comes under the iframe. After loading the html file, the div height and iframe height not getting increased based on the html file content height.
How to change the iframe and div height based on the htm contents in the div.
...