dynamic

Dynamic HTML table - highlighting top 3 calcualted rows.

Guys, I have a dynamic HTML table which gets populated by coldfusion and displayed, I have a column called performace which holds numeric values. I need to select the top 3 best performace value in the column and then highlight the entire rows in different colours. Can any one help me in doing it? My server can run only Javascript and ...

How to change object positions in an android layout?

Hi, I'm currently working on a very simple aplication, and I intended to make it change the visual aspect depending on the screen size. The application just has 6 buttons like this: I'm using the AbsoluteLayout, and changing the x and y of the buttons with the methods offsetLeftAndRight and offsetTopAndBottom. I'm not changing the l...

jQuery for dynamic Add/Remove row function, it's clone() objcet cannot modify element name

I'm try jQuery for dynamic Add/Remove row function, but I meet some question in IE8 , it's clone() objcet cannot modify element name and cannot use javascript form (prhIndexed[i].prhSrc).functionKey, but in FF it works very well, source code as attachment, please give me a favor to solve the problem. <script type="text/javascript" src=...

Dynamic upsert in postgresql

I have this upsert function that allows me to modify the fill_rate column of a row. CREATE FUNCTION upsert_fillrate_alarming(integer, boolean) RETURNS VOID AS ' DECLARE num ALIAS FOR $1; dat ALIAS FOR $2; BEGIN LOOP -- First try to update. UPDATE alarming SET fill_rate = dat WHERE equipid = num; IF FOUND TH...

Return/consume dynamic anonymous type across assembly boundaries

The code below works great. If the Get and Use methods are in different assemblies, the code fails with a RuntimeBinderException. This is because the .Net runtime system only guarantees commonality of anonymous types (<string, int> in this case) within assemblies. Is there any way to fool the runtime system to overcome this? I can expe...

dynamic, How to test if a property is available

Scenario is very simple somewhere in the code I have this dynamic myVariable = GetDataThatLooksVerySimilarButNotTheSame(); //how to do this? if (myVariable.MyProperty.Exists) //Do stuff So basically the question is how to check (avoiding exceptions) that a certain property is available in my dynamic variable. I could do GetType...

Reflect on an ExpandoObject

I have written a nifty function that will accept a system.object, reflect on its properties and serialize the object into a JSON string. It looks like this: public class JSONSerializer { public string Serialize(object obj) Now, I want to be able to do this to serialize a dynamic/ExpandoObject, but because my serializer uses refle...

Dynamic form builder using asp.net sqlserver

Hello, I would like to build a dynamic form builder using asp.net with jquery and a sqlserver as backend. The approach I wish to use is to modify the table structure based on user request so I have a database which is structured as one would normally store data in sqlserver i.e. mostly a single table (barring consideration of sub-table...

Aligning music notes using String matching algorithms or Dynamic Programming

Hi I need to compare 2 sets of musical pieces (i.e. a playing-taken in MIDI format-note details extracted and saved in a database table, against sheet music-taken into XML format). When evaluating playing against sheet music (i.e.note details-pitch, duration, rhythm), note alignment needs to be done - to identify missed/extra/incorrect/...

Problem with late binding!

Hi everyone, i was asked this question in an interview. late binding is dynamically identifying the symbol during the runtime as far as my knowledge is concerned.please correct me if i am wrong. i was asked a question like what are some of the problem that we would face when we use late binding in c++. i was actually out of my own ide...

Dynamic Data Website - Hide columns in gridview but show in details?

I have seen how you can hide a column by scaffolding. But how about hiding it from the gridview only and showing it on the details screen. Thanks! ...

Four-color theorem in Prolog (using a dynamic predicate)

Hi, I'm working on coloring a map according to the four-color theorem (http://en.wikipedia.org/wiki/Four_color_theorem) with SWI-Prolog. So far my program looks like this: colour(red). colour(blue). map_color(A,B,C) :- colour(A), colour(B), colour(C), C \= B, C \= A. (the actual progam would be mo...

How to set a property of a C# 4 dynamic object when you have the name in another variable

I'm looking for a way to modify properties on a dynamic C# 4.0 object with the name of the property known only at runtime. Is there a way to do something like (ExpandoObject is just used as an example, this could be any class that implements IDynamicMetaObjectProvider): string key = "TestKey"; dynamic e = new ExpandoObject(); e[key] = ...

How to track my dynamic IP address,is there an API available or other tools?

Hi all, Does anyone know a tool or better an API to track my dynamic IP address? Thanks so much for your help. Yours, Ling ...

Unable to select dynamically generated form elements (ajax)

I have a main.php page the following code is hardcoded in main form <form action="test.php" method="POST"> the following is the code generated dynamically using AJAX <input type="checkbox" value="test" name="test[]"/> <input type="checkbox" value="test1" name="test[]"/> <input type="submit" value="go"> ideally speaking on clicki...

Main page content populated on the fly?

Is there any reason to NOT have a webpage retrieve it's main content on the fly? For example, I have a page that has a header and a footer, and in the middle of this page is an empty div. When you click on one of the buttons in the header, an http GET is done behind the scenes and the .innerHTML() of the empty div is replaced with th...

[jQuery] Descriptions on Hover

<form action=""> <input type="text" value="" class="card-num" /> <input type="text" value="" class="card-cvv2"/> </form> <div class="description"> <p class="card-num">Enter your 16 digit card number</p> <p class="card-cvv2">Enter the 3 digit number at the back of your card</p> </div> All descriptions are hidden initial...

How to make that the LanguageBinder take precedence over the DynamicBinder

Hi I Have a class which implement IDynamicMetaObjectProvider I implement the BindGetMember Method from DynamicMetaObject. Now when i Generate a dynamic Object and Access a property every call gets implicit passed through the BindGetMember Method. I want that at first the language Binder get his chance before my code comes in. It is s...

WPF - Redrawing a Context Menu when Items change?

I have a ItemsControl in a ScrollViewer, and when the items exceed the width of the ScrollViewer they are put into a ContextMenu and shown as a DropDown instead. My problem is that when the Context Menu is first loaded, it saves the saves the size of the Menu and does not redraw when more commands get added/removed. For example, a panel...

Dynamic Google Maps API InfoWindow HTML Content

I am working in Flash Builder 4 with Google Map's ActionScript API. I have created a map, loaded some custom markers onto it and added some MouseEvent listeners to each marker. The trouble comes when I load an InfoWindow panel. I want to dynamically set the htmlContent based off of information stored in a database. The trouble is tha...