Hi everybody,
I need you suggestion to make some refactoring in jquery code because now it looks terrible for me. I have 4 json calls but the difference it is just the URL call.
EX:
var userId = MyuserID;
var perPage = '45';
var showOnPage = '45';
var tag = 'tag1';
var tag1 = 'tag2';
...
I have a <video> element that is generated by js, and I need to get the height and width of it.
var v = $('video'); v.height() returns null, because when it's run, the video hasn't yet been loaded, so no dimensions in the DOM.
How do I check to see if the video has received a dimension, and if it hasn't, wait till it has to get the hei...
I just downloaded jQuery UI Tabs. In the included index.html file, it works fine, CSS and all, with no customization. I copied the files over to my web server, keeping the directory structure intact, and copied the content code to my already-existing index.html, but it does not work.
My Header Code
<script type="text/javascript" src=...
I have a jquery datepicker script and what I want to do is to change "minDate: 10" value by a select box.
if the first option is selected the minDate:10 , if the second option is selected then minDate:20 etc...
Is it going to update the datepicker in real time every time I select a different selection?
Thanks in advance!
$(function() ...
I'm close to nailing this flyout menu I have been working on, just have a couple of current pain points.
I'm trying to get left/right padding on my submenu items, as you can see I am not quite there. Also when the first submenu is displayed, I want to create a bit of a gap between the first row of list items and the child.
Below is my ...
THis is what I want.
onclick="pager(function2();)
but it doesn't seem to work.
...
hi,
ı want to send href value. but its not working.
function display () {
$.fancybox({
'href': 'index.php',
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
ı tryed this :
function display (who) {
$.fancybox({
'href': 'index.php'+who,
'w...
Hi
I have a page with a flexigrid on it and it works on FF,Chrome,Opera except IE.
it points out that the error is at line of "if(!btn.separator)" which is null or not an object.
Well, every thing inside that block is an error on IE cause i think the error is on the "btn" objects..
has anyone ever encountered this error?
this is fr...
I trying to retrieve some json to pass into a flot graph. I know that json is right because I hard coded it to check, but I'm pretty sure that I'm not passing right because It's not showing up.
Here's the javascript:
var total = $.ajax({
type: "POST",
async: false,
url: "../api/?key=xxx&api=report&crud=return_months&format=json"
}...
I have links that load dynamically onto a background to make them look like buttons. Some of the links take up two lines and some of the links take up 1 line. Eithe way they need to be vertically centered.
My plan to to append a class based on the number of characters and then adjust the padding from there.
So if the link's text is 25 ...
I'm curious how to specify options to a jQuery plugin in a way that some are required, some are optionally overridden, and some can't be touched.
I started off with the usual:
jQuery.fn.plugin = function (options){
var defaults = { username: "", posts:10, api: "http://myapi.com" }
var settings = jQuery.extend({}, defaults, options...
i used this
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$( "#navigation" ).accordion( "option", "active", -1 );
});
</script>
i am devel...
As i am developing an application that makes use of a tooltip that will display a different value when the user moves the mouse.
The user mouses over a table cell and the application then generates a number, the further right the cursor moves in the cell, the higher the value increases.
I have created a tooltip that runs and when the ...
i want after i shuffle a list of images to get all the alt="" value in one array!
but i get always the save value!why?
$('ul').shuffle(); //this will shuffle the list
var a = {};
$("ul img").each(function() {
a[this.alt] = $(this).attr("alt");
});
$.operation(a, shuffle);
...
Alright, so all modals already have an image at the top right to close them. How can I make additionally another anchor to do the same thing? I thought I could use the "closeClass" option which default to "simplemodal-close" and just add that class to an anchor, but it didn't have the desired effect. Is that what I'm supposed to do? Also...
Ok, so I'm using Jquery's AJAX function and it's having trouble passing a URL with a http address. So I'm hoping to "get" the GET values and send them to another URL — so: a local php file begin passed GET values, which in turn forwards the GET values to another url.
Maybe curl is the answer? I don't know. It's got to be a very short an...
What is the best way to keep track of eventListener functions on DOM elements? Should I add a property to the element which references the function like this:
var elem = document.getElementsByTagName( 'p' )[0];
function clickFn(){};
elem.listeners = { click: [clickFn, function(){}] };
elem.addEventListener( 'click', function(e){ clickFn...
I am using JQuery.
I have included a latest jquery-1.4.2.min.js file.
Everyting was working fine.
The asp net structure is as follows.
There is a parent MasterPage and there are few child master pages for the sub categories.
Earlier all master pages were at the same level (folder) in the solution.
To organize the solution I moved one of...
Hello,
I have a website which has many pages:
For example:
HOME: http://mywebsite.com/index.html
SOME PAGE:
http://mywebsite.com/categorie/somepage.html
I decided to make my pages load dynamically with AJAX without reloading the page. So I decided to use jQuery Address plugin ( http://www.asual.com/jquery/address/doc...
<div>
<ul>
<li><a href="#"><span>link</span></a></li>
<li><a href="#"><span>link</span></a></li>
</ul>
</div>
Hi I want to remove the span using jQuery,
I have tried the .unwrap(); but its not working.
please do needful.
...