dynamic

Dynamically added controls causing static button event to only fire after second click

I have a custom user control that consists of a dynamic list of controls, along with a static button that is declared (along with the OnClick declaration) on the aspx page. The button shows or hides a panel containing the dynamic control list. I am finding a problem that I presume is related to the dynamically added controls, where the...

How to suppress Objective-C warning "incomplete implementation of class 'SomeClass'"?

I have a class which routing many messages into inner component instance. So the class have only method definition, but no implementation. How can I suppress these warnings for those dynamic methods? -- edited -- My code sample: @interface SomeClass : NSObject { } - (void)mssageA:(id)value1 additionalOption:(id)value2; - (void)mssageB...

Retrive SQL data on dynamic created textbox

I am using C#, Visual Studio 2005 I have created textbox on runtime/dynamic way and inserted/saved sql data on database but the problem is how to retrive the same data on same way for edit / update. e.g. col1 col2 mahesh 1000 kirti 2000 the above data stored in sql server. I don't know how t...

Database Storage of Dynamic Methods in C#

How can I store C# methods in a sql server instance to be loaded and run dynamically (at runtime) at a later date? I am about to begin a production test project at work where I would like the appropriate test methods for the product to be loaded at runtime. I have looked at Reflection.Emit DynamicMethod briefly but it is not serializab...

Refactoring with dynamically typed language

Ok, I'm not trying to start a flame war here, and I know the argument between static and dynamic languages has been hashed out many times, including here. But I have a very practical question that hopefully someone here can shed some light on. Sorry for the length, but this is not a simple question with probably not a simple answer. Rub...

Can't call posted value from dynamic php and ajax form.

Hey guys, I built a page that automatically generates new divs when you click "add product." Each div contains a form with unique names and ids. I used this PHP and AJAX multi-level form tutorial to make my forms - http://www.codingcereal.com/2009/09/autopopulate-select-dropdown-box-using-jquery/ Issue is, I can't seem to call the valu...

Can you use dynamic finders or grouping tables via scaffold in Grails?

I'm working on a very, very quick and dirty application using almost entirely scaffold to do it. This is only for internal use, and it's just to replace a spreadsheet, so while I know that I shouldn't rely on scaffolds for real production use, I still intend to use them where I can for efficiency (...just wanted to make sure we aren't ta...

Auto resize height div according to dynamic child div

Hello All, Begginer in javascript, I'm trying to make a system tabs. All work fine, but when i want a tab with moveable content (in this exemple, i tried with a accordion), the height container div don't resize to child content. $(document).ready(function() { //Tabs init $('#mask').css({'height':$('#panel-1').height()}); $('a[rel=pan...

Dynamic Linq GroupBy

I followed the bellow steps to solve a similar problem as described however i dont seem to be able to get the solution to work http://stackoverflow.com/questions/1465700/system-linq-dynamic-select-new-into-a-listt-or-any-other-enumerable I have even created a project so that it is the exact same as shown. I get an error saying that "No...

Perl, dynamically include package

Let's say I have a perl module file and I want to include and use it dynamically at runtime. Said module includes a class that I need to instantiate without knowing its name until runtime. For example, #inside module.pm package module; sub new { #setup object } #inside main.pl #get module.pm as argument my $module_var = #load refe...

How can dynmically change a line of a JavaScript function?

Hi all, Suppose I had the following function: function alertMesg() { alert("This ok function alerts message!"); } Now at run time I would like to change the alertMesg function to do something else. My thought was to do somehting like this. var temp = window.alertMesg.toString.replace("ok","great") temp = temp.replace('function a...

How to dynamically set a property of a class without using reflection (with dynamic) in C# 4 when property name is coming from another source

Hi, I'm building/updating an EntityFramework EntityObject on runtime. I want to set the properties of the entity class, property names and values are coming from another source. So I'm doing this; public static EntityCollection<T> UpdateLocaleEntity<T>(EntityCollection<T> entityCollectionToUpdate, params ILocaleControl[] values) ...

HTML5 iPhone dynamic caching of images

Hi We are building web applications for the iPhone that work offline. But we are having difficulties caching dynamic images. Please read on and I'll show by example exactly what I mean and what we have done so far. So for example let's say we are building a simple list application with just 1 page. The application's only purpose is to ...

Dynamic Appending of Views and crashing

Hey everyone, again! Having another issue, and this one is BAFFLING! Here we go. We have a layout... <?xml version="1.0" encoding="utf-8"?> <!-- Template for creating a result in MediaUpload --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_heigh...

Webpage navigation with persistance - ASP.NET C#

I have a website that is already completed in ASP.NET. I need to add a section at the bottom that holds a live streaming video chat (Flash Object), and I need it to persist over different page visits. e.g. I have profile.aspx and local.aspx that might be visited and I need the little chat frame at the bottom to persist between page c...

Dynamic Programming Book Recommendation?

I've been trying to learn dynamic programming but it's been hard. The books and lecture videos I've come across so far usually talk about specific problems in dynamic programming but don't really enable me to grasp it. They're sort of like books that when introducing recursion, give examples of problems like towers of hanoi and printing ...

How to dynamically define a class method which will refer to a local variable outside?

class C end var = "I am a local var outside" C.class_eval do def self.a_class_method puts var end # I know, this is not correct, because the 'def' created a new scope; # I am asking a solution to make it; # I also know that use 'define_method' can create a instance method without creating a new scope. # but my...

Creating a dynamically sized Flex list component

I know there are a lot of questions about dynamic sizes for Flex components, but this one is quite specific and the other answers aren't a whole lot of help. Briefly, I need a List that resizes to exactly fit its content, unless that height exceeds its (dynamically sized) parent container. My requirements are as follows: The component ...

DynamicObject.TryConvert not called when casting to interface type

The following code throws an exception. TryConvert is not being called for the cast to interface. Why is this? Can I work around the problem? using System.Dynamic; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { dynamic test = new JsonNull(); var ok = (st...

Crystal Report: Change ODBC connection to use dynamic dataset from csv file?

Hi All, The Problem: I currently have a few hundred crystal reports which get populated via an ODBC connection. I have to programmatically change this so I can populate a DataSet from a csv file and then populate a report based on the dataset. The main aim is to do this without actually modifying any of the reports (as that would mean...