JQuery :: Accordion And Multilvel Unorderd List?

Jul 17, 2011

I've created a accordion with a unorderd list. You cann see this effect on jsfiddle.Unfortunately there are problems with more than one level. A click in this case hide the parent and next click is needed.

View 2 Replies


ADVERTISEMENT

JQuery :: Accordion To List All Email Received / Sent

Nov 11, 2011

I'm using the jquery accordion in order to list all email received/sent. The header (h3+a) shows the object, the content (div) is the mail text.

HTML accordion :
<div id="accordion"><div>
<h3><a href="#">object 1</a></h3>
<div>mail 1 text</div>
</div><div>
<h3><a href="#">object 2</a></h3>
<div>mail 2 text</div>
</div>
<div>
<h3><a href="#">object 3</a></h3>
<div>mail 3 text</div>
</div>
</div>

Accordion script function:
$(function() {
$( "#accordion" ).accordion({
autoHeight: false,
header: "h3",
navigation: true
});
});

I would like to request my SQL database only when i clic on the header of a mail, and avoid to preload all the mails. The other problem, much important in my case, is to mark the mail "read" or "unread". There is a column in the SQL database for this. So, the mail needs to change to "read" state when I click on his accordion's header. Before using accordion, I was using simple link which reloads all the page. I've no problem with PHP/SQL, but I'm not so good in javascript/jquery, or ajax...

SQL request (simplified) :
$sql = "SELECT mail_object, mail_text FROM table_mail ";
$req = mysql_query($sql);
SQL update read-state (simplified) :
$sql_2 = "UPDATE table_mail SET mail_read=1 ";
$req_2 = mysql_query($sql_2);

So, is there any way to execute this code when I click on a header? After that, I'll asking you how to change header style to differentiate read/unread mail (in bold for example, or change background image/color).

View 1 Replies View Related

JQuery :: Accordion List - How To Make Only Section 2 Visible

Jun 11, 2009

I have an accordion list much like the example here : [URL]. Say for instance I have page links under the heading 'Section 2' of that demo above. How can I make it so that when you visit a page from these links 'Section 2' is visible and 'section 1' and 'section 3' are closed?

At the moment I have :
$(document).ready(function(){
$("#accordion").accordion({
active: false,
collapsible: true
});
});
<!-- start accordian menu -->
<div id="accordion">
<h3><a href="#">Section 1</a></h3>
<div><ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul></div>
<h3><a href="#">Section 2</a></h3>
<div><ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul></div>
<h3><a href="#">Section 3</a></h3>
<div><ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul></div>
<!-- end accordion menu -->
</div>
What I need to add to make 'Section 2" visible only?

View 3 Replies View Related

JQuery :: Expand And Close Accordion List By Choice Without Hover

Jun 25, 2009

I would like to ask what must i change and in which file / line so i can have instead of on hover and closing automatically the ability to expand by myself and close myself the menu with accordion list choise...the site preview is: [url]

View 5 Replies View Related

Accordion Style List That Shows/hides A Separate Div?

May 26, 2010

