I am trying to freeze my gridview header for last 2 days and got this link and many other links too provided to me on Stackoverflow as well as from googling. This worked fine when i used it on IE 6,7 and under compatibility mode in IE8 but in normal mode, this code is not working.
This line is giving me an error. I want to implement thi...
I am using onkeyup="this.value=this.value.toUpperCase();"to change input text value in uppercase. This is working but my need is to change a single letter in input box without using mouse event. If i use left arrow key to move cursor backward onkeyup event gets triggered and the cursor moves to end. How do I modify this script, so that I...
Hello,
i have the current .each in my javascript
var divs = array();
$('.div-item').each(function(){
var id = $(this).attr('id');
divs.push(id);
});
How would I delete an id from the array programmatically?
...
I'm trying to format the user input values using following technique, but I get the following error on Fire Bug console
$(this).val().toFixed is not a function
$(".amount-text").bind('change',function () {
$(this).val(($(this).val()).toFixed(2));
});
Can some one help me on this?
...
I am animating html elements (cards) using jquery. I need to animate a dealing action ('one you for you, one for me, one you you, one for me...') so want the cards to fully animate (move position) before the next one starts. I am creating the cards in a $.each function and calling the animation from there (to avoid looping again unnecess...
I am using DataTables to display some data and it works great but I want to customize it slightly and not sure how.
What I want to do is when a user clicks on a column heading to sort that column I want it to initially order descendingly rather than ascendingly. Is there any way to do this?
...
How to get the first form element (input element) that occurs on a page and set focus to it?
I would like to change the practice where I have to set focus manually in every single page to a certain element like this
$("#Clients").focus()
I want something universal, something that will figure out the first input automatically and put t...
Hi All
Please, can someone tell me why the code below works well in Firefox, Opera and IE, but doesn't work in Chrome and Safari?
When I select any of the checkboxes grouped in the 'fixedPricedAreasHolder' div, I want the 3rd radio button in 'areaTypeGroup' div to be selected and highlighted along with the checkboxes group, to show tha...
Hi,
I am using Jquery table to sort my table but its not doing it for numbers.
My data is like that
12,235.25
8,238.45
10,235.25
9,230.23
7,230.17
6,230.17
Please help how can I change my code?
...
Is there any jQuery image scroller script similar to this one http://www.eogallery.com/ .
Like a carousel view, which show small thumbs in the side and big one in center.
Eogallery is good but I need the three images to be scrolled at once not one by one.
...
I searched for a particular term it yielded 'n' number of results. When i do a paginate there was an effect occurring and the contents updated after that.. which jquery effect does google uses during search result pagination? Any suggestion...
...
How easy is it to convert the following PHP form submission to an Ajaxy type form.
Here is the PHP:
<?php //Send Tweet
if(isset($_POST['submit'])) {
$qtweet = $_REQUEST['tweet'];
$connection->post('statuses/update', array('status' => $qtweet));
echo "<div style='padding-bottom: 5px; color: #0099FF;'>Updated your Timelin...
I'm having trouble with the JQuery's droppable feature.
I have modified JS from here: http://jqueryui.com/demos/droppable/
<script type="text/javascript">
$(function() {
$("ul.draggable li").draggable();
$("div.droppable").droppable({
drop: function(event, ui) {
alert('Hello World');
}...
So this works fine on FF, safari:
html file:
$('#maj_password_email').submit(function(){
var _data= $(this).serialize()
$.ajax({
type: 'POST',
url: 'valid.php?var=maj_password_email',
data:_data,
dataType:"html",
cache: false,
success: function(html){
$('div#error').html(html)
...
Hi,
i am using Jgrid. i am injecting the data to the Grid using Xml as we most of us do.
i want the batch update to database, my requirement that when i click on the "Save Change" it generate the Xml of current(updated) grid data.
So, how can i generate the Xml of Jgrid data.
please help.
here is the code.
<!DOCTYPE html PUBLIC "-/...
Hi,
I am trying to make a node.js file uploader with a ajax progress bar.
var formidable = require('./formidable'), http = require('http'), sys = require('sys');
http.createServer(function(req, res) {
if (req.url == '/upload' && req.method.toLowerCase() == 'post') {
// parse a file upload
var form = new formidable.IncomingFo...
This question may have been asked before, but I couldn't find an answer to it using both Google and the built-in search function of this site.
I want to use jQuery on my website, but only if it is displayed on a desktop computer. If my site is displayed on a mobile device, I don't want it to load jQuery.
What's the best way to do this?...
Hi,
I am trying to create a page where I can attach sticky notes at runtime exactly as explained in this tutorial.
I have converted the sample in ASP.NET MVC 2 (which is the technology I am using) and everything works fine.
So I have a DIV in my view
<!-- Contains all the notes and limits their movement -->
<div id="notesDesktop" sty...
Hi guys,
I'm using jQuery and the cycle plugin to simply rotate some images.
On a mouse even I ask it to pause,
$('.content-main-imgholder', this).cycle('pause');
My question is how can now detect if the cycle is paused? i.e.
if( cycle = pause ) {
//do something
}
Thanks in advance for your help.
...
I would to use a callback function in the same 'class' when the ajax request is successful. Here's the code
$.ajax({
type: 'get',
url: ajax_url,
success: this.callback
})
this.callback = function() {
// ERROR! this doesn't point to the right context!
this.run_some_process();
}
Are there any built-in JavaScript construc...