nested

seeking help with Chrome & Safari not rendering my table stretched to fit its contents...help?

I have an element on this web page I'm developing where I need my text to conform to the width of an image above it - whose width will always be different - think of captions. I have found numerous references to using a 1px table to force this width sizing behaviour. I am having problems, though with Safari and Chrome "seeing" this instr...

Regular expression for nested tags (innermost to make it easier)

I researched this quite a bit, but couldn't find a working example how to match nested html tags with attributes. I know it is possible to match balanced/nested innermost tags without attributes (for example a regex for and would be #<div\b[^>]*>(?:(?> [^<]+ ) |<(?!div\b[^>]*>))*?</div>#x). However, I would like to see a regex patte...

iTextSharp's RtfWriter Nested Tables

Hi. iTextSharp's RtfWriter2 in version 4 does not support nested tables (as far as I know). However, I think it should not be too hard to implement it. Did anyone try to do that? Is it possible to do it easily and without changing the actual source code of the library (only by deriving some classes)? ...

Nested for loop in xquery

Hi, I want to compare the elements on a list using XQuery. For this I'm thiking about using two for loops nested. Something like this: for $i in $node[*[name(.)=$dN][data(.)!=""] and *[name(.)=$hN][data(.)!=""]] return { for $j in $node[*[name(.)=$dN][data(.)!=""] and *[name(.)=$hN][data(.)!=""]] and $j != $i ...

Nested foreach loop in perl only looping once.

I've written a perl script that opens two files which contain lists. I want to find items in the first list that are not in the second list. The script uses two foreach loops. The outer loop goes through each line of the first list, extracting the necessary item information. The inner loop goes through the second list, extracting the ite...

How can I access nested cell arrays in MATLAB?

I would like to make a nested cell array as follows: tag = {'slot1'} info = {' name' 'number' 'IDnum'} x = {tag , info} And I want to be able to call x(tag(1)) and have it display 'slot1'. Instead I am getting this error: ??? Error using ==> subsindex Function 'subsindex' is not defined for values of class 'cell'. If I call x(1) MA...

WPF: binding nested properties to combobox

Guys I'm trying to bind a "second level" property of my class to a combobox. What am i doing? I'm assigning a ObservableCollection to be the datacontext of the grid that hold all my textboxes and one combobox. The Hierarchy can be described as public class ListaLogradouro : ObservableCollection<Logradouro> { } public class Logradou...

jquery nested accordion problem... won't collapse?

I'm implementing the jquery Nested Accordion script found here: http://www.adipalaz.com/experiments/jquery/nested_accordion_demo.html While it expands just perfectly, none of the sections will collapse if you click on an expanded one. Can anyone help me see what's wrong? This is the jquery: $(document).ready(function () { $('#m...

What is the use of ContextBinding in vb.net?

I am trying to bind nested object to a datagridview in vb.net. and somewhere i found referring me contextbinding. I searched but didn't find any good example and desription of it. can anybody help me with this one for binding nested class object to a datagrid Edited: to add link http://msdn.microsoft.com/en-us/library/system.windows.f...

Shoulda POST and GET Parameters for create action

How to call a create action on a nested resource with shoulda? The following code does not actual work - the end_user_id won't be used as the id for my parent resource. /blog_items_controller_test.rb post :create, :blog_item => {:id => blog_items(:blog_item_one).id}, :end_user_id => end_users(:end_user_two).id, :format => "xml" Any ...

many nested attribute form_for for single inherit

I have this models class Store < ActiveRecord::Base has_many :person , :class_name =>"person" accepts_nested_attributes_for :person end class Person < ActiveRecord::Base has_many :addresses, :as => :addressable, :dependent => :destroy, :validate => false accepts_nested_attributes_for :addresses ...

Creating nested cell arrays in Matlab?

I have two cell arrays one called info{} and the other is called data{} I am reading information in from a text file and am putting the lines into the info{} cell array. When the program finds a blank line I want to to start over with a new info{} cell array and keep inserting the lines until it find another blank line... global dat...

PHP: Why such weird behaviour when I include a file from another directory which also includes a file???!

I've never seen anything like this. File structure: somefolder/base.php includes/stuff.php includes/constants.php base.php: <?php require("../includes/stuff.php"); ?> stuff.php: <?php require("constants.php"); echo "Welcome to stuff.php"; ?> constants.php: <?php echo "IMPORTANT CONSTANTS DEFINED HERE!"; ?> Result:...

Output data from this dataclass

Please can someone help with which controls / method to use to get data out of this class into nested lists, i.e parent, child, grandchild, greatgrandchild? When I run: Dim menu As New MenuBuilder Response.Write(menu.BuildMenu().ToString) I only get the top level links and none of the child levels Thanks. Public Class MenuB...

PHP: populating a nested array from flat scalar values

PROBLEM I have a nested PHP array that I need to populate from flat scalar values. The problem is I cannot know ahead of time what the structure of the nested PHP array will be until I get the request to fill in the flat scalar values. EXAMPLE // example where we populate the array using standard PHP $person['contact_info']['fname']...

android nested listview

is it possible/advisable to have a nested listview? i.e. a listView that's contained within a row of another listview? an example would be where my main list is displaying blog posts, and then in each row, you'd have another list view for the comments for each post (that would be collapsible) ...

Nested JSONObject

Hi! I am having several problems with JSONObjects and JSONArray. I would like to parse this json file: [{ "SourceFile": "AndresIniesta.flv", "ExifTool": { "ExifToolVersion": 8.22 }, "System": { "FileName": "AndresIniesta.flv", (...) }, "File": { "FileType": "FLV", "MIMEType": "video/x-flv" }, "Flash":...

Rails 3 CRUD shallow nested model

Hello ! I'm trying to use this example but it doesn't work. I guess it's because I use a shallow nested model ! I get this error : Template is missing Missing template pprojects/create with {:formats=>[:html], :handlers=>[:builder, :erb, :haml, :rjs, :rhtml, :rxml], :locale=>[:en, :en]} It looks like my app is trying to do HTML and no ...

How to make the view simpler, the controller more useful?

This question relates to cleaning up the view and giving the controller more of the work. I have many cases in my project where I have nested variables being displayed in my view. For example: # controller @customers = Customer.find_all_by_active(true) render :layout => 'forms' # view <% @customers.each do |c| %> <%= c.name %> <% ...

add Items to Sencha Nested List

Hi i got a Problem with adding new Items to a Sencha Nested List Component. currently my code looks like this: var newItem = nestedList.add({text:rowData.name}); nestedList.doLayout(); The Problem is the Items just wont show up no matter how often on on what i do call doLayout. When in debug the nestedList Object, the items are corre...