dynamic

Dynamically add Multiple Instances of a Form Based on User Input - Flex

I'm trying to create a form that based on the users input would determine how many forms to generate dynamically. I have a base state with a combo box that contains 1-4. Bases on the users selection I would like to have the next state generate the number of forms. So if you user selects 2 and click next - 2 copies of the form would be ...

C# append to placeholder

So I am trying to make a dynamic form builder where people can add a new form and add fields to that form (the add field brings up several textboxes & dropdown options for that new field). Is there any way to append to a placeholder control when clicking 'add new field'? Also, what is the best way to get the values from those dynamical...

WPF Dynamic GUI elements

In WinForms it was relatively easy to swap out Panels at runtime for other panels. In WPF this seems to be rather more complex (especially from XAML). Can anyone provide clear guidance on the 'best practice' way of swapping gui elements at runtime (think pages in a wizard type situation). Many thanks. ...

C# 4.0 - Does calling a protected method on a dynamic object call TryInvokeMember() ?

In C# 4.0, there is a new DynamicObject. It provides a "magic method" TryInvokeMember() that gets called when trying to call a method that does not exist. http://msdn.microsoft.com/en-us/library/system.dynamic.dynamicobject.tryinvokemember%28VS.100%29.aspx What I would like to know is if TryInvokeMember() gets called when trying to ca...

Dynamic control with DevExpress ASPXComboBox has Javascript problems

I have a problem with a Dev Express component, namely AspxComboBox. My context is this: I want to dynamically generate the interface for some of my business entities. I have designed a user-control that receives some metadata and, based on that metadata, the controls adds text boxes, date-editors and combo boxes to the interface. All of...

Detect the origin of dynamic text in JavaScript

Hi, Is there a way to detect from where the text come (if it's not pure HTML) for example document.write ('ok') will write ok somewhere in the page. But it doesn't show up in HTML, it's dynamic. My problem is that I want to know where 'ok' comes from, when I have a long/complicated source of code. Any idea? ...

Dynamic django forms - Variable fields

I have some models; Vocabularies (tags lists), Labels (tags) and different articles types. These article types have some vocabs enabled, and some not, for instance: Image can tagged with terms from A, B and a news article with terms from A or C. This however only exists at the database level. What i'm trying to do is to output fields ...

jquery scroll function not working on elements wrapping other elements

$(document).ready(function(){ var randomId = "id_"+Math.floor(Math.random()*1000); var wrap1 = $(document.createElement('div')).css('overflow', 'auto') .width(50).height(30).css('border','1px solid black').text('a') .attr('id',randomId); var content1 = $(document.createElement('div')).width(100) .text...

What is the first language to have inline commands in HTML code?

I'm learning PHP. The PHP has inline commands in HTML code to produce dynamic HTML output. <div> <?php echo 'hello world'; ?> </div> In Java and .NET world, there are similar syntax to have commands in HTML. I'm wondering what is the first language or platform have this kind of syntax. Having dynamic code embedded in HTML code an...

Dynamically loaded JavaScript file and non-ASCII characters

I have the following problem: <script type="text/javascript"> alert("1. ČĆŽŠĐčćžšđ"); </script> <script type="text/javascript" src="Tst.js"></script> <script type="text/javascript"> var pScript = document.createElement("script"); pScript.type = "text/javascript"; pScript.src = "Tst.js"; pScript.charset = "windows-1250"; $("body"...

Error with using "dynamic" keyword in Silverlight app

I get the following error: "One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll" I do have System.Core.dll, do have I to find Microsoft.CSharp somewhere? It wasn't part of the project and it isn't in the references list. ...

Silverlight COM Automation and handling COM Events

Let's say I want to catch a COM event: The preliminary documentation says to do something as so: ComAutomationEvent on_event = ComAutomationFactory.GetEvent(some_COM_obj, "SomeEvent"); on_event.EventRaised += OnEvent; OnEvent sig is as follows: private void OnEvent(object sender, ComAutomationEventArgs e) ComAutomationEventArgs c...

Actionscript Loading/Calling Sounds From String Array

i'm attempting to instantiate a bunch of sounds by creating a string array containing each sound's filepath (or name). var soundByName:Object = {}; var channelByName:Object = {}; var soundName:String; var channelName:String; loadSounds(); function loadSounds():void { var files:Array = new Array("sound1.mp3", "sound2.mp3"); //et...

cache headers for dynamic css (generated via PHP)

My CSS file is acutally a PHP file which is served with content-type text/css so that I can use PHP variables in that file. style.php looks like this: <?php header('Content-Type: text/css'); $bgColor = '#000'; ?> body { background:<?php print $bgColor; ?>; } It works as expected, but I am a bit worried if the browser caches the dynam...

Android: parameters in strings.xml possible?

Hello Folks In my android app i'am going to implement my strings with Internationalization. So currently i got a problem with the grammar and the way sentences build in different languages. For example: "5 minutes ago" - english "vor 5 Minuten" - german So my first question is, can i do smth like this in strings.xml: <stri...

Methods to achieve first, previous, next and last navigation

I'm new to programming and have a question about navigation. What are the various methods that can achieve a "First", "Previous", "Next" and "Last" navigation, as seen in article or comic based sites? (Admittedly the "First" link isn't confusing as it can stay static, but what about the others?) For example, on the 50th page, the links w...

jQuery - Dynamically loading content, what's most efficient?

Hi, I'm wondering about this one thing. I'm starting to code a webpage where I basically want the same design all over. Where only the content is changing. So I don't want to load entire new pages where basically the same stuff gets loaded over and over again. I want to load only the contents. Now, I'm presented with two possible sol...

How to add columns dynamically in jqgrid?

Hi, I want add columns dynamically. Means I have got 4 buttons. Add After, Add Before, Edit and Delete. Can someone help me, how to achive this functionaliy. Regards, Arfan Mahmood. ...

stringtemplate .net dynamic object

Hi I am using string template to render some content, but the content may be variable so not sure how to pass it in (using .net / c#) Basic idea is I have a List> which need to end up as parameters, e.g. List<KeyValuePair<string, object>> ret = new List<KeyValuePair<string, object>>(); ret.Add(new KeyValuePair<string, object>("elem1",...

Load jQuery UI Accordion on the fly

I have this jQuery UI Tabs implemented. One of the tabs use AJAX to load the jQuery UI Accordion. I tried to load the Accordion after the content has been loaded. But nothing happend. Here is the code. The accordion is is Tab 2 (index 1). Anybody have a way to do this? Load the accordion based on user triggered action? $(functi...