dynamic

How do you allow users to dynamically create a web page within a web app?

For example, when a user adds a question to a Q&A site, that question typically gets its own web page, and that web page was created on-the-fly. How can you do this with PHP? Could anyone point me to any resources? Thanks. ...

Python package/module lazily loading submodules

Hello! Interesting usecase today: I need to migrate a module in our codebase following code changes. The old mynamespace.Document will disappear and I want to ensure smooth migration by replacing this package by a code object that will dynamically import the correct path and migrate the corresponding objects. In short: # instanciate a...

Add template items in TinyMCE

I'd like to add "template items" in tineMCE editor. The template items act like a placeholder for dynamically inserted data. An example: Instead of writing: "Hi {firstname}, you are {years} years old." I'd like to insert a object instead of the "{firstname}" that gets replaced to "{firstname}" when saving against the server. It shou...

How to generate WPF Form using T4 ?

Hello, One of our product requirement is to allow the generation of Search form. So we need to facilitate the user to generate the search form based on the selected data fields. Now our application is in WPF. Can anybody guide me how to start this thing. I have been told to research on T4, But any kind of help will be appreciated. Rega...

Adding methods to ExpandoObjects

UPDATE The problem is not the code, the problem is that you apparently can't evaluate dynamic objects from the immediate window. I'm trying to tack on methods to an ExpandoObject but not sure how to get it to work. Here's my code: dynamic myObj = new ExpandoObject(); myObj.First = "Micah"; myObj.Last = "Martin"; myObj.AsString = new ...

ASP.Net MVC, ViewPage<Dynamic> and EditorFor/LabelFor

I'm playing with MVC3 using the Razer syntax, though I believe the problem to be more general. In the controller, I have something like: ViewModel.User = New User(); // The model I want to display/edit ViewModel.SomeOtherProperty = someOtherValue; // Hense why need dynamic Return View(); My View inherits from System.Web.Mvc.ViewPage ...

C# 4: Dynamic and Nullable<>

So I've got some code that passes around this anonymous object between methods: var promo = new { Text = promo.Value, StartDate = (startDate == null) ? new Nullable<DateTime>() : new Nullable<DateTime>(DateTime.Parse(startDate.Value)), EndDate = (endDate == null) ? new Nullable<DateTime>() : ...

dynamic html forms

I am working on dynamic form. i have a radio button, if a user select a radio button, i want to populate a drop down menu based on the radio button values. eg. if radio button value=value1 show drop menu of 3 items (apple, banana, mango) eg. if radio button value=value2 show drop menu of 5 items (apple, banana, mango,apricot, ornag...

On what platforms will this crash, and how can I improve it?

I've written the rudiments of a class for creating dynamic structures in C++. Dynamic structure members are stored contiguously with (as far as my tests indicate) the same padding that the compiler would insert in the equivalent static structure. Dynamic structures can thus be implicitly converted to static structures for interoperabilit...

Get values of dynamically added controls in ListView

I am having trouble getting the input values of dynamically created controls in a ListView. Here is my ListView: <asp:ListView ID="lvQuestions" runat="server" DataKeyNames="ProductQuestionId" onitemdatabound="lvQuestions_ItemDataBound"> <LayoutTemplate> <table> <tr runat="server" id="itemPlaceholder"></tr> ...

Using Dynamic LINQ (or Generics) to query/filter Azure tables

So here's my dilemma. I'm trying to utilize Dynamic LINQ to parse a search filter for retrieving a set of records from an Azure table. Currently, I'm able to get all records by using a GenericEntity object defined as below: public class GenericEntity { public string PartitionKey { get; set; } public string RowKey { get; set; } ...

Copying the whole layout with controls from one aspx page to another page - Moving Controls dynamically - ASP.Net

Hello all Here is my issue. I've a page main.aspx. This page has a button 'Settings'. When it is clicked, I load another aspx page settigns.aspx in a popup. Now in the settings.aspx i allow the users to add controls dynamically. For example the user can create 5 textboxes. When he saves it there, I need to get that controls to main.asp...

Django, dynamic apps support.

Hello All, I am about to start a django project, where I need a base deployment, lets say just for admins initially. Later admins can add instances of my main public site. Now, one instance will, obviously be separated by dynamic sub-domains. I need to capture sub-domains from requests, and compute accordingly. It has its own base temp...

Silverlight: Binding Dynamic Data to a DataGrid

Hello folks, I've run into a problem recently, hoping you all could help. I was tasked with creating an application that can take any DataSet, and display it in a series of grids (using something like a tab control). I was able to do this pretty easily in WPF: 1. Create a WCF Service that returns a DataSet object 2. Create a WPF Windo...

How to Dynamically Create Tabs

This is in C# I Need to basically make TabPages from a textbox.Text so for example: textBox1.Text = "test"; TabPage textBox1.Text = new TabPage(); That is what i want to do.. i know that won't work directly, but that should give you the idea of how i want to create the tabPages.. then i want to be able to call them later on too so fo...

jQuery events within dynamic content via ajax

Is there a way I can load content dynamically using ajax and retain any jquery functionality that the loaded content may have? For example, I'd like to load in a Twitter like feed of DB records. Each record can be voted thumbs up or thumbs down. The voting uses some AJAX and I can't retain event functionality when loaded into a parent...

Part of the function code not executing

I have a WPF program built in C#, and part of it's function is populating two ListBox controls. At the Window_Loaded event the program calls the Update() function in order to populate the ListBoxes, but it only executes part of the function. And if I call the function after an append has been made to the file, the function will even cras...

dynamic hiddenfield after a postback

hi. suppose you save data into a dynamic hidden field ,which is created dynamically during the handling of some postback event. what is the best way to retrieve it from this field upon a postback, (besides searching the request for the key of this hidden field and then retrieving the corresponding value as in the code below)? protecte...

In MODx how do I make a ditto call with a dynamic parents='folderId'

For every page on my site I have a folder in the MODx manager with articles. I'm using Ditto to collect the articles from a folder to generate the page content. The Ditto call is made from a page template. Now what I want is to use the same template for different pages with different articles from the corresponding folders. So the starti...

dynamic html forms radio buttons

I am working on a dynamic form. The form has 3 radio buttons. when you click on radio button 1, a drop down populates. when you click on radio button 2, a drop down populates. etc after the user has clicked on the radio button on part 1, there is another radio button that asks the user if they want another try. eg. another radio button...