dynamic

Combobox's Dynamic event in flex

Hello everyone.. I am using flex when i was select combobox item i want to create new form for eg. when i select 1 it will appear one form when i select 2 it will appear two.so and so.... ...

How To: Dynamically-defined properties in .NET

I've created a couple of Comparer classes for FileInfo objects to allow sorting by Name and LastWriteTime properties, but ideally I'd like to combine them into once class, so that I can compare/sort by any property simply by passing through the chosen property name. However, I don't know how to go about this. My comparer class current i...

UITableView Scrolling while dynamically adding data to the datasource object

I have a UITableView that is loaded from an NSMutableArray. The array is populated by data that I get from a RESTful web service request. In order to speed up the delivery of data to the user, I'm using a couple other NSArrays to hold a cache of the next sets of data. What I've done is when i'm nearing the end of my current set, in ...

jQuery - Attach a delete button to autoappend script?

REVISED CODE AT THE END I'm very new to jquery, and even though I love it, there's a lot I still need to learn... The code below will append a new row if the user clicks in the one of the existing cells in a row. That part works fine. I'm trying to figure out how to also have a [-] button at the end of each row that a user can click o...

How to make a library depending statically to link dynamic on HP?

I built few open source binary/libraries and found that the binary/library is dependent on other libraries statically.I want it to link dynamically. This would allow my binaries be moved to any location and will be path independent. I mean if i export the Library path the binary should be able to locate the library and run successfully. ...

C dynamic allocation for a grid when rows are not known

I am trying to allocate a array of char*'s in C. I know the number of columns in advance, but not the rows and I want to allocate the rows as and when needed. I tried to use: char *(*data)[NUMCOLS]; //declare data as pointer to array NUMCOLS of pointer to char data = malloc(sizeof(char*)); now, the above line should allocate for dat...

Adding buttons dynamically to a uitableviewcell - iPhone app

I have a verb conjugation app that displays verb translations in the first cell of a table. At present the translation list is just a string (comma-separated list) but I'd like to change it to have clickable buttons. I had a play around adding buttons to the cell view without too much success but my only experience with custom cells has ...

how to show a textbox when a particular option from a dynamic dropdown is selected in javascript

i have this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" type="text/javascript"> function dropdown...

jquery prevent duplicate function assigned

If I need to assign a click function dynamically, is there a way to ensure the click function is only assigned once and not duplicated? this.click(function(){ alert('test'); }) ...

PHP & MySQL & forms -- flexible search? (ex: X ingredients can make Y recipes)

I'm just getting started with PHP/MySQL, so please forgive the rather simplistic question: As a practice example, I want to create a small dbase of recipes. Each recipe has X different ingredients. The table is simple enough I think - each row represents a recipe and each column after the first(primary key) is an ingredient with a TRUE/...

How SHOULD you make (and use) static libraries on the iPhone

AFAICS, any serious iPhone developer must make and use static libs on a regular basis, or else condemn themselves to buggy, hard-to-maintain, unwieldy projects. But Apple refuses to provide any official docs on the process (just circular references: "dont do static, use dynamic! ... we don't allow dynamic on iPhone, use static!") I have...

Reducing values in one table until reserves depleted in another - recursion?

Hello everyone, I have two tables - let's call them dbo.ValuesToReduce and dbo.Reserve The data in the first table (dbo.ValuesToReduce) is: ValuesToReduceId | PartnerId | Value ------------------------------------- 1 | 1 | 53.15 2 | 2 | 601.98 3 | 1 | 91.05 4 ...

What is the simplest way to display (and change) an image resource on a WPF dialog (using C++/CLI)?

I have a C++/CLI GUI application and I want to display an image as a visual aid for the user to see what step in a procedure they're at. This image will need to be changed each time the user selects the new step. Currently I'm using a picture box and have an image loaded from the disk at run time. So there are a few things I need to kno...

how to increase the height dynamically of 2nd div on giving more data in 1st Div

<html xmlns="http://www.w3.org/1999/xhtml"&gt; <head runat="server"> <title>Untitled Page</title> <style type="text/css"> #t2 { width: 87px; top: 49px; left: -566px; } #t1 { width: 87px; } </style> </head> <body> <form id="form...

C# Dynamic Type in a GenericCollection Property

I have a control mycontrol.ascx This control has a property: private GenericCollection<Item> myCollection; public GenericCollection<Item> MyCollection { get { return myCollection; } set { myCollection= value; } } Does anyone know how i could dynamically change from type Item to say type Product? ...

Make IE respect your whitespace with dynmically changed content

If I have the following line in html: <span></span> wtf and then I run the jQuery statement: $("span").html("test"); It ends up looking like "testwtf" instead of "test wtf". Is there anything I can do about this without changing the html? ...

Looping through dynamically build form

Hi, I have created a questionnaire in C# and when the user has entered their responses I want to capture the answers and save to the database. I am building the content in codebehind and putting it into a placeholder on the page. I can get a handle on the placeholder PlaceHolder a = (PlaceHolder)FindControl("PlaceHolder1"); But whe...

Dynamic web form targetting user specified database fields

I have an issue where I'm creating a greenfield web application using ASP.NET MVC to replace a lengthy paper form that manually gets (mostly) entered into an existing SQL Server 2005 database. So the front end is the new part, but I'm working against an existing moderately normalized schema. I can easily add new tables, views, etc. to ...

Refresh an elements style in Javascript

I have a table which the rows are loaded dynamically from a recordset. I also have used Javascript so that when a checkbox (not in the table) is checked it hides all the rows when column x = y, but I have a vertical border (really just a background image positioned to the right)which fades on the last row of the table using the CSS .sort...

Adding a row to a table dynamically

$(document).ready(function(){ var refreshId = setInterval(function() { periodicRefresh(); }, 9000); }) . function periodicRefresh() { $.ajax({ type: 'GET', url: 'include/ajaxActions.php', data: "action=displayLastEvent", success: function(msg){ var newid = $(msg).attr("id"); ...