FAQ Database Discussion Community


Javascript toggle click off

javascript,hide,expand
I am working on adding several expanding divs to a page, but am running into trouble getting the divs to automatically collapse when another expands. Here is the script that I am working with: $(document).ready(function() { $('.nav-toggle').click(function(){ var collapse_content_selector = $(this).attr('href'); var toggle_switch = $(this); $(collapse_content_selector).toggle(function(){ if($(this).css('display')=='none'){ } }); });...

Web API 2.2 - OData v4 (Manually Parsing Uri + Expanding)

odata,web-api,expand
I have an ODataController with a Get method as such: public IHttpActionResult Get(ODataQueryOptions<MyModel> queryOptions) { IQueryable<MyModel> models = _Models.AsQueryable(); // _Models Defined in Controller as List<MyModel> and is already populated with nested data for both .LevelOne and .LevelOne.LevelTwo which are two other Lists. Uri fullrequest = Request.GetRequestContext().Url.Request.RequestUri; // http://localhost:8080/odata/Root?$expand=LevelOne($expand=LevelTwo) Uri...

Two different anchors to expand/collapse the same div

jquery,html,anchor,expand
I have written a code that expands a div when an anchor is clicked. I want to add another anchor that expands the same div when clicked but when I add the second anchor the first one doesn't work. Is it possible that two different anchors can be used to...

Expand/collapse not working using java script in html

javascript,html,collapse,expand
this is the link http://jsfiddle.net/susxK/124/ When I am clicking the customer services not happening anything can any one help me for this issue. expected output: clicking the customer services i want to show the full table.In the same way collapse. ...

Expandable CSS div not working in iOS 8

html,ios,css,expand
I've got some expandable/collapsible divs that are working fine on desktop computers (tested in Chrome, Firefox, and IE). They also work fine in Chrome for Android on a mobile device. However, the divs don't expand in any browser on iOS 8. Clicking on the headers will change the color and...

How to get fully expanded gnu make variable value

variables,macros,make,expand,expansion
I'm trying pass the fully evaluated value of a recursive make variables to a $(shell ...). I've tried many ways, including a macro to compute the final value myself, but have not had success. I'm getting the intermediate variable syntax in my shell instead of the fully expanded recursive variable...

WordPress expanding grid with thumbnail

javascript,css,wordpress,grid,expand
I'm using codrops solution to display team members in an expanding grid: http://tympanus.net/codrops/2013/03/19/thumbnail-grid-with-expanding-preview/ I was already able to change some code to display my post thumbnail in the grid preview. However, I want to display the same picture in full size in the expanded view. In the original version it...

wxPerl: add component which resizes automatically when parent frame gets resized

perl,fill,expand,wxperl
I am relatively new to Perl and I am using wxPerl to create a GUI application. Now, I want to add a Panel into a Frame, possibly using a sizer so that the panel resizes automatically as the frame gets resized. So here's what I got: (1) I have to...

How to expand data before reshape in R

r,reshape,expand
I have a dataframe that looks like this: as.is <- data.frame(Project = c('Proj A', 'Proj B', 'Proj C', 'Proj D'), Start.Date = c('16.02.2015', '02.03.2015', '16.02.2015', '09.03.2015'), Duration = c(3, 2, 2, 4), No.Of.Resources = c(3, 5, 2, 6)) I need to change the format so it looks like this: to.be...

expand div onClick

jquery,css,expand
Hello i am trying to make an expandable div when i'm clicking on a button: and i want to make the animation with steps, the first step is clicking on the button, the second one the div width expand, and the step 3 the div height expand for get the...

collapse specific nodes on load in d3 tree

jquery,d3.js,tree,collapse,expand
Hi il update my question also il included a working jsfiddle to clearly see what i want to do.... http://jsfiddle.net/elviz/Ge58Q/15/ nodeEnter.append("text") .attr("dy", 3.5) .attr("dx", 5.5) .attr("x", barWidth +20) .text(function(d) { return d.redirect_info; }) .on("click", function(d){ // using the value in d.redirect //search for the node with item_id equal to d.redirect...

Javascript - Dynamic Expand/Collapse All

javascript,jquery,tree,collapse,expand
I have a jQuery Tree Report that I am trying to create 'expand/collapse all' buttons for. The following two pieces of code are fired when the corresponding buttons are pressed and work great: for (i = 1; i < 100; i++) { var el = $('#dtt_2597807651112537_table tbody tr')[i - 1];...

JavaFx TreeCell how to expand nodes after one second

javafx,nodes,expand,treecell
i'm implementing the Drag&Drop on a generic TreeView. My purpose is to expand a folder during DragEntered event after a second of stationing, actual code: setOnDragEntered(e -> { TreeItem<TreeItemContent> enteredItem = getSourceItem(e); if(model.isFolder(enteredItem)){ enteredItem.setGraphic(images.getFolderOpened()); enteredItem.setExpanded(true); } e.consume(); }); desired: setOnDragEntered(e -> { TreeItem<TreeItemContent> enteredItem = getSourceItem(e); if(model.isFolder(enteredItem)){ if(dragDuration >= 1...

VB.Net - How to dynamicaly search for a string in all TreeView nodes expanding and collapsing nodes matching (or not) the search string?

vb.net,search,treeview,collapse,expand
I´m trying to implement dynamic search on a treeview component, and I´m almost done with it, except that since it´s a dynamic search based on the textchanged event of a textbox, the first characters of the search string are always found, so the search function expand all nodes because they...

Vertical Nav Menu with submeu that expands

html,css,menu,nav,expand
I am trying to create something like this http://www.thomascheng.com/portfolio.php# But I'm not sure what it is called in order to search for it. What I am interested in is how the submenus expand out when you click the main link, and then when you click a submenu item, the right...

Collapse current div expand next div on button click

jquery,twitter-bootstrap,accordion,collapse,expand
I'm working on part of a large Q&A form, there is an accordion on one of the pages which you can view here. http://jsfiddle.net/Covanant/rxpdz2q9/ The way the form works is that when you answer a question in one accordion, it collapses then expands the next accordion, with the exception of...

odata - combining $expand and $select

select,asp.net-web-api,expand,odata-v4
In odata v4.0 is there an option for combining $expand and $select together? I have a scenario wherein I'm trying to get specific columns in productItemChoices and item. The below query will give you all the columns in productItemChoices. I only need one column in the productItemChoices odata/Products(08f80b45-68a9-4a9f-a516-556e69e6bd58)?$expand=productItemChoices($expand=item($select=name)) ...

expand element on click with isotope

css,sorting,click,jquery-isotope,expand
Using Isotope to sort and filter some information. Need to initially display only the title of each list item, then expand it to show details on click. Each of these actions is technically working (isotope is sorting/filtering properly, clicking the title div is causing the details div to display), but...

How to expand div based on child content size?

html,css,containers,expand
I have a following structure on my view: <div id="container_card"> <div id="child_top_container"> <div id="logo"><img src="http://placehold.it/175x100"></div> <div id="title"><p>This title block width depends on size of logo</div> </div> ... </div> Div #container_card have fixed width and height, i.e. 600px x 300px. Also, Div #child_top_container follow same width, 600px but the height is...

VB.NET - Extend property in child class

vb.net,inheritance,properties,expand
Maybe somebody can help me out please, i can imagine it is a common need: I have a base and a child class. The base class has a property named "hello". Now I need to add extended functionality in the property Set of the child - How can I achive...

collapsing/expanding compound node in cytoscape

javascript,collapse,expand,cytoscape.js
Does cytoscape.js support collapsing/expanding compound node ? Eg. before collapsing node1 (-) --node1.1 --node1.2 ------node1.2.1 After collapsing node1 (+) A (+) or (-) sign to expand/collapse would be great. Looking for options to Group a set of nodes using Compound node and collapse/expand via user-interaction. If cytoscape.js doesn't support this...

JQuery to Simulate Accordion in a Loop

jquery,css,class,loops,expand
I am trying to implement a solution loosely based on: Expand and collapse a div using javascript But my code is different. In a loop I have the following: var results_div_id = "results_tab_div" + i; var results_html = "<strong>Tract: " + results.features[i].attributes.TRACT + "</strong> <br />"; results_html += "Owner: "...

jQuery Expand a tag not working correctly

javascript,jquery-ui,collapse,expand
I have been trying to get the Expand Collapse on an anchor tag work but somehow I'm missing something. I went through almost all links here but wasn't finding the difference between my code and the help options. All I want is a simple expand on click of the "+"...