I just started to learn Angular, and I tried to make concat var name so I can control it dynamically. This is what I tried - <div ng-app="myApp" ng-controller="myCtrl"> <button ng-click="myFunc(1)">Click Me!</b
I want to set a variable to the value generated using the dynamic query outside the query. I tried the sp_executesql concept, but this does not help me because I am using the parameter value in the dynamic query. Are there any possibilities to fix th
I have added check-boxes dynamically to all the element and successfully added the functionality to select all checkboxes but not able to do the selection for the parent child checkboxes in tree structure means if i select the "Asia" it should s
I'm using Dreamweaver and I want to color the rows of a dynamic table alternately. I can't seem to find any answers that work for me or that I understand. Could you give a sample CSS on how to do it? Explanations would help because I'm not confident
First time poster, long time forager. I have a system I am developing, cleaning up the process I would like to use pikaday.js to help users select the date insted of typing it in by hand. The process: From a dropdown (HTML) element, call to handleSel
I am generating dynamic textbox controls on drop down selected index change event. protected void ddlCategories_SelectedIndexChanged(object sender, EventArgs e) { foreach (Attributes attribute in getAllAttributes(Convert.ToInt32(ddlCategories.Selecte
If i were to want to re-size a richtextbox in vb6 so that its width is always equal to the length of its text how would i go about doing that? I'm not aware of any methods for measuring the proper length of a text string in the richtextbox control. a
Okay, so i'm doing this game like a project where i have 3 different objects. void Character::shoot(){ Shot* s = new Shot(blablabla); shots.push_back(s); } This happens dynamically, and currently i dont delete the pointers so it has to be loads of po
I am developing a new Android app, i have listed out the records. Now need to show the particular record while clicking on the corresponding button. Can somebody help me to share how to create buttons dynamically and assign record id into it? Button
I created a dynamic array. typedef float* DynamicMatrix[MAT_SIZE]; DynamicMatrix matDyn; // allocate rows and initialize to 0 for (r = 0; r < MAT_SIZE; r++) { matDyn[r] = new float[MAT_SIZE]; for (c = 0; c < MAT_SIZE; c++) { (matDyn[r])[c] = 0; // I
Consider a generic ask() function that asks the user a question, reads the input and saves it in a variable named according to one of the function's arguments. ask() { local question="$1" local varname="$2" echo "$question" r
I have some classes with common properties, however, I cannot make them derive from a base type (LINQ-to-SQL limitations). I would like to treat them as if they had a base type, but not by using Reflection (performance is critical). For example: publ
I have to populate below class in Linq Query public class Emp { public string name {get; set;} public dynamic Obj { get; set; } public Emp() { Obj = new ExpandoObject(); } } public LoadData() { var emp = (from d in dbContext.Employees select new Emp
I have a problem with dynamic memory allocation. Here is the code so please help. #include <stdio.h> int i; typedef struct{ int A; }node; typedef struct Model { node *m; } Model; Model M; void initialize(Model *a, int size) { a->m = (node*) mallo
This question has been asked here a link Also I want to clarify the question I have 10 List Items in a Listview I want to have the deviderheight of each List Items differently like for first Item it should be setDividerheight(2) for 2nd setDividerhei
I'm trying to create a page where I input a MYSQL query: SELECT column1,column2 FROM table;, and dynamically create an HTML table with column titles. EDIT: removed most of my question, just left the question part. I have since created a script that d
I need help with dynamic search pages. I need to change: /download.php?q=search to /download.php?mp3=search So only search pages need to change q to mp3. I would appreciate if someone could help. I want to do this through .htaccess Thanks in advanceT
Easiest to explain by showing code: var delta_selected = false; var magma_selected = false; var aqua_selected = false; // Somewhere in my functions... if (sumthing == 'sumthing1') { topic = 'delta'; } else if (sumthing == 'sumthing2') { topic = 'magm
I am dynamically generating checkboxes with id like chkBox100 etc and with onClick function. What I want to do is Only select one checkbox at a time. If a previous checkbox is checked and another checkbox is check, deslect the previous one. If I clic
In C# its possibly to use AsDynamic to invoke a overloaded method on a subclass (example here) thus allowing an abstract class to invoke methods it does not itself define. Is something similar possible with Scala 2.9 applyDynamic ?. I tried the follo
I need some help with some dynamic jQuery - if thats what it would be called. Basically, I have a number of DIVs, each with the same name, except an increasing number is added on the end - for example: <div id="category-1"></div> <
How can I get the list of elements and datatypes of an array of an object in c# with reflections? Scenario: I have a method with an array parameter in my web service (asmx). Using reflection I am reading the method parameters and loop through the pro
I'm having an issue with adding a select tag dynamically, the CSS and additional html tags (that JQM add) are is not being applied. Here is an example of how I'm adding the new select tag: http://jsfiddle.net/UcrD8/4/ The HTML: <div data-role="pag
I am trying to extend the DOM. I "subclassed" from the Div element: var Subclass = function() {} Subclass.prototype = document.createElement('div'); Subclass.constructor = Subclass; var obj = new Subclass(); var obj.innerHTML = 'test'; document.
I've spent hours with this but haven't managed... Please see example below - How can this be done? The idea is to build a compiled expression of type Func<dynamic, dynamic> given an Expression<Func<T1,T2>> passed by the class' consumer.
i'm having this markup: <div plug=tButton></div> and wrote a little plugin which makes a button ouf of the div like this: var cmd = $("[plug]"); cmd.tButton(); my question: when only having the div (and its plug-attribute), how can i
I hope you can help. I'm very new to jQuery and am working on a five- or six-level accordion menu for my side navigation. I got the majority of the code I have so far from Dane Peterson @ daneomatic.com (thanks Dane!). But, I'm stuck on one thing: I'
I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the sty
What is the best way of dynamically writing LINQ queries and Lambda expressions? I am thinking of applications where the end user can design business logic rules, which then must be executed. I am sorry if this is a newbie question, but it would be g
I try to use this query with linq: myQuery= myQuery.Where(c => c.RelatedEntity .FirstOrDefault() .MyStringProperty .Contains(myString)); But it says that it is not possible to use First(), that I have to considerate to use FirstOrDefault(). But if I