I use the following code to toggle some stuff on a page. The problem is that if a user clicks too fast then more than one panel will open and stay on the page. I'm guessing this is because I'm using click() rather than toggle() but in order to get the full control of the animation I opted for the click function. Is there a way to get aro...
I have this table structure
<table id="latest" class="debt">
<thead>
<tr>
<th width="50">Credor</th>
<th width="50">Devedor</th>
<th>Motivo</th>
<th width="80">Valor</th>
<th width="10"></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->latest as $latest) { ?>
<tr <...
Hi again folks, hope you can help with this one (or even improve it - which won't be difficult!)
I am using UI sortables and tabs. What I can do is drag drop from column to column and manipulate the array/s to serialize it/them.
In short I have 2 cols. "col_a" and "col_b". col_a has 2 tabs Items. Can move from col_a to col_b but if ...
My site has a form which insert records in a database using ajax, at the same time, it "refreshes" a table also using AJAX in the same page showing this new record.
So I have the JS code
// New Record Div
$('button[type=submit]').click(function() {
// Read all the form content
var creditor = $('#selCreditor').val();
var rea...
Hello friends, I am wondering if my jquery function is correct
<script>
window.blinker = setInterval(function(){
if(window.alerta){
$('a.cadastrotopo').css('color','#346698');
$('a.cadastrotopo').css('text-decoration','underline');
window.alerta=false;
}
else{
$('a.cadastrotopo').css('color','#000');
...
Hi.
I have been working with jqGrid and am a bit stumped as to why the following will not operate as expected, the single line of code simply uses the formatter to update a row - if I insert a value into the ID parameter it works fine (see commented line) - and if I use a variable it simply doesnt work.
Am I missing something?
The ID ...
I've been trying to figure out why this isn't valid (according to VS2008).
//Global variable
var sortFields;
$(document).ready(function() {
sortFields = <%= CustomHtmlHelper.ToJson(ViewData["SortInfo"])%>;
//Other Code here...
});
My HtmlHelper code
public static string ToJson(object obj)
{
var serializer = n...
I have this piece of code
// TR Fading when deleted
$('.delete').live('click', function() {
$.ajax({
type: 'POST',
url: 'history/delete/id/'+$(this).attr('id')
});
$(this).closest('tr').fadeOut('slow', function() {
$(this).remove();
if($(this).closest('table').find('tbody').is(':empty'))
$...
what is the meaning of this code:
aoData.push({"name":"more_data","value":"my_value"});
where is more_data and my_value get from?
...
I have a several forms, and I'd like to select only the first and second input box of each form
$("form input:nth-child(1), form input:nth-child(2)");
But this doesn't work because each input has a label next to it, so there is no input that is nth-child(1).
Example at jsbin
...
I am using the Vtip plugin to show title values in a tooltip when hovered. Everything works fine apart from when I try and use the plugin to display toolips on dynamically created data. I normally get around this using live() function. How can I implement the live() function to their code???
this.vtip=function(){this.xOffset=-10;this....
I have made an Ajax request to a PHP script and that PHP script returned this JSON object and when i tested with link text it says it's valid
[
{
"id_annotation": "1",
"annot_doc_id": "page_de_test.html",
"annot_id_auteur": "2",
"anno_startOffset": "47",
"annot_startContainer": "id-aaa",
"annot_endOffset": "88",...
I have successfully installed lightbox module in drupal and now using it for 'sign in' page. It is working fine. Now i want to use it for 'Inline HTML' but i don't know how to do that. Please help me out.
I'm using the following code:
<p><a rel="lightmodal" href="#example">Test</a></p>
<div style="display: none">
<div id="example">Hell...
When a user types in my input field, I would like the div to appear or hide, in the same way as happens on google.com. In my case, when the user types 'ca', 'app' or 'ba' the values should appear. How do I do this using jQuery?
...
Hi all ..
I have a problem in using Samrtm Mysql and Jquery or Ajax
and if I use a div auto reloader
it shows a php error ..
these are my files:
accept.html (Template)
{literal}
<script type="text/javascript">
var auto_refresh = setInterval(
function ()
{
$('#invite').load('accept.php').fadeIn("slow");
}, 1000);
</script>
{/literal}
<d...
I am looking for code/plug-in/whatever that will make a textbox behave similar to what happens when you press the Insert button in a text editor and anything you type is typed over existing text. I am new to web dev, please be little specific. Thanks.
...
I have checkboxes on my page for which I would like to send their state back to the database via ajax. I know how to use jquery with ajax, but I don't know how to get the checked state, both checked and unchecked along with the id of the checkbox so I can send it back to the server.
Any ideas?
...
I have the following HTML code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IT-Services Umfrage - Fragen</title>
<link rel="stylesheet" type...
Hallo all , i have wirtten an ajax request to the database server and the return datatype is xml but the IE is unable to render it. but on chrome it works.what could possibly be wrong in my codeActually i get no response for the the server.the element name i am using in my xml doc is ,,, and notthing more. so i really donotttt know whe...
Hi, i have a script that calls a php file and gets an JSON object from it.
I'm tring to get the ids from the object attached to a specific element that is created by iterating with $.each the json object. Here is what i have done so far:
$(document).ready(function()
{
$("#div2").hide('slow');
$("#div1").empty().html('<img src="a...