I have a jqgrid sitting on my screen that displays about 3500 records as a result of a search. I am using paging and user only sees about max 45 records at a time. I want to create a functionality to print grid data (all 3500 records). To do so I am creating another view that I can go to via a controller and it would generate the same re...
the default fade behavior is display:none . which changes the layout of my page.
how can I make it fade to visibility:none so that the page's layout stays the same
...
I have a list of items which includes a person and the company they work for. I need to be able to group the list by company, and then display all the people who work for that company.
For example:
<div class="name"> John Doe </div>
<div class="company"> ABC Company </div>
<div class="name"> Jane Smith</div>
<div class="company"> ABC C...
I am build an autocomplete that searches off of a CouchDB View.
I need to be able to take the final character of the input string, and replace the last character with the next letter of the english alphabet. (No need for i18n here)
For Example:
Input String = "b"
startkey = "b"
endkey = "c"
OR
Input String = "foo"
startkey = "fo...
I prepare a project with a simple webpage, canvas, and javascript files that run game in the canvas. I want load my code when page starts, what is best way?
put body onload?
startup code in body of .js file (not in function)?
attach to window load event?
use some jquery capability?
Thanks!
...
I would like to use the JQuery slider for my mobile application
http://docs.jquery.com/UI/Slider
However, using the Slider plugin, requires me to use the entire JQuery core (29kb) + Slider plugin (6kb).
Typically, that's okay but for a mobile application - that's a lot of data.
Question: Anyway I can use the JQuery Slider and elimina...
Hi,
I tried of checking contains option using jquery for the birthday but its getting exception
var _dob = "4/10";
// this line doesn't work
var _adob = _dob.contains('/') ? _dob.Split('/') : _dob.Split('-');
$('#Month').val(_adob[0]);
$('#Day').val(_adob[1]);
but i can't able to split.. its resulting in error on getting _adob itsel...
function addSearchPattern(file, aStatus, aRule, aExpression, aCategory)
{
$.getJSON(file, {
status: aStatus,
rule: aRule,
expression: aExpression,
categoryID: aCategory
}, function(data){
if(data.errors.length > 0)
{
var errorText = '';
$.each(data.errors, fu...
I Use internet explorer and last version of jquery. effetcs like slidedown, fadein, fadeout dont work with ie but works good with Google Chrome. How to fix it?
Code runs fine in Google Chrome:
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery("#form1").hide();
jQuery("#form1").fadeIn(6000, function() {
// Animation com...
I have this button :
<a onclick="return false;" href='javascript:(function(){s=document.createElement("script");s.type="text/javascript";s.src="http://localhost/demogen/demogen.js";document.body.appendChild(s);})();' class="Button">siteDEMO < /a>
that users can drag to their browser's toolbar, and when they go to their website, by cli...
Hi,
In Jquery i want to check the specific url from youtube alone and show success status and others i want to skip by stating it as not valid url
var _videoUrl = "youtube.com/watch?v=FhnMNwiGg5M";
if (_videoUrl.contains("youtube.com"))
{
alert('Valid');
}
else
{
alert('Not Valid');
}
how to check with contains. or any other ...
i want to use an if-statement to run a code only if the user types in a letter or a number.
i could use
if(event.keyCode == 48 || event.keyCode == 49 || event.keyCode == 50..) {
// run code
}
but is there an easier way to do this? maybe some keycodes dont work in all web browsers?
...
Hi,
I am using a JSON object to create graphs with Google visualization. I am trying to design the data source. For this i am creating a JSON object on my browser.
var JSONObject = {
cols: [{id: 'date', label: 'Date', type: 'date'},
{id: 'soldpencils', label: 'Sold Pencils', type: 'number'},
{id: 'soldpens', label: 'Sold ...
What is best lightweight unobtrusive solution to open any link in custom size popup with "close" button?
Edit 3:
and if JavaScript is disabled then
link should be open in new tab/window
like any any normal page.
popup should be open vertically and horizontally center on any screen resolution ( i've notices pop-up of some siteson net o...
What is the difference between Popup , chromeless window, modal-window, lightbox, hover ad?
Which is unblockable with default setting on any browser, more accessible with screen reader and even accessible if javascript disabled?
...
I have a custom tree structure type display. I have Expand all and Collapse all buttons, which are hooked up with the following simple jQuery.
$('#expandAll').click(function() {
$("img[src='images/plus.gif']").parent().click();
});
$('#collapseAll').click(function() {
$("img[src='images/mi...
hi , i know there is a lot of chart,pie chart open source available in jquery ,
but can u tell me , what is the name of the below screen shot chart plugin ,
am looking free open source link for the below chart ,
Thanks
...
HTML:
<li class="widgetcontainer widget_text" id="text-3">
<h3 class="widgettitle">Static Ad</h3>
<div class="textwidget"><img alt="" src="static/announcement.png"></div>
</li>
jQuery:
if( $('.widget_text')[0] ) {
$('.widgettitle').each(function() {
if ( $(this).containts('Static Ad') ) {
$(this).parent().addC...
Hello, i've used prototype before, and i'm trying to learn jquery now.
The problem: I have an object that makes an ajax call, and i want the success callback to call a function within my object. The problem is that inside the callback function, "this" does not point to my original class.
Example:
function C(){
this.loadData();
}
C....
could one use the beforeSend() and complete() handlers with $.post or do you have to use $.ajax for it?
...