1 - Accordion style vertical list that expands element (Film # and description) when "+more" link is clicked, and closes the previous open film and description.

2 - Activation of "+ more" shows a photo in separate div, and hides the previous photo that was visible in this separate div.

View 4 Replies View Related

JQuery :: Accordion - Stop The Rollover Effect In The Sub Menus Until The Accordion Animation Is Finished?

Aug 5, 2010

I created an accordion menu with rollover sub menus. My question is there a way to stop the rollover effect in the sub menus until the accordion animation is finished? When I click on a category link on the accordion the sub menu links flashes until the animation is done.

View 1 Replies View Related

JQuery :: Difference Between Accordion Widget UI And Accordion Plugin?

Oct 1, 2009

explain to me the difference between the two? I just finished an online tutorial on Accordian Widget UI and it

View 5 Replies View Related

JQuery :: Limit If A Value Can Be Selected In A Drop Down List (select) Based On Other List

Jun 9, 2009

I have a page that displays a list of people playing in a tournament. I need to be able to generate a Leaderboard based on which players are manually selected by the admin. Next to each person there is a drop-down list. An admin can go in and select a "slot" that a player should be in on the leader board from 1 to 8, or leave it blank if none. What I need to figure out how to do is the following, when a change event happens on a drop-down list, and say the value 5 is selected, I need to check to make sure that 5 is not already selected in one of the other players drop-down lists, in other words, that the 5th leaderboard slot is not already full. if it is, display an error message and make them change that one first. how to do that with jQuery? I'm thinking it will have something to do with the each() function, but not sure exactly how the logic should work.

View 4 Replies View Related

JQuery :: Access The 'a Href' In A List Item In An Unordered List??

Oct 8, 2010

i have a menu and i would like to change the color of the Categories which have subcategories only. In my example the basic categories are: News , Announcements , Contact and Career. Only Announcements and Career categories have subcategories. So i would like those two to turn green. The fact is that the list items include a href ,so i don't know how to access those "a href" combined with "this".

<ul id="my_menu">
<li id="id0"><a href="#" style="text-decoration:none">News</a></li>
<li id="id1"><a href="#" style="text-decoration:none">Announcements</a>
<ul>

[Code].....

View 3 Replies View Related

JQuery :: Simple Expand/collapse List : Big Gap Of Space After The List?

Jun 2, 2010

I have been trying to make an expand/collapse (essentially accordion) list. So far, everything works and looks fine in Firefox, Safari, and Chrome, but in IE8, the page height is static when it loads, with a page height being as if all headers in the list were expanded. The expand/collapse functionality works,but as you can imagine, there is this big gap of space after the list.

The html markup uses <h2> tags for the always-visible header portion and a <div> for the expanding/collapsing content. The <div> content contains form elements and everything is enclosed in a form tag.Anyways, here is the jQuery code:

$(document).ready(function() {
$('<img src="plus.png" class="icon" />').prependTo('.header');
$('.content').hide();[code].....

View 5 Replies View Related

JQuery :: Inserting A List Element Into An Ordered List?

Jul 19, 2010

I'm working on a project that requires dynamic manipulation of an ordered list -- adding and removing elements in response to the user pressing buttons. I've run in to some odd behavior. Here's my code:

HTML

<ol id="track-list">
<li>Static Content Here</li>
</ol>
<input type="button" id="add-track" value="Add Track" />

jQuery:

$("#add-track").click(function(){
var listEl = $("<li>Dynamic Content Here</li>");
listEl.hide();

[code]....

Looks pretty straightforward, problem is when I add the new list element it does not prepend it with any number (being part of an ordered list). Now if I remove the hide and fadeIn lines (just append it), it inserts it correctly with a number before it, but I want this to look pretty being jQuery and all...

View 3 Replies View Related

JQuery :: Accordion-like Functionality ?

Jul 21, 2009

I'm trying to accomplish an accordion-like function, but instead of dropping down the section below, the content just lays over the other options.

For example, take a look at the Accordion example here: [url]

Notice how when section 2 is clicked, section 1 rolls up. I'm trying to achieve something where with section 1 open, the user would need to click on section 1 to close it and then could select section 2 which would overlay its content below, rather than pushing section 3 down.

Is there an option on accordion that I'm missing or can this be accomplished using another widget or plugin?

View 1 Replies View Related

JQuery :: Accordion Not Working In IE7?

Mar 1, 2011

I've tried various other ideas posted here but I cannot get this working in IE7. Sample page :[URL]I am aware there can be issues in IE7 with <div> tags inside <a> tags .. I tried replacing all the divs with span but no success.

View 2 Replies View Related

JQuery :: Can't Get UI Accordion To Work At All

Jul 25, 2010

I am a new jQuery user and am pulling my hair out trying to get an accordion menu to work on my site. I originally tried using the jQuery accordion that you can see in the left column on this page:

[URL]

It worked great in Firefox, but not in IE. So, I decided I'd try Accordion UI and I spent the afternoon learning how to use jQuery UI and themeroller and trying to get it to work, but to no avail. I've tried everything I know to try. take a look at this page:[URL]

(left column only... ignore the accordion references on the right, they refer to the above attempt.) It appears that the jQuery is not working at all - the scripts OR the css...

View 4 Replies View Related

JQuery :: Accordion, Contents On The Fly?

Jul 20, 2009

I am having trouble trying to load contents on a tab in accordion on the fly. Which means, the content for a particular tab will only be loaded and displayed when user click on it. Is there any example available? I am still trying it with Ajax. I know this is the correct direction but couldn't sort things out.

View 1 Replies View Related

Jquery :: Accordion Not Working In I.E 8?

Jul 6, 2010

I'm having an issue with my Jquery Acorddion, it does not seem to work in I.E8 but works fine in chrome and firefox.I have initialised the acordion using the following code:

Code JavaScript:
<script language="javascript" type="text/javascript">
$(function(){

[code]....

View 2 Replies View Related

JQuery :: Accordion Overlap & Not Slide

Oct 9, 2009

Does anyone know if it is possible to have an accordion menu not slide items down, but instead have that list item expand over the elements below it?

View 1 Replies View Related

JQuery :: Accordion-slide.js Does Not Link In IE8?

Oct 7, 2010

Perhaps I'm just using an old version - or, perhaps, I'm just missing something elementary... but when my horizontal accordian slider runs in IE8, I can't click on any of the sliders and link to another page. All's I want to do is click on the picture and link to another HTML page.

[Code]...

View 1 Replies View Related

JQuery :: Accordion With Sublevels Always Showing

Mar 23, 2010

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL]">
<html><head>
<meta charset="utf-8">
<title>Test</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var lastTouched;
var lastType;
var lastContent;
var boxTop = 125;
function resizeElements() { .....

What is happening is that I have an accordion with sublevels, but it's not working properly. When I click on Test1, it should only show test2 and test7, but it is showing test3 and test5 (that are insinde test2), that only should be visible when clicking test2.

View 2 Replies View Related

JQuery :: Animation In Accordion Using Mobile?

Aug 1, 2011

do anyone know how do i slidedown animation using jquery mobile ? im able to do the normal animation thats given in example. Its just kind of hide and show but i need to do a animation like when i click the top div tag it should slide down the inner div content.

View 1 Replies View Related

JQuery :: Collapse All Level In Accordion?

Jun 14, 2011

i want to collapse all level at load in this site : [URL]

View 1 Replies View Related

JQuery :: Get Focus On Input In An Accordion?

Jun 2, 2011

I have some accordions within jquery tabs. Within some of the accordions I have input boxes, select boxes etc. I have no issues with the select boxes, but with the input boxes clicking into them does not give focus to them and I cannot type anything in. However, right-clicking a couple of times do then allow text to be types in.

Example section from accordion with input that cannot get focus:

<h3><a href="#">Search by a reference</a></h3>
<div>
<fieldset>
<label for="invoiceRef">Invoice Reference</label> <input type="text"

[Code].....

View 3 Replies View Related

JQuery :: How To Determine If Accordion Is Active

Mar 29, 2010

I am using jquery accordion where multiple accordions can be opened by user. I added onclick event to that adds source to an iframe within that accordion when user clicks on it. However I want to only load the source into the iframe when an accordion is opened...currently I load the source into the iframe even if they close the accordion.Example:<div id="toggleboxes" nclick="loadIFrame('iframe${iframe}','${mstrObject.firstChild.objectUrl}');">How can I determine if the onclick event on the above div is for open accordion action only?The code below returns object object. I am quite new to jquery and have been scratching my head for a bit regarding this. Does anyone know how to achieve this?I tried the following:var active = $( ".selector" ).accordion( "option", "active");Here is my loadIFrame function.

function loadIFrame(iframeId, reportUrl){
//getter
var isActive = $( ".selector" ).accordion( "option", "active");

[code]....

View 1 Replies View Related

JQuery :: Load Accordion First Before Content?

Nov 7, 2010

I have an accordion constructed similar to the demo here: [URL]

If you browse the above with IE you will see that the content load first before the accordion kicks in to structure content into the accordion nicely.

My question is whether it is possible to get the accordion loaded first and then load the content only after that. This is so that we will not see the raw content first before it got put into the accordion.

View 2 Replies View Related

JQuery :: Accordion Plugin Not Working With IE7?

Sep 28, 2010

I've been trying to implement an accordion script in conjunction with prettyPhoto, a lightbox alternative, and although it works fine in Firefox & Chrome, IE is of course, not happy, and my site degrades horribly! [URL]..

View 14 Replies View Related

JQuery :: Possible To Bind MS SQL Database To Accordion

Oct 2, 2010

Is it possable to bind a MS SQL database to a jQuery Accordion, I want to place data values where the bar (says section1) is, and in the fill space. I'm having an ASP.NET site done, and if that can be coded it would make a great Grid replacement for my orders and be consistent with the rest of the site.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved