Is there any way I can parse a chunked response through AJAX as the chunks are being received?
For example, server.com/ping is set up so it sends a new chunk with some javascript in it, something like ping(), every 10 seconds which updates a number on the web page visible to the user. Is there a way to parse the individual "chunks" of i...
How can i add the total width off all submenu li's to the submenu ul?
width() method of jQuery?
<ul>
<li>level 1</li>
<li>
<ul style="widht:150px;"> //total width children li / add width li's
<li>level 2</li> //width 100
<li>level 2</li> //width 50
</ul>
</li>
<li>level 1</li>
<li>
<ul style="widht:150px;"> //total wid...
$(document).ready(function() {
function GetDeals() {
alert($(this).attr("id"));
}
$('.filterResult').live("click", function(event) {
GetDeals();
});
});
What do I need to pass as argument in function GetDeals() so that I can manipulate with $(thi...
I have an accordion which has different sections to save and display different types of information. But there is only one save button to handle all the sections. If anyone can please give me a clue on how to achieve this using jquery bind and unbind.
...
I know, silly question but what do I put where?
I post data to a php processing page:
$insert = mysql_query('INSERT INTO '.$table.' ('.substr($addfields,0,-1).') VALUES ('.substr($addvals,0,-1).')');
a bit like that
I want to have
if($insert): echo 'Message 1'; else: echo 'message2'; endif;
what do I do in my success: function(...
So I think jStorage is what I need to solve one of my problems. It needs JSON to be working with jQuery, so I've tried including it, but it doesn't seem to work. I have no idea what JSON is actually. Here's my code (jQuery is loaded higher). It doesn't even show the alert window.
<script type="text/javascript" src="jquery.json-2.2.min.j...
Hello All:
I have one div with predefined width (say 80px), but the length of the content in the div can be long, can any body tell me how to increase the width of div based on content length?
my div looks like
<div class="content">
Text here
</div>
I have tried to use jQuery to resize it, but I am always getting 0 value when I...
hello, i have jsp and i use datatable (jquery).
When i load my page in the console i have this message
Column 3 is not defined
How can I remove this message?
It is an error ..?
Thx.. ;)
edit: Script HTML
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#clientDatatable').dataTable( {
...
I have a filter running on a set of list elements which fades the lesser desirable elements down to 0.25 opacity but I'd love to have their opacity return to 1 and then back down to 0.25 on hover over and out. Is this fairly simple to do?
I'm only having trouble finding a way to grab the selected element's current opacity so I can store...
hi
i am a php developer and using an multiple select box , i want when we select a multiple
option from the select box then value of every select box should be display in text box how
can i do this with the help of jquery please help if anybody have solution of this
thank's
...
I have a header on my website that is fixed and is say 100px high. As the page is scrolled the website's content scroll underneath the header.
The problem is, if I now click on an anchor link at the top of the page it will jump to the intended section which will then be hidden underneath my fixed header.
Is there a way to have the anch...
I write this code for checking:
var num = $("#knum").val();
if (isNaN(parseInt(num))) {
$("#errorknum").html("Please define a number.");
}
else {
if (num < 1 | num > 249) {
$("#errorkrnum").html("your number must be less then 249 and can be greater than 1");
}
...
my dynamic generated html look like below
<ul class="missingList">
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer</li>
<li>Please select at least one answer2</li>
<li>Please s...
Hi
I'm currently working on a project involving a form generator.
The user can switch on different databases and add some information from these databases in the form he is building.
I'm working using AJAX, at anytime the user can choose the database using a select, and on change, it refreshes the list of the database's tables.
Wh...
I have coded a jquery script where there is a small grid on screen and using drag and drop users can place tiles on the grid (snaps in place). Currently if you hover over a tile it fades in the option to rotate, but I would much prefer it if you could right click to rotate (making it more natural). I understand blocking right click compl...
Dear stackoveflow, I have this problem. I'm working with an old version of mssql (2000) that has all the tables encoded in windows 1252 (and that's it). I can write and read succesfully with php using this line:
<?php header('Content-Type: text/html; charset=windows-1252'); ?>
If I make a normal post everything works as expected, If I...
i have a list of images which i am getting through ajax and then using jquery $.each() i loop through the images and display a image one after the other after an interval of one second.
I want the user to be able click on a stop button and so that the user can stop at a particular image if he wants to.
So i need to dynamically exit $.ea...
Hi,
I have already read the other questions relating to SVG creation using JavaScript and followed any links, but I can't seem to get this to work. Maybe somebody here can spot where I'm going wrong.
EDIT: I currently have a div with the ID 'svgbasics' in the body of the document, and I'm trying to create an SVG shape using values I ha...
I am looking for advice from all you wonderful people on the best way to do snapping drag and drop.
As part of a simple board game I am currently coding in JS (using jQuery for effects) users should be able to drag tiles from a dock onto a grid.
How does one complete the following objectives (preferably using jQuery).
Enable d...
Hello, i'm trying to get a file upload via ajax form to work.. as i am using the jquery form plugin the file upload works well.. but the rendered html in the respond_to js block is returned as plain text. hope someone can help
controller:
if @visitreport.save
flash[:notice] = "Der Besuchsbericht wurde erstellt."
respond_to...