I'm using the jQuery.sheet extension found at: http://www.visop-dev.com/jquerysheet.html
Anyone have any experience with this plug in? Im trying to import a json file on page load. Following the demo I formatted my json output, but how do I load the output? I have my load function to:
$('#sheet').sheet({
buildSheet: jQuery.sheet.m...
tyring to implement an autocomplete based on :http://www.devbridge.com/projects/autocomplete/jquery/#intro
it looks like it's very straight forward but i cannot get this one to work with an ajax call. by not working, i mean i don't see the drop down. firebug shows no errors.
<script type="text/javascript">
var options, a;
jQuery(...
Hi all,
I've done some broad searching and can't find any good answers for this specific problem.
I have a <div> and a <a> that affect each other's styles on hover (the link color changes and the div background changes). There are multiple sets of these on the page.
I'm having real trouble with the css styles not changing. If I move t...
In javascript, how do I remove an element from an array of objects?
Here is the code:
$.fn.mapImage.deletePinpoint = function(image, pinpoint){
var deleted = false;
for (var i = 0; i < image.pinpoints.length; i++) {
if(image.pinpoints[i].position == pinpoint.position){
image.pinpoints.remove(i);
d...
I have a long list of nested divs. I am passing the ID of a particular element (actually a paragraph element) on the querystring and opening its div and parent onload. However, the list is so long, sometimes the element that opens is hidden below the bottom of the window.
How do I automatically scroll the user's browser window so th...
I have two sortables that are straight UL elements, each with at least on LI element and as many as ten, sorted like so:
$(".sortable").sortable({
connectWith: ".sortable",
cancel: '.no-drag',
}).disableSelection();
I want each UL to have a top-most LI element reading 'Title'. I don't want this LI element to be draggable, and ...
I am just learning jQuery and I have been unable to find anyone specifically address this question.
For performance, would it be better to select $('#element') or $('div#element')? Does it make a difference?
...
Is there a jQuery sample application where I can look for best practices like:
XMLHttpRequest retries in case of network problems
XMLHttpRequest login
XMLHttpRequest element loading indicator
XMLHttpRequest history handling
?
...
Is it possible using jquery (or just javascript) to check for the existence of a query string on the URL?
...
I have two input fields, Id and Desc. I need a javascript which enters the values in second text field based on some of the fields already set. Like for christmas day, if 12/25 is entered, it should say Christmas day.
Its working for one value. But if I put "else if" its not working for multiple values.
[code]
<script type="text/javasc...
Here is a piece of code:
$(document).ready(function() {
$('#nextBtn').live('click',
function() {
$(this).attr('id', 'next2Btn')
$('#cs_contentToSlide').animate({
left: '-=500',
},
200,
function() {
$('#stateGraphic').attr('src', 'images/state2_3stage.gif');
...
I have the following code in my ASPX page:
<script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Scripts/jquery.autocomplete.js" type="text/javascript"></script>
<script src="../Scripts/localdata.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function () {
...
I cant seem to do this in an elegant way, and I don't understand some of the behaviour I'm seeing.
I have my array stored in html like so:
<input type="hidden" id="myField" value="1,2,3,5,8,13">
To add a value I must do this, is this really the cleanest way to do this?
$('#myField').val($('#myField').val() + ',' + 21);
And to remo...
I got stuck today, been searching on stack overflow and google, however havnt had much luck in implementing the solutions I've seen. I have a form, Im trying to create, when i click submit when theres no info in the forms, it prompts an error (it didnt validate), however when everything is filled out correctly, the submit button no longe...
I'm using jqGrid 3.6.5 and IE8
When setting shrinkToFit: false the columns are clearly not aligned with the column headers.
If I turn on shrinkToFit: true the problem disappears, but I lose the absolute sizing of the columns.
Resizing the columns (in code, or dynamically by the user) does not affect this problem.
See image for illustra...
this is my code:
$('.left').html("{% include 'foot.html' %}")
it will show error ,
so how to make it running.
thanks
...
Why? This is driving me nuts???
<script type="text/javascript">
$(document).ready(function () {
$('#slides1').bxSlider({
prev_image: '/Public/Images/btn-arrow-left.jpg',
next_image: '/Public/Images/btn-arrow-right.jpg',
wrapper_class: 'slides1_wrap',
margin: 0,
auto...
If I had a bunch of absolute positioned divs and they overlapped, how would I get a certain div to come to the front? Thanks again guys!
...
Often, when working with jQuery, the need arises to include multiple plugins. This can quickly become messy work, especially when some plugins require additional components (images and CSS files).
What are some of the "recommended" ways to:
a. Manage the required files/components (.js, .css and images) in a way that is easy to maintai...
I'm trying to handle stuff on my site when the window is resized and I have ran into an issue with Chrome that I can't figure out. Here is the code, very simplified:
<script language="javascript" type="text/javascript">
window.onresize = function()
{
alert(1);
alert(2);
alert(3);
...