I have got the following very simple code:
function init() {
var articleTabs = $('#articleTabs');
articleTabs.tabs('add',
admin.pageVars.siteRoot + '/articles/themes/' + admin.pageVars.params.id, 'Temas');
articleTabs.tabs({
load : function(event, ui) {
$('.jsonForm').jsonForm();
}
...
I have blocks of content that are toggled on/off via jQuery and I want to have the most recent one clicked to shuffle to the top of the content area.
There are 4 that can be enabled and if you do it in a random order, or even intended order, it is hard to tell which one you just opened if it's not in the view window.
Here is the page f...
This is part 2 of a different problem that I was having... Hopefully this is about as simple as you can get, but I'm clearly missing something.....
The gist is, I'm trying to get a mouseover effect using jquery/css with a mix of background images and colors. It's mostly there, but the issue that I'm having at the moment is, I mouseover ...
I would like a webpage that constantly updates a graph with new data as it arrives. Regularly, all the data you have is passed to the page at the beginning of the request. However, I need the page to be able to update itself with fresh information every few seconds to redraw the graph.
Background
The webpage will be similar to this htt...
Is there a way to get i without looping? like e.ThisIndex?
$('#userContentImages li a').live('click', function (e) {
if (e.button != 0)
return false;
var objs = $('#userContentImages li a');
for(var i=0; i<objs.length; i++)
{
if($(this).get(0) == objs.get(i))
break;
}
//do stuff
...
I've got multiple divs, each with an ordered list (various lengths). I'm using jquery to add a class to each list item according to its index (for the purpose of columnizing portions of each list). What I have so far ...
<script type="text/javascript">
/* Objective: columnize list items from a single ul or ol in a pre-determined num...
Im triying to do a combo where the when the user selects Chile out of the select box, a second select shows up showing the cities. The jQuery code Im using is this.
$(document).ready(function() {
var ciudad = $("#ciudad");
ciudad.css("display","none");
$("select#selectionpais").change(function() {
var hearValue = $(...
I am expecting when I go
$.each($(something).find(something), function(){
$(this).delay(1000).fadeOut();
});
then for each matching element I get a second of delay before it is gone. but what I get is a second of delay and then it all fades out. its 3am and I can't think. please help
...
I'm using the jQuery lazy-loading plugin to defer loading of below-the-fold images on a large web page. This works great. Now, I would like to apply the same technique to a large Flash object which is also below-the-fold. I don't think the lazy-load plugin handles things that aren't images (at least it doesn't look that way so far.) I ma...
I have a 3 column layout using table-less design.
<div id="main">
<div id="left"></div>
<div id="content"></div>
<div id="right"></div>
</div>
The CSS:
#left {width: 200px;float:left;display:inline;}
#content {width: 600px;float:left;display:inline;padding: 0 10px;}
#right {width: 160px;float:left;display:inline;}
I am usin...
I asked this question in another post - http://stackoverflow.com/questions/2597773/how-do-i-put-a-div-box-around-my-cursor-on-click
I got a wonderful answer. See the code below:
<script type="text/javascript">
$(document).ready(function() {
$("#image-wrapper").click(function(e){
var ele = $("<div>");
ele.css({width:"50...
I´m developing a webpage that contains two <p> tags (program and events), that shows two different contents. When I click the program button (it´s a <p> tag), it´s ok, it shows the table on the div´s. But, when I click the events button, again it shows the program <p> tag contents, and I want to show the events table content. I´ve read d...
Hello,
I have a little issue concerning an animation-effect which loads a certain div into the body of the site.
Let me be more precise: I have a div with the id 'contact':
<div id="contact">content</div> The jquery code loads the contents within that div, when I press the link with the id 'ajax_contact': <a href="#" id="ajax_contact">l...
First of all, do not be overwhelmed by the long code, I just put it for reference...I have a function that runs preg_replace on each comment users post and puts matches in a jquery dialog box with a matching open-link. For example, if there is a paragraph with two matches, they will be put inside two divs, and a jquery dialog function wi...
I'm using a jQuery plugin that has its functions defined as such:
$('#mydiv').pluginAction({
someproperty: val,
format: 'mm hh',
labels: ['yes', 'no', 'maybe'],
labels1: ['never', 'always']
});
In my HTML page, I have multiple DIVs that have the same properties for format, labels, labels1, but...
I want to create a wizard that includes a few steps, that in the final steps
we need to include all the steps and save to the data base.
What is the best design to do this ?
Is there an implementation for jquery ?
Do I need to save the steps in session till the final save ?
...
There is an excellent code example on how to make nice jQuery Twitter style alerts here:
http://blog.codecrate.com/2009/10/twitter-style-alerts-in-rails.html
$(function () {
var alert = $('.alert');
if (alert.length > 0) {
alert.show().animate({height: alert.outerHeight()}, 200);
window.setTimeout(function() {
alert....
I have a page which contains a jQuery-UI horizontal slider, created using a little function, inside a div which can be displayed / hidden by clicking on it's title, using $.toggle().
Problem is, once the div is hidden, when it is expanded the slider is gone.
A simplified demo of the problem can be seen here: http://arr.gr/jquery-issue...
I have a link which animates some div's height when its hovered, but the div has a big height and it goes beyond the visible bottom-end of the screen.
I have to scroll to see the data and when I scroll I leave the hover area and the div toggles it's height to 0px.
How to automatically scroll to the end of the div when it toggles?
...
The code for the page is the following
<?php foreach ($organization->index() as $id=>$content) { ?>
<a href="#" id="obtain_branch"><?= $content->name?></a>
<div id="directory_brnach"><?= $content->about?></div>
<?php } ?>
The JavaScript code using jQuery is
// Directory inner branches
$('#obtain_branch').click(function(){
$('#dir...