I have this object:
var count = {
table: 15,
people: 34,
places_details: 85,
story_1: 21,
story_2: 6,
story_3: 11,
}
This array:
var categories = ['table', 'people', 'places_details', 'story_1', 'story_2', 'story_3']
And this function:
function preloadThumbs()
{
var j=0;
for (j=0; j<categories.length; j++)
{
var k=1;
...
I've this Tab Sugar Google Chrome extension which works fine under Windows: when installed, the user can click on its icon right in the browser, and access the Tab Sugar dashboard, as a new page in a new tab.
But for some reason, it doesn't seem to work at all on Google Chrome under OSX: users experience that nothing happens when clicki...
Hello Community,
I am Using Colorbox for a Pop-Up that loads when the page loads. The Pop Up Calls an ASP page with 1 Image, and 1 Button that launches a Chat Window.
I got it to work on my local, but when I go remote the images dont appear (all the file paths are correct it looks like). The functionality is there and you can click on ...
Essentially what is going on is that I'm using a database to create radio buttons and text fields. Depending on which radio button is selected a different text field is shown. That's the easy part. The hard part is that all the names, classes, etc. are dynamic. I've managed to get the script to work correctly with one exception. It ...
In my app i want the users to select a base colour for elements to be displayed on a calendar. From the base colour the user has selected, i need to be able to automatically set an appropriate border colour, and an appropriate text colour.
When i mean appropriate i mean a darker tint or shade variation for the border
Are there any jqu...
Hello all,
I try to use the following rule to limit the length of the uploaded file. However, it doesn't work for me. In the other hands, I can validate the extension of the uploaded file by using accept rule.
uFile: { accept: "jpg|jpeg|gif|png|tiff", rangelength: [5, 7] }
jQuery Form Validation http://docs.jquery.com/Plugins/Valida...
So I have a business case where I've got groups (called Bundles) and they can contain other Bundles. Now, in my interface, I'm trying to have it so when you check the top level, it automatically checks (and disables, but I'm not there yet) the child bundles.
In order to accomplish that, each checkbox has an onchange event where it pass...
I have an ASP.Net ListBox that I'm trying to populate via jQuery, using the following snippet:
$("#MyList_btnAddAll").click(function(e) {
e.preventDefault();
$('#MyList_lstAll option').appendTo('#MyList_lstSelected');
});
The code has two ListBoxes in fact, one a "source" and the other a "destination". As you can tell abo...
Hi Everyone!
I've a webpage You can see webpage here!. There is a facebook user image. When I hover mouse over this then it show tooltip but when I leave mouse from this then it reload the image. To see this reloading image on mouse leave, you can see status bar of your browser. I don't want to reload this image. Please see the source c...
how can i show a div on selecting a radio button.
wat is the event of radio button clik
<script type="text/javascript">
$(".static_class").click(function(){if($(this).val()==="Yes") $("#extra").show("fast"); else $("#extra").hide("fast");});
</script>
Yes
<input id="r2" type="radio" name="14" value="No" class=...
$.ajax({
type: "POST",
url: "misc/AddFriend.php",
data: {
mode: 'ajax',
friend: c,
uID: $('#uID').val(),
fID: $('#fID').val(),
bID: $('#bID').val()
},
success: function (msg) {
alert('OK');
$('#friend' + fID).slideUp('slow');
}
});
IS this right? It wont s...
I am Using Colorbox as a Pop Up with a Chat Button that appears.
How Can I make it so it only Pops up on the users 1st visit to the page?
Or Maybe it Pops up every 3 Visits?
Here is the Page I am Testing with:
http://www.702wedding.com/weddings-in-las-vegas-pop.asp
Thanks Very Much Community of Wise People.
...
I am using this right now...
if($('.current').hasClass('odd') && !$('.current').hasClass('even')) {
var oddMarL = $('.current img').css('margin-left');
var oddMarL2 = $('.touch').css('margin-left');
var oddMarT = $('.touch').css('margin-top');
...
var username = $("#username"),
password = $("#password"),
allFields = $([]).add(username).add(password);
What is allFields? What is $([])?
Being a newbie to Javascript/jQuery, I've never seen this $([]) notation before and I'm interested in its associated methods.
Given that its "$([])", it's trick...
Okay, so I have a snippet of code from a website containing a button:
<button type="button"
onclick="laser(); $.post('sheepDB.php', { vic: vic, num: numVics });">
Activate Her Powers!
</button>
However, when I click the button the first time, the first function executes, but if I click it a second time, both th...
How can I use the Jquery modal confirmation with jqGrid? Say when I will submit my entries it will pop up a modal dialog and display the names with the message for sending to server..
My approach
$("#dialog-confirm").dialog({
autoOpen:false,
resizable:false,
height:180,
modal:true,
...
We're building a piece of forum software for a client. On posts, they want users to be able to upload images (we're using paperclip right now) to insert into the body of the post (similar to wordpress). But they want the system to be able to detect if a number of photos are grouped together, and if so show them in a gallery view (thumbna...
I have the following jQuery:
j(".refreshMe").html(html);
var something = $("li", html).length;
if ( something > 0 ) {
j('.showlatest').slideDown();
}
and HTML:
<p class="showlatest"></p>
What I want to happen is,
if ( something > 0 ) {
j('.showlatest').slideDown();
ADD THE CONTENTS OF 'something' WITH THE TEXT 'NEW M...
Im trying to toggle some divs and its not working, here is the js:
<script type="text/javascript">
$(function(){
$('#toggle_full').click(function(){
$('#full_size').removeClass('toggle');
$('#thumb_list').addClass('toggle');
});
});
$(function(...
This is my code :
$("#demo1").jstree({
"themes": {
"theme": "default",
"dots": true,
"icons": true,
"url": "themes/default/style.css"
},
"ui" : {
// this makes the node with ID node_4 selected onload
"initially_select" : [ location.ha...